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

Unified Diff: chrome/browser/android/vr_shell/color_scheme.cc

Issue 2911943002: [vr] Add incognito coloring (Closed)
Patch Set: Created 3 years, 7 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
Index: chrome/browser/android/vr_shell/color_scheme.cc
diff --git a/chrome/browser/android/vr_shell/color_scheme.cc b/chrome/browser/android/vr_shell/color_scheme.cc
index d39d5e555c70368f3718d68affc7b960226a7cc8..f43273e99d825d6b155a8919628d08603daca4c7 100644
--- a/chrome/browser/android/vr_shell/color_scheme.cc
+++ b/chrome/browser/android/vr_shell/color_scheme.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/android/vr_shell/color_scheme.h"
+#include "ui/gfx/color_palette.h"
+
namespace vr_shell {
namespace {
@@ -20,13 +22,42 @@ void InitializeColorSchemes() {
normal_scheme.floor = 0xFFCFCFCF;
normal_scheme.ceiling = 0xFFDBDBDB;
normal_scheme.floor_grid = SK_ColorWHITE;
+ normal_scheme.background = 0x66EBEBEB;
+ normal_scheme.background_hover = 0xFFEAEAEA;
+ normal_scheme.background_down = 0xFFFAFAFA;
+ normal_scheme.foreground = 0xFF333333;
+ normal_scheme.emphasized = 0xFF000000;
+ normal_scheme.deemphasized = 0xFF5A5A5A;
+ normal_scheme.separator = 0x33000000;
+ normal_scheme.secure = gfx::kGoogleGreen700;
+ normal_scheme.insecure = gfx::kGoogleRed700;
+ normal_scheme.warning = normal_scheme.deemphasized;
+ kColorSchemes[ColorScheme::kModeFullscreen] =
+ kColorSchemes[ColorScheme::kModeNormal];
ColorScheme& fullscreen_scheme = kColorSchemes[ColorScheme::kModeFullscreen];
fullscreen_scheme.horizon = 0xFF0A0015;
fullscreen_scheme.floor = 0xFF070F1C;
fullscreen_scheme.ceiling = 0xFF04080F;
fullscreen_scheme.floor_grid = 0x80A3E0FF;
+ // TODO(joshcarpenter): Update these per spec.
+ ColorScheme& incognito_scheme = kColorSchemes[ColorScheme::kModeIncognito];
+ incognito_scheme.horizon = 0xFF2E2E2E;
+ incognito_scheme.floor = 0xFF282828;
+ incognito_scheme.ceiling = 0xFF2F2F2F;
+ incognito_scheme.floor_grid = 0xFF595959;
+ incognito_scheme.foreground = 0xFFE6E6E6;
+ incognito_scheme.emphasized = 0xFFFFFFFF;
+ incognito_scheme.deemphasized = incognito_scheme.foreground;
+ incognito_scheme.background = 0xB9454545;
+ incognito_scheme.background_hover = 0xD9454545;
+ incognito_scheme.background_down = 0xFF454545;
+ incognito_scheme.separator = 0xDD595959;
+ incognito_scheme.secure = incognito_scheme.foreground;
+ incognito_scheme.insecure = incognito_scheme.foreground;
+ incognito_scheme.warning = incognito_scheme.foreground;
+
initialized = true;
}
« no previous file with comments | « chrome/browser/android/vr_shell/color_scheme.h ('k') | chrome/browser/android/vr_shell/textures/ui_texture.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698