Use the same input padding between light & dark themes (#5095)

This commit is contained in:
pajlada
2024-01-17 21:34:01 +01:00
committed by GitHub
parent 9eeea8f203
commit 7d5967c248
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -240,7 +240,7 @@ void SplitInput::themeChangedEvent()
#if (QT_VERSION >= QT_VERSION_CHECK(5, 12, 0))
this->ui_.textEdit->setPalette(placeholderPalette);
#endif
auto marginPx = (this->theme->isLightTheme() ? 4 : 2) * this->scale();
auto marginPx = static_cast<int>(2.F * this->scale());
this->ui_.vbox->setContentsMargins(marginPx, marginPx, marginPx, marginPx);
this->ui_.emoteButton->getLabel().setStyleSheet("color: #000");