From fbe144840f8a25fc6bcadafc01b1f98c60400f15 Mon Sep 17 00:00:00 2001 From: nerix Date: Sun, 16 Feb 2025 15:50:11 +0100 Subject: [PATCH] fix: update the input style sheet when scaling (#5960) --- CHANGELOG.md | 1 + src/widgets/splits/SplitInput.cpp | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9f25977d..36d2f232 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ - Bugfix: Ensure miniaudio backend exits even if it doesn't exit cleanly. (#5896) - Bugfix: Fixed search in emote popup not always working correctly. (#5946) - Bugfix: Fixed channel point redemptions with messages not showing up if PubSub is disconnected. (#5948) +- Bugfix: Fixed the input font not immediately updating when zooming in/out. (#5960) - Dev: Subscriptions to PubSub channel points redemption topics now use no auth token, making it continue to work during PubSub shutdown. (#5947) - Dev: Add initial experimental EventSub support. (#5837, #5895, #5897, #5904, #5910, #5903, #5915, #5916, #5930, #5935, #5932, #5943, #5952, #5953) - Dev: Remove unneeded platform specifier for toasts. (#5914) diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index 3158e4c0..05aa4978 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -235,6 +235,14 @@ void SplitInput::scaleChangedEvent(float scale) } this->ui_.textEdit->setFont( app->getFonts()->getFont(FontStyle::ChatMedium, scale)); + + QPalette placeholderPalette; + placeholderPalette.setColor( + QPalette::PlaceholderText, + this->theme->messages.textColors.chatPlaceholder); + + this->ui_.textEdit->setStyleSheet(this->theme->splits.input.styleSheet); + this->ui_.textEdit->setPalette(placeholderPalette); this->ui_.textEditLength->setFont( app->getFonts()->getFont(FontStyle::ChatMedium, scale)); this->ui_.replyLabel->setFont(