the rewrite that nobody wanted

This commit is contained in:
2018-01-02 02:15:11 +01:00
parent 0ef08378cc
commit 3e5937011a
18 changed files with 217 additions and 175 deletions
+6 -6
View File
@@ -385,17 +385,17 @@ void SplitContainer::paintEvent(QPaintEvent *)
QPainter painter(this);
if (this->ui.hbox.count() == 0) {
painter.fillRect(rect(), this->themeManager.ChatBackground);
painter.fillRect(rect(), this->themeManager.splits.background);
painter.setPen(this->themeManager.Text);
painter.setPen(this->themeManager.splits.header.text);
painter.drawText(rect(), "Add Chat", QTextOption(Qt::AlignCenter));
} else {
painter.fillRect(rect(), this->themeManager.ChatSeperator);
painter.fillRect(rect(), this->themeManager.splits.messageSeperator);
}
QColor accentColor = (QApplication::activeWindow() == this->window()
? this->themeManager.TabSelectedBackground
: this->themeManager.TabSelectedUnfocusedBackground);
QBrush accentColor = (QApplication::activeWindow() == this->window()
? this->themeManager.tabs.selected.backgrounds.regular
: this->themeManager.tabs.selected.backgrounds.unfocused);
painter.fillRect(0, 0, width(), 2, accentColor);
}