Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Rings:1-MinimalX
kdebase4-workspace
kdm-fix-labelcolors.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kdm-fix-labelcolors.diff of Package kdebase4-workspace
Subject: Fix broken KDM layout with fingerprint support From: Lubos Lunak Patch-upstream: yes Bug: bnc#533189 Relates: kdm-fix-generic-greeter.diff, same-pam-generic-classic.diff Index: kde-workspace-4.8.5/kdm/kfrontend/themer/kdmlabel.h =================================================================== --- kde-workspace-4.8.5.orig/kdm/kfrontend/themer/kdmlabel.h +++ kde-workspace-4.8.5/kdm/kfrontend/themer/kdmlabel.h @@ -61,6 +61,8 @@ protected: virtual void doPlugActions(bool plug); + virtual void updatePalette( QWidget *w ); + virtual void setWidget(QWidget *widget); struct LabelStruct { Index: kde-workspace-4.8.5/kdm/kfrontend/themer/kdmitem.h =================================================================== --- kde-workspace-4.8.5.orig/kdm/kfrontend/themer/kdmitem.h +++ kde-workspace-4.8.5/kdm/kfrontend/themer/kdmitem.h @@ -199,7 +199,7 @@ protected: bool eventFilter(QObject *o, QEvent *e); void setWidgetAttribs(QWidget *); - void updatePalette(QWidget *w); + virtual void updatePalette(QWidget *w); void updateThisVisible(); Index: kde-workspace-4.8.5/kdm/kfrontend/themer/kdmlabel.cpp =================================================================== --- kde-workspace-4.8.5.orig/kdm/kfrontend/themer/kdmlabel.cpp +++ kde-workspace-4.8.5/kdm/kfrontend/themer/kdmlabel.cpp @@ -221,6 +221,8 @@ KdmLabel::statusChanged(bool descend) if ((state == Sprelight && !label.prelight.present) || (state == Sactive && !label.active.present)) return; + if( myWidget ) + updatePalette( myWidget ); updateWidgetAttribs(); needUpdate(); } @@ -362,4 +364,19 @@ KdmLabel::updateWidgetAttribs() myWidget->setPalette(p); } +void +KdmLabel::updatePalette( QWidget *w ) +{ + struct LabelStruct::LabelClass *l = &label.normal; + if (state == Sactive && label.active.present) + l = &label.active; + else if (state == Sprelight && label.prelight.present) + l = &label.prelight; + w->setFont( l->font.font ); + QPalette p = w->palette(); + p.setColor( QPalette::WindowText, l->color ); + w->setPalette( p ); + KdmItem::updatePalette( w ); +} + #include "kdmlabel.moc"
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor