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
+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(