refactored BaseWidget

This commit is contained in:
fourtf
2018-07-06 17:11:37 +02:00
parent 741c1f7820
commit b639604a47
31 changed files with 121 additions and 134 deletions
+6 -6
View File
@@ -32,9 +32,9 @@ NotebookButton::Icon NotebookButton::getIcon() const
return this->icon_;
}
void NotebookButton::themeRefreshEvent()
void NotebookButton::themeChangedEvent()
{
this->setMouseEffectColor(this->themeManager->tabs.regular.text);
this->setMouseEffectColor(this->theme->tabs.regular.text);
}
void NotebookButton::paintEvent(QPaintEvent *event)
@@ -45,11 +45,11 @@ void NotebookButton::paintEvent(QPaintEvent *event)
QColor foreground;
if (mouseDown_ || mouseOver_) {
background = this->themeManager->tabs.regular.backgrounds.hover.color();
foreground = this->themeManager->tabs.regular.text;
background = this->theme->tabs.regular.backgrounds.hover.color();
foreground = this->theme->tabs.regular.text;
} else {
background = this->themeManager->tabs.regular.backgrounds.regular.color();
foreground = this->themeManager->tabs.regular.text;
background = this->theme->tabs.regular.backgrounds.regular.color();
foreground = this->theme->tabs.regular.text;
}
painter.setPen(Qt::NoPen);