Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(532)

Unified Diff: apps/ui/views/app_window_frame_view.cc

Issue 1761183002: color_utils cleanup: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename functions Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/frame/default_header_painter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/ui/views/app_window_frame_view.cc
diff --git a/apps/ui/views/app_window_frame_view.cc b/apps/ui/views/app_window_frame_view.cc
index 4b6246b2b8ded9cd8cb2820b581f72bbb30328c6..728e038afb46b0adcceb914f7aa8989b39539394 100644
--- a/apps/ui/views/app_window_frame_view.cc
+++ b/apps/ui/views/app_window_frame_view.cc
@@ -374,10 +374,8 @@ void AppWindowFrameView::SetButtonImagesForFrame() {
// If the frame is dark, we should use the light images so they have
// some contrast.
- unsigned char frame_luma =
- color_utils::GetLuminanceForColor(CurrentFrameColor());
- const unsigned char kLuminanceThreshold = 100;
- bool use_light = frame_luma < kLuminanceThreshold;
+ const uint8_t kLumaThreshold = 100;
+ bool use_light = color_utils::GetLuma(CurrentFrameColor()) < kLumaThreshold;
ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
if (use_light) {
« no previous file with comments | « no previous file | ash/frame/default_header_painter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698