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

Issue 400027: On Linux, pick the color of the slider's thumbpart from the GTK theme.... (Closed)

Created:
11 years, 1 month ago by Markus (顧孟勤)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, tony
Visibility:
Public.

Description

linux: theme scrollbars from GTK theme Pick the color of the slider's thumbpart and rail from the GTK theme. We cannot match the exact visual appearance of the GTK theme, as rendering engines can make arbitrary changes to the actual visual appearance. But by sampling a representative set of pixels, we ensure that we will at least match the general color scheme. BUG=10949

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 8

Patch Set 9 : '' #

Total comments: 6

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Patch Set 13 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+295 lines, -28 lines) Patch
M chrome/browser/extensions/extension_host.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/gtk/gtk_theme_provider.h View 4 5 6 7 8 9 10 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/gtk/gtk_theme_provider.cc View 4 5 6 7 8 9 10 1 chunk +89 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/interstitial_page.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/interstitial_page.cc View 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/common/gtk_util.h View 5 6 7 8 9 10 1 chunk +2 lines, -1 line 0 comments Download
M chrome/common/gtk_util.cc View 4 5 6 7 8 9 10 3 chunks +21 lines, -1 line 0 comments Download
M chrome/common/platform_util.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/common/platform_util_linux.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M chrome/common/render_messages.h View 4 5 6 7 8 9 10 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/common/renderer_preferences.h View 4 5 6 7 8 9 10 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/WebCore/platform/chromium/ScrollbarThemeChromiumLinux.cpp View 1 2 3 4 5 6 7 8 9 10 6 chunks +85 lines, -12 lines 0 comments Download
M third_party/WebKit/WebCore/rendering/RenderThemeChromiumLinux.h View 9 10 2 chunks +11 lines, -0 lines 0 comments Download
M third_party/WebKit/WebCore/rendering/RenderThemeChromiumLinux.cpp View 9 10 11 2 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/WebKit/chromium/public/WebView.h View 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/WebKit/chromium/src/WebViewImpl.h View 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/WebKit/chromium/src/WebViewImpl.cpp View 9 10 2 chunks +13 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Markus (顧孟勤)
This change works great for me and the scroll bar is now much more visible ...
11 years, 1 month ago (2009-11-18 01:54:30 UTC) #1
Evan Martin
You might have to create a scroll bar widget (offscreen) then query it for the ...
11 years, 1 month ago (2009-11-18 02:02:00 UTC) #2
agl
I'll let someone who knows GTK comment on how to get the scrollbar colour. The ...
11 years, 1 month ago (2009-11-18 02:04:22 UTC) #3
agl
Oh, and this change needs to be WebKit change, of course. (Ask Evan about uploading ...
11 years, 1 month ago (2009-11-18 02:04:58 UTC) #4
Markus (顧孟勤)
Here is a new version of the scrollbar-theming patch. Please take a look at it ...
11 years, 1 month ago (2009-11-25 01:00:48 UTC) #5
Evan Martin
+erg, gtk theme master (I believe if you're in the gtk theme provider then you ...
11 years, 1 month ago (2009-11-25 01:10:58 UTC) #6
Evan Stade
UseGtkTheme()
11 years, 1 month ago (2009-11-25 01:15:07 UTC) #7
Markus (顧孟勤)
On Tue, Nov 24, 2009 at 17:15, <estade@chromium.org> wrote: > UseGtkTheme() But that's not a ...
11 years, 1 month ago (2009-11-25 01:19:06 UTC) #8
Evan Stade
as you can see with the focus ring color, I just ignored whether we are ...
11 years, 1 month ago (2009-11-25 01:24:17 UTC) #9
Markus (顧孟勤)
Thanks for that tip. I uploaded a new version of the code with these changes ...
11 years, 1 month ago (2009-11-25 02:15:37 UTC) #10
Markus (顧孟勤)
I made a whole bunch of changes and followed Evan's advice to try to move ...
11 years ago (2009-12-01 03:07:39 UTC) #11
Elliot Glaysher
I am not sure if this patch works; I patched it in to my checkout, ...
11 years ago (2009-12-01 18:41:40 UTC) #12
Evan Martin
I had written review comments before but I never sent them. :( Here they are ...
11 years ago (2009-12-01 18:51:36 UTC) #13
Markus (顧孟勤)
A change in themes does not immediately take effect. You need to open a new ...
11 years ago (2009-12-01 22:37:54 UTC) #14
Elliot Glaysher
On 2009/12/01 22:37:54, Markus (顧孟勤) wrote: > A change in themes does not immediately take ...
11 years ago (2009-12-01 22:45:08 UTC) #15
Markus (顧孟勤)
Here we go again :-) Now with Tony's suggestion on where to store the color ...
11 years ago (2009-12-02 01:09:18 UTC) #16
Evan Martin
review comments on webkit bits only, this looks like it's ready to go http://codereview.chromium.org/400027/diff/21001/21012 File ...
11 years ago (2009-12-02 01:55:08 UTC) #17
Evan Martin
The chrome side looks good to me, but Elliot should probably check. I will work ...
11 years ago (2009-12-02 01:57:50 UTC) #18
Markus (顧孟勤)
I believe I addressed all of these comments, now. Thanks
11 years ago (2009-12-02 02:23:30 UTC) #19
Markus (顧孟勤)
On 2009/12/01 22:45:08, Elliot Glaysher wrote: > Known issue that ubuntu choose not to backport. ...
11 years ago (2009-12-02 03:51:46 UTC) #20
Elliot Glaysher
I haven't tested this version locally and it doesn't look like you implemented anything that ...
11 years ago (2009-12-02 18:17:56 UTC) #21
Markus (顧孟勤)
http://code.google.com/p/chromium/issues/detail?id=29197
11 years ago (2009-12-02 18:29:47 UTC) #22
Markus (顧孟勤)
I updated the code so that it would work with the newly changed preferences mechanism.
11 years ago (2009-12-08 02:07:17 UTC) #23
Evan Stade
things in common/ can't depend on things in browser/ I think the best thing to ...
11 years ago (2009-12-08 02:10:52 UTC) #24
Markus (顧孟勤)
Yes, I'd love to hand this changelist over to you. I updated it, because I ...
11 years ago (2009-12-08 02:19:27 UTC) #25
Evan Stade
On Mon, Dec 7, 2009 at 6:19 PM, <markus@chromium.org> wrote: > Yes, I'd love to ...
11 years ago (2009-12-08 02:28:41 UTC) #26
Markus (顧孟勤)
Adam did his magic, and claims the WebKit changes will be in our tree sometime ...
11 years ago (2009-12-08 03:11:41 UTC) #27
agl
On Mon, Dec 7, 2009 at 7:11 PM, <markus@chromium.org> wrote: > Adam did his magic, ...
11 years ago (2009-12-08 03:13:25 UTC) #28
Evan Martin
On Mon, Dec 7, 2009 at 7:13 PM, Adam Langley <agl@chromium.org> wrote: > On Mon, ...
11 years ago (2009-12-08 15:20:01 UTC) #29
Elliot Glaysher
If the default values for the scrollbar colors are the same, it shouldn't. The test ...
11 years ago (2009-12-08 17:49:28 UTC) #30
Markus (顧孟勤)
Hmm, I suspect the default colors will be very similar but subtly different. I don't ...
11 years ago (2009-12-08 17:54:52 UTC) #31
Elliot Glaysher
11 years ago (2009-12-08 21:45:32 UTC) #32
BTW, if you're waiting for an LGTM from me, go for it. I realized I never really
gave an explicit one...

Powered by Google App Engine
This is Rietveld 408576698