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

Issue 2864044: GTK: Fix highlight and image colors in the new wrench menu. (Closed)

Created:
10 years, 5 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin, Evan Stade
CC:
chromium-reviews, ben+cc_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

GTK: Fix highlight and image colors in the new wrench menu. - The states weren't being set properly to replicate the menu item highlight effect. The button background needs to be STATE_SELECTED while the actual widget needs PRELIGHT. This removes a bunch of crud. - The fullscreen button needs to be tinted multiple times to the different label states. Now the fullscreen icon is the correct label color. Required adding infrastructure for GtkIconSets. BUG=45757 TEST=All labels and images in buttons should match the normal and prelight states of the labels in normal menu items. Make sure to try themes that have different normal and prelight states (DarkLooks) and themes that have the same color (Ambiance). Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=51805

Patch Set 1 #

Patch Set 2 : cleanups #

Patch Set 3 : Remove selected state #

Total comments: 9

Patch Set 4 : evanm comments #

Patch Set 5 : estade comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -45 lines) Patch
M chrome/browser/gtk/browser_toolbar_gtk.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/gtk/browser_toolbar_gtk.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/gtk/gtk_custom_menu_item.cc View 1 2 3 4 chunks +12 lines, -27 lines 0 comments Download
M chrome/browser/gtk/gtk_theme_provider.h View 1 2 3 5 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/gtk/gtk_theme_provider.cc View 1 2 3 4 8 chunks +80 lines, -6 lines 0 comments Download
M chrome/browser/gtk/menu_gtk.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/gtk/menu_gtk.cc View 1 2 3 4 5 chunks +30 lines, -12 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Elliot Glaysher
Only thing left before turning this on by default is making the buttons the same ...
10 years, 5 months ago (2010-07-07 22:32:32 UTC) #1
Evan Martin
LGTM http://codereview.chromium.org/2864044/diff/4001/5003 File chrome/browser/gtk/gtk_custom_menu_item.cc (right): http://codereview.chromium.org/2864044/diff/4001/5003#newcode28 chrome/browser/gtk/gtk_custom_menu_item.cc:28: image ? image : Can't you just always ...
10 years, 5 months ago (2010-07-07 22:41:25 UTC) #2
Elliot Glaysher
http://codereview.chromium.org/2864044/diff/4001/5003 File chrome/browser/gtk/gtk_custom_menu_item.cc (right): http://codereview.chromium.org/2864044/diff/4001/5003#newcode28 chrome/browser/gtk/gtk_custom_menu_item.cc:28: image ? image : On 2010/07/07 22:41:26, Evan Martin ...
10 years, 5 months ago (2010-07-07 22:51:08 UTC) #3
Evan Stade
http://codereview.chromium.org/2864044/diff/4001/5006 File chrome/browser/gtk/menu_gtk.cc (right): http://codereview.chromium.org/2864044/diff/4001/5006#newcode124 chrome/browser/gtk/menu_gtk.cc:124: reinterpret_cast<void*>(menu_gtk_delegate)); is this case necessary? http://codereview.chromium.org/2864044/diff/4001/5009 File gfx/skbitmap_operations.h (right): ...
10 years, 5 months ago (2010-07-07 22:56:00 UTC) #4
Elliot Glaysher
http://codereview.chromium.org/2864044/diff/4001/5006 File chrome/browser/gtk/menu_gtk.cc (right): http://codereview.chromium.org/2864044/diff/4001/5006#newcode124 chrome/browser/gtk/menu_gtk.cc:124: reinterpret_cast<void*>(menu_gtk_delegate)); On 2010/07/07 22:56:00, Evan Stade wrote: > is ...
10 years, 5 months ago (2010-07-07 23:24:55 UTC) #5
Evan Stade
10 years, 5 months ago (2010-07-07 23:33:50 UTC) #6
lgtm

Powered by Google App Engine
This is Rietveld 408576698