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

Issue 12395034: Write a NativeThemeGtk2 class for linux_aura. (Closed)

Created:
7 years, 9 months ago by Elliot Glaysher
Modified:
7 years, 7 months ago
Reviewers:
sky, Evan Stade
CC:
chromium-reviews, tfarina
Visibility:
Public.

Description

Write a NativeThemeGtk2 class for linux_aura. This class vends GTK colors into views. There are a lot of little places where cleanup is needed due to hard coded colors in views, but this is a start and HighContrastInverse doesn't look too terrible. BUG=130810 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186244

Patch Set 1 #

Patch Set 2 : Remove a bunch of colors #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -8 lines) Patch
M chrome/browser/ui/libgtk2ui/gtk2_ui.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/libgtk2ui/libgtk2ui.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/libgtk2ui/native_theme_gtk2.h View 1 chunk +60 lines, -0 lines 1 comment Download
A chrome/browser/ui/libgtk2ui/native_theme_gtk2.cc View 1 1 chunk +260 lines, -0 lines 0 comments Download
M ui/views/controls/button/text_button.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/controls/combobox/native_combobox_views.cc View 3 chunks +4 lines, -7 lines 3 comments Download
M ui/views/controls/menu/menu_item_view.cc View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Elliot Glaysher
7 years, 9 months ago (2013-03-05 01:09:45 UTC) #1
sky
LGTM https://codereview.chromium.org/12395034/diff/2001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.h File chrome/browser/ui/libgtk2ui/native_theme_gtk2.h (right): https://codereview.chromium.org/12395034/diff/2001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.h#newcode47 chrome/browser/ui/libgtk2ui/native_theme_gtk2.h:47: mutable GtkWidget* fake_window_; How come this one can't ...
7 years, 9 months ago (2013-03-05 03:59:03 UTC) #2
Elliot Glaysher
On 2013/03/05 03:59:03, sky wrote: > LGTM > > https://codereview.chromium.org/12395034/diff/2001/chrome/browser/ui/libgtk2ui/native_theme_gtk2.h > File chrome/browser/ui/libgtk2ui/native_theme_gtk2.h (right): > ...
7 years, 9 months ago (2013-03-05 17:31:52 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/erg@chromium.org/12395034/2001
7 years, 9 months ago (2013-03-05 17:32:14 UTC) #4
sky
Ah, ok. Thanks for clarifying. On Tue, Mar 5, 2013 at 9:31 AM, <erg@chromium.org> wrote: ...
7 years, 9 months ago (2013-03-05 17:32:37 UTC) #5
commit-bot: I haz the power
Change committed as 186244
7 years, 9 months ago (2013-03-05 20:27:19 UTC) #6
Evan Stade
https://chromiumcodereview.appspot.com/12395034/diff/2001/ui/views/controls/combobox/native_combobox_views.cc File ui/views/controls/combobox/native_combobox_views.cc (right): https://chromiumcodereview.appspot.com/12395034/diff/2001/ui/views/controls/combobox/native_combobox_views.cc#newcode327 ui/views/controls/combobox/native_combobox_views.cc:327: combobox_->invalid() ? ui::NativeTheme::kColorId_LabelDisabledColor : this broke the code. For ...
7 years, 7 months ago (2013-05-01 23:18:50 UTC) #7
Elliot Glaysher
https://chromiumcodereview.appspot.com/12395034/diff/2001/ui/views/controls/combobox/native_combobox_views.cc File ui/views/controls/combobox/native_combobox_views.cc (right): https://chromiumcodereview.appspot.com/12395034/diff/2001/ui/views/controls/combobox/native_combobox_views.cc#newcode327 ui/views/controls/combobox/native_combobox_views.cc:327: combobox_->invalid() ? ui::NativeTheme::kColorId_LabelDisabledColor : On 2013/05/01 23:18:50, Evan Stade ...
7 years, 7 months ago (2013-05-01 23:23:20 UTC) #8
Evan Stade
7 years, 7 months ago (2013-05-01 23:28:44 UTC) #9
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/12395034/diff/2001/ui/views/controls/c...
File ui/views/controls/combobox/native_combobox_views.cc (right):

https://chromiumcodereview.appspot.com/12395034/diff/2001/ui/views/controls/c...
ui/views/controls/combobox/native_combobox_views.cc:327: combobox_->invalid() ?
ui::NativeTheme::kColorId_LabelDisabledColor :
On 2013/05/01 23:23:20, Elliot Glaysher wrote:
> On 2013/05/01 23:18:50, Evan Stade wrote:
> > this broke the code. For my desktop chromeos build, LabelDisabledColor is
not
> > white, or close to white. It is close to black, and not visible on a red
> > background.
> 
> Desktop chromeos shouldn't be using NativeThemeGtk2 instances. Is that what's
> going on?

no. LabelDisabledColor is just not the right color here (the combobox is not
disabled).

Powered by Google App Engine
This is Rietveld 408576698