aboutsummaryrefslogtreecommitdiff
path: root/lumina-desktop/panel-plugins/userbutton/LUserButton.h
diff options
context:
space:
mode:
Diffstat (limited to 'lumina-desktop/panel-plugins/userbutton/LUserButton.h')
-rw-r--r--lumina-desktop/panel-plugins/userbutton/LUserButton.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/lumina-desktop/panel-plugins/userbutton/LUserButton.h b/lumina-desktop/panel-plugins/userbutton/LUserButton.h
index e6a1830d..4d5f59b4 100644
--- a/lumina-desktop/panel-plugins/userbutton/LUserButton.h
+++ b/lumina-desktop/panel-plugins/userbutton/LUserButton.h
@@ -41,8 +41,8 @@ private:
UserWidget *usermenu;
QToolButton *button;
+ void updateButtonVisuals();
-
private slots:
void openMenu();
void closeMenu();
@@ -56,8 +56,16 @@ public slots:
this->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Preferred);
button->setIconSize( QSize(this->width(), this->width()) );
}
- button->setIcon( LXDG::findIcon("user-identity", ":/images/default-user.png") ); //force icon refresh
this->layout()->update();
+ updateButtonVisuals();
+ }
+
+ void LocaleChange(){
+ updateButtonVisuals();
+ }
+
+ void ThemeChange(){
+ updateButtonVisuals();
}
};
bgstack15