fix: use a palette for dialogs (#6098)

This commit is contained in:
nerix
2025-03-20 14:03:46 +01:00
committed by GitHub
parent 9750f81ff0
commit a70acbfda9
6 changed files with 30 additions and 14 deletions
+1 -4
View File
@@ -667,10 +667,7 @@ void EmotePopup::themeChangedEvent()
{
BasePopup::themeChangedEvent();
// NOTE: This currently overrides the QLineEdit's font size.
// If the dialog is open when the theme is changed, things will look a bit off.
// This can be alleviated by us using a single application-wide style sheet for these things.
this->search_->setStyleSheet(this->theme->splits.input.styleSheet);
this->setPalette(getTheme()->palette);
}
void EmotePopup::closeEvent(QCloseEvent *event)
+1 -6
View File
@@ -375,12 +375,7 @@ void SelectChannelDialog::themeChangedEvent()
{
BaseWindow::themeChangedEvent();
auto &ui = this->ui_;
// NOTE: This currently overrides the QLineEdit's font size.
// If the dialog is open when the theme is changed, things will look a bit off.
// This can be alleviated by us using a single application-wide style sheet for these things.
ui.channelName->setStyleSheet(this->theme->splits.input.styleSheet);
this->setPalette(getTheme()->palette);
}
void SelectChannelDialog::scaleChangedEvent(float newScale)
+1 -4
View File
@@ -219,10 +219,7 @@ void SearchPopup::themeChangedEvent()
{
BasePopup::themeChangedEvent();
// NOTE: This currently overrides the QLineEdit's font size.
// If the dialog is open when the theme is changed, things will look a bit off.
// This can be alleviated by us using a single application-wide style sheet for these things.
this->searchInput_->setStyleSheet(this->theme->splits.input.styleSheet);
this->setPalette(getTheme()->palette);
}
void SearchPopup::search()