After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 347684 - menu drawing on win32 does not quite match native themes
menu drawing on win32 does not quite match native themes
Status: RESOLVED DUPLICATE of bug 340203
Product: gtk+
Classification: Platform
Component: Backend: Win32
2.8.x
Other All
: Normal normal
: ---
Assigned To: gtk-win32 maintainers
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2006-07-16 16:21 UTC by Duncan
Modified: 2006-07-16 18:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Gtk+ and native menues under standard Lua XP theme (14.32 KB, image/png)
2006-07-16 16:34 UTC, Duncan
Details
Gtk+ and native menus under clasic theme (11.53 KB, image/png)
2006-07-16 16:46 UTC, Duncan
Details
Gtk+ and native menus under clasic theme (11.53 KB, image/png)
2006-07-16 16:49 UTC, Duncan
Details

Description Duncan 2006-07-16 16:21:04 UTC
Please describe the problem:
The way Gtk+ draws menus does not quite match the native win32 themes, for both the "clasic" and "Lua" XP themes.

I get complaints from developers using my Gtk+ bindings that "it doesn't look native" and threats that they'll use wxWidgets bindings instead! :-)

I know there have been big improvements to this over recent releases, but it looks like there's still a few minor issues.

I'll attach screenshots illustrating this and try and mention specifically what is different.

This is with Gtk+ 2.8.18. I've not checked 2.10.0 yet as the installers are not available yet.

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Duncan 2006-07-16 16:34:56 UTC
Created attachment 68998 [details]
Gtk+ and native menues under standard Lua XP theme

So on the left we have a little Gtk+ app and on the right Notepad.

If you zoom in 2 or three times we can figure out what the differences are more specifically.

Some differences:

1. the menu seems to have a few pixels of padding (looks like 2) on the top and left. In Notepad, the blue menu highlight and the menu itself is flush with the side of the window.

2. menu border. In the Gtk+ theme it's a solid black border with an extra grey highlight on the right and bottom edges. In NotePad it's a grey border with no extra bevel/highlight.

3. icons. Not sure about that one. Do any windows apps use icons like this? MS Office does I beleive, but then again it doesn't use the normal native windows theme for it's menu and toolbar.

4. it looks like there is slight gradient on the menu bar (and also toolbar) in the Gtk+ theme, while in Notepad it's a solid colour.
Comment 2 Duncan 2006-07-16 16:46:59 UTC
Created attachment 69000 [details]
Gtk+ and native menus under clasic theme

Similarly for the clasic theme. Gtk+ on the left, Notepad on the right.

1. same issue of the menu not being flush to the left side of the window.

2. extra 2-pixel beveled border at the top of the menu bar in the Gtk+ version.

3. menu selection highlight is blue in the Gtk+ version, but inset bevel in the native version.

4. menu border. The right and bottom sides are exactly right, but the top and left sides have a black border in the Gtk+ version but just ordnary grey in the native version. The white bevel highlight is correct though I think.

5. very minor: there's a 1-pixel difference in the menu seperators
Comment 3 Duncan 2006-07-16 16:49:50 UTC
Created attachment 69001 [details]
Gtk+ and native menus under clasic theme

Similarly for the clasic theme. Gtk+ on the left, Notepad on the right.

1. same issue of the menu not being flush to the left side of the window.

2. extra 2-pixel beveled border at the top of the menu bar in the Gtk+ version.

3. menu selection highlight is blue in the Gtk+ version, but inset bevel in the native version.

4. menu border. The right and bottom sides are exactly right, but the top and left sides have a black border in the Gtk+ version but just ordnary grey in the native version. The white bevel highlight is correct though I think.

5. very minor: there's a 1-pixel difference in the menu seperators
Comment 4 Duncan 2006-07-16 16:50:53 UTC
Oops, sorry for the comment dup. I got an internal server error first time, so I resubmitted.
Comment 5 Dominic Lachowicz 2006-07-16 18:23:31 UTC
This is covered by bug 340201 and bug 340203. Thanks.

*** This bug has been marked as a duplicate of 340203 ***