From ade9869fafd16f4653a0fc40a3677090ff794d23 Mon Sep 17 00:00:00 2001 From: pajlada Date: Wed, 17 Jan 2024 21:34:01 +0100 Subject: [PATCH] Use the same input padding between light & dark themes (#5095) --- CHANGELOG.md | 1 + src/widgets/splits/SplitInput.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 802dfbd4a8c..baddc3d8756 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,7 @@ - Minor: Added missing periods at various moderator messages and commands. (#5061) - Minor: Improved color selection and display. (#5057) - Minor: Improved Streamlink documentation in the settings dialog. (#5076) +- Minor: Normalized the input padding between light & dark themes. (#5095) - Bugfix: Fixed an issue where certain emojis did not send to Twitch chat correctly. (#4840) - Bugfix: Fixed capitalized channel names in log inclusion list not being logged. (#4848) - Bugfix: Trimmed custom streamlink paths on all platforms making sure you don't accidentally add spaces at the beginning or end of its path. (#4834) diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index 63e3aef32a9..22d4fb61a19 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -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(2.F * this->scale()); this->ui_.vbox->setContentsMargins(marginPx, marginPx, marginPx, marginPx); this->ui_.emoteButton->getLabel().setStyleSheet("color: #000");