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

Unified Diff: ui/native_theme/native_theme_mac.h

Issue 2251123002: macviews: honor system control tint setting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use luminance Created 4 years, 4 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 | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/native_theme/native_theme_mac.h
diff --git a/ui/native_theme/native_theme_mac.h b/ui/native_theme/native_theme_mac.h
index f87d87fa69122fc259b6dc95948a113844caf810..ec48119d26442030155d1a14ee8235f45d4becfb 100644
--- a/ui/native_theme/native_theme_mac.h
+++ b/ui/native_theme/native_theme_mac.h
@@ -29,6 +29,11 @@ class NATIVE_THEME_EXPORT NativeThemeMac : public NativeThemeBase {
static NativeThemeMac* instance();
+ // Adjusts an SkColor based on the current system control tint. For example,
+ // if the current tint is "graphite", this function maps the provided value to
+ // an appropriate gray.
+ static SkColor ApplySystemControlTint(SkColor color);
+
// Overridden from NativeTheme:
SkColor GetSystemColor(ColorId color_id) const override;
« no previous file with comments | « no previous file | ui/native_theme/native_theme_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698