Home
last modified time | relevance | path

Searched refs:color_utils (Results 1 – 25 of 78) sorted by relevance

1234

/external/chromium_org/ui/native_theme/
Dfallback_theme.cc47 color_utils::AlphaBlend(SK_ColorBLACK, in GetSystemColor()
69 color_utils::AlphaBlend(kTextfieldSelectionBackgroundFocused, in GetSystemColor()
71 static const SkColor kResultsTableNormalText = color_utils::AlphaBlend( in GetSystemColor()
73 static const SkColor kResultsTableHoveredText = color_utils::AlphaBlend( in GetSystemColor()
75 static const SkColor kResultsTableSelectedText = color_utils::AlphaBlend( in GetSystemColor()
77 static const SkColor kResultsTableNormalDimmedText = color_utils::AlphaBlend( in GetSystemColor()
79 static const SkColor kResultsTableHoveredDimmedText = color_utils::AlphaBlend( in GetSystemColor()
82 color_utils::AlphaBlend( in GetSystemColor()
86 static const SkColor kResultsTableNormalDivider = color_utils::AlphaBlend( in GetSystemColor()
88 static const SkColor kResultsTableHoveredDivider = color_utils::AlphaBlend( in GetSystemColor()
[all …]
Dnative_theme_win.cc76 const SkColor face = color_utils::GetSysSkColor(COLOR_3DFACE); in SetCheckerboardShader()
77 const SkColor highlight = color_utils::GetSysSkColor(COLOR_3DHILIGHT); in SetCheckerboardShader()
172 color : color_utils::GetSysSkColor(default_sys_color); in GetThemeColorWithDefault()
378 color_utils::GetSysSkColor(kSystemColors[i]); in UpdateSystemColors()
484 color_utils::InvertColor(kDialogBackgroundColor) : in GetSystemColor()
605 return color_utils::AlphaBlend(system_colors_[COLOR_HIGHLIGHT], in GetSystemColor()
615 return color_utils::AlphaBlend(system_colors_[COLOR_WINDOWTEXT], in GetSystemColor()
618 return color_utils::AlphaBlend( in GetSystemColor()
622 return color_utils::AlphaBlend(system_colors_[COLOR_HIGHLIGHTTEXT], in GetSystemColor()
625 return color_utils::GetReadableColor(SkColorSetRGB(0, 128, 0), in GetSystemColor()
[all …]
/external/chromium_org/chrome/browser/themes/
Dtheme_properties.cc47 color_utils::GetSysSkColor(COLOR_WINDOW);
49 color_utils::GetSysSkColor(COLOR_WINDOWTEXT);
51 color_utils::GetSysSkColor(COLOR_HOTLIGHT);
65 const color_utils::HSL kDefaultTintButtons = { -1, -1, -1 };
66 const color_utils::HSL kDefaultTintFrame = { -1, -1, -1 };
67 const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f };
68 const color_utils::HSL kDefaultTintFrameIncognito = { -1, 0.2f, 0.35f };
69 const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f };
70 const color_utils::HSL kDefaultTintBackgroundTab = { -1, 0.5, 0.75 };
224 color_utils::HSL ThemeProperties::GetDefaultTint(int id) { in GetDefaultTint()
[all …]
Dtheme_service.cc70 color_utils::HSL result; in IncreaseLightness()
71 color_utils::SkColorToHSL(color, &result); in IncreaseLightness()
73 return color_utils::HSLToSkColor(result, SkColorGetA(color)); in IncreaseLightness()
172 return color_utils::GetReadableColor( in GetColor()
176 return color_utils::BlendTowardOppositeLuminance( in GetColor()
179 return color_utils::AlphaBlend( in GetColor()
420 color_utils::HSL ThemeService::GetTint(int id) const { in GetTint()
423 color_utils::HSL hsl; in GetTint()
Dcustom_theme_supplier.h17 namespace color_utils {
53 virtual bool GetTint(int id, color_utils::HSL* hsl) const;
Dbrowser_theme_pack.h82 virtual bool GetTint(int id, color_utils::HSL* hsl) const OVERRIDE;
168 void CreateTintedButtons(const color_utils::HSL& button_tint,
196 color_utils::HSL GetTintInternal(int id) const;
Dtheme_service.h32 namespace color_utils {
154 color_utils::HSL GetTint(int id) const;
Dcustom_theme_supplier.cc20 bool CustomThemeSupplier::GetTint(int id, color_utils::HSL* hsl) const { in GetTint()
Dtheme_service_mac.mm15 #include "ui/gfx/color_utils.h"
26 void HSLToHSB(const color_utils::HSL& hsl, CGFloat* h, CGFloat* s, CGFloat* b) {
27 SkColor color = color_utils::HSLToSkColor(hsl, 255); // alpha doesn't matter
134 color_utils::HSL tint = GetTint(id);
Dbrowser_theme_pack_unittest.cc217 color_utils::HSL expected = { 0.6, 0.553, 0.5 }; in VerifyStarGazing()
218 color_utils::HSL actual; in VerifyStarGazing()
439 color_utils::HSL expected = { 0.5, 0.5, 0.5 }; in TEST_F()
440 color_utils::HSL actual = { -1, -1, -1 }; in TEST_F()
516 color_utils::HSL actual = { -1, -1, -1 }; in TEST_F()
Dbrowser_theme_pack.cc464 const color_utils::HSL& hsl_shift) { in CreateHSLShiftedImage()
605 const color_utils::HSL& hsl_shift, in TabBackgroundImageSource()
635 const color_utils::HSL hsl_shift_;
834 bool BrowserThemePack::GetTint(int id, color_utils::HSL* hsl) const { in GetTint()
989 std::map<int, color_utils::HSL> temp_tints; in BuildTintsFromJSON()
995 color_utils::HSL hsl = { -1, -1, -1 }; in BuildTintsFromJSON()
1010 for (std::map<int, color_utils::HSL>::const_iterator it = in BuildTintsFromJSON()
1425 const color_utils::HSL& button_tint,
1457 color_utils::HSL hsl_shift = GetTintInternal(
1522 color_utils::HSL BrowserThemePack::GetTintInternal(int id) const {
[all …]
Dtheme_properties.h139 static color_utils::HSL GetDefaultTint(int id);
/external/chromium_org/chrome/browser/ui/libgtk2ui/
Dnative_theme_gtk2.cc31 color_utils::AlphaBlend(libgtk2ui::GdkColorToSkColor(foreground), in GdkAlphaBlend()
40 color_utils::HSL fg_hsl; in NormalURLColor()
41 color_utils::SkColorToHSL(libgtk2ui::GdkColorToSkColor(foreground), &fg_hsl); in NormalURLColor()
43 color_utils::HSL hue_hsl; in NormalURLColor()
44 color_utils::SkColorToHSL(libgtk2ui::GdkColorToSkColor(kURLTextColor), in NormalURLColor()
59 color_utils::HSL output = { hue_hsl.h, s, l }; in NormalURLColor()
60 return libgtk2ui::SkColorToGdkColor(color_utils::HSLToSkColor(output, 255)); in NormalURLColor()
69 color_utils::HSL fg_hsl; in SelectedURLColor()
70 color_utils::SkColorToHSL(libgtk2ui::GdkColorToSkColor(foreground), in SelectedURLColor()
73 color_utils::HSL bg_hsl; in SelectedURLColor()
[all …]
Dgtk2_ui.h124 typedef std::map<int, color_utils::HSL> TintMap;
151 const color_utils::HSL& tint,
170 const color_utils::HSL& tint) const;
182 void GetNormalButtonTintHSL(color_utils::HSL* tint) const;
185 void GetNormalEntryForegroundHSL(color_utils::HSL* tint) const;
189 void GetSelectedEntryForegroundHSL(color_utils::HSL* tint) const;
214 color_utils::HSL button_tint_;
215 color_utils::HSL entry_tint_;
216 color_utils::HSL selected_entry_tint_;
Dgtk2_ui.cc107 const color_utils::HSL kGtkFrameShift = { -1, -1, 0.58 };
111 const color_utils::HSL kDefaultFrameShift = { -1, -1, 0.4 };
131 const color_utils::HSL kDefaultTintButtons = { -1, -1, -1 };
132 const color_utils::HSL kDefaultTintFrame = { -1, -1, -1 };
133 const color_utils::HSL kDefaultTintFrameInactive = { -1, -1, 0.75f };
134 const color_utils::HSL kDefaultTintFrameIncognito = { -1, 0.2f, 0.35f };
135 const color_utils::HSL kDefaultTintFrameIncognitoInactive = { -1, 0.3f, 0.6f };
136 const color_utils::HSL kDefaultTintBackgroundTab = { -1, 0.5, 0.75 };
240 color_utils::HSL* tint) { in PickButtonTintFromColors()
242 color_utils::HSL accent_tint; in PickButtonTintFromColors()
[all …]
/external/chromium_org/ui/gfx/
Dsys_color_change_listener.cc29 int foreground_luminance = color_utils::GetLuminanceForColor( in UpdateInvertedColorScheme()
30 color_utils::GetSysSkColor(COLOR_WINDOWTEXT)); in UpdateInvertedColorScheme()
31 int background_luminance = color_utils::GetLuminanceForColor( in UpdateInvertedColorScheme()
32 color_utils::GetSysSkColor(COLOR_WINDOW)); in UpdateInvertedColorScheme()
Dskbitmap_operations.cc224 typedef void (*LineProcessor)(const color_utils::HSL&,
239 void LineProcDefault(const color_utils::HSL& hsl_shift, in LineProcDefault()
244 out[x] = SkPreMultiplyColor(color_utils::HSLShift( in LineProcDefault()
250 void LineProcCopy(const color_utils::HSL& hsl_shift, in LineProcCopy()
261 void LineProcHnopSnopLdec(const color_utils::HSL& hsl_shift, in LineProcHnopSnopLdec()
285 void LineProcHnopSnopLinc(const color_utils::HSL& hsl_shift, in LineProcHnopSnopLinc()
332 void LineProcHnopSdecLnop(const color_utils::HSL& hsl_shift, in LineProcHnopSdecLnop()
369 void LineProcHnopSdecLdec(const color_utils::HSL& hsl_shift, in LineProcHnopSdecLdec()
408 void LineProcHnopSdecLinc(const color_utils::HSL& hsl_shift, in LineProcHnopSdecLinc()
493 const color_utils::HSL& hsl_shift) { in CreateHSLShiftedBitmap()
Dcolor_utils.cc22 namespace color_utils { namespace
270 color_utils::GetLuminanceForColor(color); in BlendTowardOppositeLuminance()
273 return color_utils::AlphaBlend(blend_color, color, alpha); in BlendTowardOppositeLuminance()
Dskbitmap_operations_unittest.cc62 color_utils::HSL hsl_shift) { in ReferenceCreateHSLShiftedBitmap()
76 tinted_pixels[x] = SkPreMultiplyColor(color_utils::HSLShift( in ReferenceCreateHSLShiftedBitmap()
224 color_utils::HSL hsl = { -1, -1, -1 }; in TEST()
261 color_utils::HSL hsl = { 0, -1, -1 }; in TEST()
301 color_utils::HSL hsl = { h, s, l }; in TEST()
Dcolor_utils.h14 namespace color_utils {
/external/chromium_org/chrome/browser/search/
Dinstant_service.cc319 background_color = color_utils::InvertColor(background_color); in OnThemeChanged()
320 text_color = color_utils::InvertColor(text_color); in OnThemeChanged()
321 link_color = color_utils::InvertColor(link_color); in OnThemeChanged()
322 text_color_light = color_utils::InvertColor(text_color_light); in OnThemeChanged()
323 header_color = color_utils::InvertColor(header_color); in OnThemeChanged()
324 section_border_color = color_utils::InvertColor(section_border_color); in OnThemeChanged()
/external/chromium_org/ui/views/
Dbackground.cc106 color_utils::AlphaBlend(color1, color2, 128)); in CreateVerticalGradientBackground()
119 color_utils::AlphaBlend(colors[0], colors[count-1], 128)); in CreateVerticalMultiColorGradientBackground()
/external/chromium_org/ui/views/controls/
Dlink.cc38 return color_utils::GetSysSkColor(COLOR_HOTLIGHT); in GetDefaultEnabledColor()
194 SetDisabledColor(color_utils::GetSysSkColor(COLOR_WINDOWTEXT)); in Init()
/external/chromium_org/chrome/browser/ui/webui/ntp/
Dfavicon_webui_handler.cc38 color_utils::GridSampler sampler; in GetDominantColorCssString()
39 SkColor color = color_utils::CalculateKMeanColorOfPNG(png); in GetDominantColorCssString()
/external/chromium_org/chrome/browser/ui/
Dmetro_pin_tab_helper_win.cc84 SkColor dominant_color = color_utils::CalculateKMeanColorOfBitmap(bitmap); in CreateSiteSpecificLogo()
92 color_utils::HSL shift = {-1, -1, kBoxFade}; in CreateSiteSpecificLogo()
93 paint.setColor(color_utils::HSLShift(dominant_color, shift)); in CreateSiteSpecificLogo()

1234