[Libreoffice-bugs] [Bug 32186] New: Button background for GTK style is wrong in some cases
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Dec 7 17:52:23 CET 2010
https://bugs.freedesktop.org/show_bug.cgi?id=32186
Summary: Button background for GTK style is wrong in some cases
Product: LibreOffice
Version: LibO 3.3.0 Beta3
Platform: All
OS/Version: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: UI
AssignedTo: libreoffice-bugs at lists.freedesktop.org
ReportedBy: b7.10110111 at gmail.com
Created an attachment (id=40872)
--> (https://bugs.freedesktop.org/attachment.cgi?id=40872)
Screenshot
Currently, buttons are drawn on a background to take alpha-enabled buttons into
account. Here's how it's done
(clone/libs-gui/vcl/unx/gtk/gdi/salnativewidgets-gtk.cxx" line 1225):
// Buttons must paint opaque since some themes have alpha-channel enabled
buttons
gtk_paint_flat_box( gWidgetData[m_nScreen].gBtnWidget->style, gdkDrawable,
GTK_STATE_NORMAL, GTK_SHADOW_NONE, &clipRect, m_pWindow, "base", x, y, w, h );
This fails for themes with non-white background. In this case a rectangle of
non-background color is seen around the button on the startup window, as in the
screenshot attached. Of course, this looks ugly.
A fix would be to trigger native repaint of background before drawing the
button instead of calling gtk_paint_flat_box().
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Libreoffice-bugs
mailing list