[patch] for /lib/widgets/ktabzoomframe.cpp
Caleb Tennis
caleb at aei-tech.com
Mon Jul 29 16:23:05 UTC 2002
> On Friday 26 July 2002 21:21, Caleb Tennis wrote:
> > In the IDEAl mode, the close and dock tool buttons in the frame
> do not have
> > the correct background color set. This sets it to the same as the title
> > label. Note that it doesn't work to just do a
> setPaletteBackgroundColor -
> > I'm not exactly sure why but I think it has something to do
> with the fact
> > that they're tool buttons. If someone has a slicker way of
> doing this code
> > I'm all for it. I'd appreciate it if someone would make a comment, or
> > commit.
>
> Thanks a lot, I just commited that patch.
Can you patch again for me? :) I missed getting this to you before you made
the commit.
Basically this also updates the color schemes for disabled and inactive
modes.
Thanks!
Caleb
--- ktabzoomframe_orig.cpp Mon Jul 29 08:58:15 2002
+++ ktabzoomframe.cpp Mon Jul 29 09:05:46 2002
@@ -102,6 +102,13 @@
QColorGroup cg = pal.active();
cg.setColor(QColorGroup::Background,
KGlobalSettings::activeTitleColor());
pal.setActive(cg) ;
+ cg = pal.inactive();
+ cg.setColor(QColorGroup::Background,
KGlobalSettings::activeTitleColor());
+ pal.setInactive(cg) ;
+ cg = pal.disabled();
+ cg.setColor(QColorGroup::Background,
KGlobalSettings::activeTitleColor());
+ pal.setDisabled(cg);
+
d->m_dockButton->setPalette(pal);
hbox->addWidget(d->m_dockButton);
More information about the KDevelop-devel
mailing list