diff options
author | Shawn O. Pearce <sop@google.com> | 2011-05-24 08:28:40 -0700 |
---|---|---|
committer | Shawn O. Pearce <sop@google.com> | 2011-05-24 08:28:40 -0700 |
commit | 9ca8ae3ecabba4378a20391e67daa44ed9bf10ea (patch) | |
tree | 3d4a46d124889238ac251e998713586a9eb2bd7a | |
parent | 79f88a11e81026248a11ae3d4b7edb68535d6226 (diff) |
Invert signed-in and signed-out background colors
Most users work in the signed-in mode when reading source files
during review. Using the white background makes it easier to read
the text, especially with syntax coloring enabled.
Change-Id: If49aa62c0ff26971c64fd75505265c58ac859062
Signed-off-by: Shawn O. Pearce <sop@google.com>
-rw-r--r-- | Documentation/config-gerrit.txt | 4 | ||||
-rw-r--r-- | gerrit-httpd/src/main/java/com/google/gerrit/httpd/raw/ThemeFactory.java | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/config-gerrit.txt b/Documentation/config-gerrit.txt index b288c89e2b..226ffbed1b 100644 --- a/Documentation/config-gerrit.txt +++ b/Documentation/config-gerrit.txt @@ -1795,8 +1795,8 @@ Background color for the page, and major data tables like the all open changes table or the account dashboard. The value must be a valid HTML hex color code, or standard color name. + -By default white, `FFFFFF` for signed-out theme and `FCFEEF` (creme) -for signed-in theme. +By default `FCFEEF` (a creme color) for signed-out theme and white +(`FFFFFF`) for signed-in theme. [[theme.topMenuColor]]theme.topMenuColor:: + diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/raw/ThemeFactory.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/raw/ThemeFactory.java index a1e09f9861..68379d765e 100644 --- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/raw/ThemeFactory.java +++ b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/raw/ThemeFactory.java @@ -38,7 +38,7 @@ class ThemeFactory { private HostPageData.Theme getTheme(String name) { HostPageData.Theme theme = new HostPageData.Theme(); - theme.backgroundColor = color(name, "backgroundColor", "#FFFFFF"); + theme.backgroundColor = color(name, "backgroundColor", "#FCFEEF"); theme.textColor = color(name, "textColor", "#000000"); theme.trimColor = color(name, "trimColor", "#D4E9A9"); theme.selectionColor = color(name, "selectionColor", "#FFFFCC"); @@ -52,7 +52,7 @@ class ThemeFactory { v = cfg.getString("theme", null, name); if (v == null || v.isEmpty()) { if ("signed-in".equals(section) && "backgroundColor".equals(name)) { - v = "#FCFEEF"; + v = "#FFFFFF"; } else { v = defaultValue; } |