|
|
@@ -89,8 +89,17 @@ OwncloudSetupPage::OwncloudSetupPage(QWidget *parent)
|
|
|
connect(_ui.nextButton, &QPushButton::clicked, _ui.slideShow, &SlideShow::nextSlide);
|
|
|
connect(_ui.prevButton, &QPushButton::clicked, _ui.slideShow, &SlideShow::prevSlide);
|
|
|
|
|
|
- _ui.nextButton->setIcon(theme->uiThemeIcon(QString("control-next.svg"), false));
|
|
|
- _ui.prevButton->setIcon(theme->uiThemeIcon(QString("control-prev.svg"), false));
|
|
|
+ auto color = OwncloudSetupPage::palette().color(OwncloudSetupPage::backgroundRole()).lightness();
|
|
|
+ bool widgetHasDarkBg =
|
|
|
+ (OwncloudSetupPage::palette().color(OwncloudSetupPage::backgroundRole()).lightness() >= 125)
|
|
|
+ ? false
|
|
|
+ : true;
|
|
|
+ _ui.nextButton->setIcon(theme->uiThemeIcon(QString("control-next.svg"), widgetHasDarkBg));
|
|
|
+ _ui.prevButton->setIcon(theme->uiThemeIcon(QString("control-prev.svg"), widgetHasDarkBg));
|
|
|
+
|
|
|
+ // QPushButtons are a mess when it comes to consistent background coloring without stylesheets,
|
|
|
+ // so we do it here even though this is an exceptional styling method here
|
|
|
+ _ui.createAccountButton->setStyleSheet("QPushButton {background-color: #0082C9; color: white}");
|
|
|
|
|
|
_ui.slideShow->startShow();
|
|
|
|