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

Issue 149681: GTK Themes: Make the omnibox area look more native. (Closed)

Created:
11 years, 5 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

GTK Themes: Make the location bar area look native. Replace the star and go buttons with a native looking thing, where we manually draw the theme's button image for the full omnibox area and then position the star/go buttons on top of that. Also adds stand in versions of star_noborder and starred_noborder until Glen can make real icons. http://crbug.com/16227 http://crbug.com/13967 http://crbug.com/16915 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20914

Patch Set 1 #

Patch Set 2 : Lint. #

Patch Set 3 : Tint the new star #

Total comments: 1

Patch Set 4 : RTL changes #

Total comments: 1

Patch Set 5 : Change names for Dean #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -36 lines) Patch
A chrome/app/theme/star_noborder.png View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/app/theme/starred_noborder.png View 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/browser_theme_provider.cc View 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/gtk/browser_toolbar_gtk.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/gtk/browser_toolbar_gtk.cc View 1 2 3 4 2 chunks +45 lines, -5 lines 0 comments Download
M chrome/browser/gtk/go_button_gtk.h View 4 chunks +15 lines, -1 line 0 comments Download
M chrome/browser/gtk/go_button_gtk.cc View 1 6 chunks +60 lines, -8 lines 0 comments Download
M chrome/browser/gtk/location_bar_view_gtk.cc View 1 2 3 4 1 chunk +17 lines, -13 lines 0 comments Download
M chrome/browser/gtk/toolbar_star_toggle_gtk.h View 1 3 chunks +19 lines, -2 lines 0 comments Download
M chrome/browser/gtk/toolbar_star_toggle_gtk.cc View 1 3 chunks +55 lines, -7 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Elliot Glaysher
11 years, 5 months ago (2009-07-15 17:45:59 UTC) #1
Evan Stade
overall looks good, can you post a screenshot of it? http://codereview.chromium.org/149681/diff/1024/1029 File chrome/browser/gtk/browser_toolbar_gtk.cc (right): http://codereview.chromium.org/149681/diff/1024/1029#newcode452 ...
11 years, 5 months ago (2009-07-15 22:33:27 UTC) #2
Elliot Glaysher
Attached is the new omnibox in five different theme engines. On Wed, Jul 15, 2009 ...
11 years, 5 months ago (2009-07-15 23:27:26 UTC) #3
Evan Stade
On Wed, Jul 15, 2009 at 11:26 PM, Elliot Glaysher (Chromium)<erg@chromium.org> wrote: > Attached is ...
11 years, 5 months ago (2009-07-15 23:32:00 UTC) #4
Dean McNamee
I only looked at the location bar part. There is a frame around the star ...
11 years, 5 months ago (2009-07-16 12:41:42 UTC) #5
Dean McNamee
11 years, 5 months ago (2009-07-16 12:45:48 UTC) #6
Also, both the star and go icons are awkwardly placed, they aren't really
centered (either horizontally or vertically).

The code changes to location_bar_view_gtk seem ok to me.

You are confusing the names between omnibox and location bar a bit, omnibox is
just the text entry widget, the location bar is the rest (which contains the
omnibox).  It is an important distinction in some cases...

On 2009/07/16 12:41:42, Dean McNamee wrote:
> I only looked at the location bar part.
> 
> There is a frame around the star in the last screenshot, something funny going
> on?
> 
> http://codereview.chromium.org/149681/diff/19/1047
> File chrome/browser/gtk/location_bar_view_gtk.cc (right):
> 
> http://codereview.chromium.org/149681/diff/19/1047#newcode392
> Line 392: if (!profile_ ||
> Please add a comment, just something like:
> 
> // If we're not using GTK theming, draw our own border.

Powered by Google App Engine
This is Rietveld 408576698