From: Stefan Schimanski Date: Tue, 11 Mar 2008 10:29:14 +0000 (+0000) Subject: * use base color for layout list background. Qt docs say: X-Git-Tag: 1.6.10~5700 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=c81e3a0203421f5830bcaaadba48e600c66c17f2;p=features.git * use base color for layout list background. Qt docs say: QPalette::Base: Used mostly as the background color for text entry widgets, but can also be used for other painting - such as the background of combobox drop down lists and toolbar handles. It is usually white or another light color. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23660 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiToolbar.cpp b/src/frontends/qt4/GuiToolbar.cpp index 167d86d397..581e6ec9d2 100644 --- a/src/frontends/qt4/GuiToolbar.cpp +++ b/src/frontends/qt4/GuiToolbar.cpp @@ -264,7 +264,7 @@ public: QStyleOptionViewItem opt = option; // default background - painter->fillRect(opt.rect, opt.palette.background().color()); + painter->fillRect(opt.rect, opt.palette.color(QPalette::Base)); // category header? if (lyxrc.group_layouts) {