fix: update the input style sheet when scaling (#5960)

This commit is contained in:
nerix
2025-02-16 15:50:11 +01:00
committed by GitHub
parent bdd903bb42
commit fbe144840f
2 changed files with 9 additions and 0 deletions
+1
View File
@@ -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)
+8
View File
@@ -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(