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

Issue 160188: GTK Themes: A gtkrc file can now override our choice of frame color by (Closed)

Created:
11 years, 5 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
tony, Evan Stade
CC:
chromium-reviews_googlegroups.com, Ben Goodger (Google)
Visibility:
Public.

Description

GTK Themes: A gtkrc file can now override our choice of frame color by specifying "frame_color" and "inactive_frame_color" in the gtk_color_scheme. Also attempts to do a better job matching the frame color. Most window managers (defined as metacity default theme and xfwm's default theme) take bg[SELECTED] tint it by 80%. We hand code that behaviour in, as it will be wrong a smaller percentage of the time then our current behaviour. http://crbug.com/16271 (dark theme bug) http://crbug.com/13967 (theme color metabug) Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21704

Patch Set 1 #

Total comments: 2

Patch Set 2 : Make 257 a constant #

Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -12 lines) Patch
M base/gfx/gtk_util.h View 1 chunk +4 lines, -1 line 0 comments Download
M chrome/browser/gtk/gtk_theme_provider.cc View 1 3 chunks +53 lines, -11 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Elliot Glaysher
11 years, 5 months ago (2009-07-27 20:26:49 UTC) #1
Evan Stade
ok with me
11 years, 5 months ago (2009-07-27 20:56:39 UTC) #2
tony
LGTM2, just a question. http://codereview.chromium.org/160188/diff/1/2 File chrome/browser/gtk/gtk_theme_provider.cc (right): http://codereview.chromium.org/160188/diff/1/2#newcode214 Line 214: frame_color.red = SkColorGetR(shifted) * ...
11 years, 5 months ago (2009-07-27 21:00:12 UTC) #3
Evan Stade
11 years, 5 months ago (2009-07-27 21:02:58 UTC) #4
http://codereview.chromium.org/160188/diff/1/2
File chrome/browser/gtk/gtk_theme_provider.cc (right):

http://codereview.chromium.org/160188/diff/1/2#newcode214
Line 214: frame_color.red = SkColorGetR(shifted) * 257;
On 2009/07/27 21:00:12, tony wrote:
> Why 257?

That's how you convert from 256-scaled color to 65536-scaled color. See
base/gfx/gtk_util.h

Powered by Google App Engine
This is Rietveld 408576698