fixed some light mode issues

This commit is contained in:
fourtf
2018-04-18 09:33:05 +02:00
parent 3446a623f5
commit 653e4c6adf
9 changed files with 31 additions and 19 deletions
+11 -7
View File
@@ -123,8 +123,6 @@ SelectChannelDialog::SelectChannelDialog()
this->setScaleIndependantSize(300, 210);
this->setStyleSheet("QRadioButton { color: #fff } QLabel { color: #fff }");
// Shortcuts
auto *shortcut_ok = new QShortcut(QKeySequence("Return"), this);
QObject::connect(shortcut_ok, &QShortcut::activated, [=] { this->ok(); });
@@ -255,15 +253,21 @@ bool SelectChannelDialog::EventFilter::eventFilter(QObject *watched, QEvent *eve
return false;
}
void SelectChannelDialog::SelectChannelDialog::showEvent(QShowEvent *)
{
// QTimer::singleShot(100, [=] { this->setSelectedChannel(this->selectedChannel); });
}
void SelectChannelDialog::closeEvent(QCloseEvent *)
{
this->closed.invoke();
}
void SelectChannelDialog::themeRefreshEvent()
{
BaseWindow::themeRefreshEvent();
if (this->themeManager.isLightTheme()) {
this->setStyleSheet("QRadioButton { color: #000 } QLabel { color: #000 }");
} else {
this->setStyleSheet("QRadioButton { color: #fff } QLabel { color: #fff }");
}
}
} // namespace widgets
} // namespace chatterino