search_box_constants.h 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_SEARCH_BOX_SEARCH_BOX_CONSTANTS_H_
  5. #define ASH_SEARCH_BOX_SEARCH_BOX_CONSTANTS_H_
  6. #include "third_party/skia/include/core/SkColor.h"
  7. #include "ui/gfx/color_palette.h"
  8. namespace ash {
  9. // Default color used when wallpaper customized color is not available for
  10. // searchbox, #000 at 87% opacity.
  11. constexpr SkColor kDefaultSearchboxColor = gfx::kGoogleGrey200;
  12. constexpr SkColor kDefaultSearchboxPlaceholderTextColor =
  13. SkColorSetARGB(0xDE, 0x00, 0x00, 0x00);
  14. // The horizontal padding of the box layout of the search box.
  15. constexpr int kSearchBoxPadding = 12;
  16. // The default background color of the search box.
  17. constexpr SkColor kSearchBoxBackgroundDefault = SK_ColorWHITE;
  18. // The background border corner radius of the search box.
  19. constexpr int kSearchBoxBorderCornerRadius = 24;
  20. // The background border corner radius of the expanded search box.
  21. constexpr int kSearchBoxBorderCornerRadiusSearchResult = 20;
  22. // The background border corner radius of the active/expanded search box with
  23. // productivity launcher enabled.
  24. constexpr int kExpandedSearchBoxCornerRadiusForProductivityLauncher = 28;
  25. // Preferred height of search box.
  26. constexpr int kSearchBoxPreferredHeight = 48;
  27. // The size of the icon in the search box.
  28. constexpr int kClassicSearchBoxIconSize = 24;
  29. // The size of the image button in the search box.
  30. constexpr int kClassicSearchBoxButtonSizeDip = 40;
  31. // The size of the icon in the search box.
  32. constexpr int kBubbleLauncherSearchBoxIconSize = 20;
  33. // The size of the image button in the search box.
  34. constexpr int kBubbleLauncherSearchBoxButtonSizeDip = 36;
  35. // Color of placeholder text in zero query state.
  36. constexpr SkColor kZeroQuerySearchboxColor =
  37. SkColorSetARGB(0x8A, 0x00, 0x00, 0x00);
  38. } // namespace ash
  39. #endif // ASH_SEARCH_BOX_SEARCH_BOX_CONSTANTS_H_