From 94f7f09e73f5723f8c121c8a70a76c7994f7ca17 Mon Sep 17 00:00:00 2001 From: Mm2PL Date: Sat, 25 Dec 2021 23:43:03 +0000 Subject: [PATCH] Fixed character counter changing fonts after going over the limit (#3422) Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com> Co-authored-by: pajlada --- CHANGELOG.md | 1 + src/widgets/splits/SplitInput.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b849e741b..4dced6a99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -72,6 +72,7 @@ - Bugfix: Fixed a crash that could occur on certain Linux systems when toggling the Always on Top flag. (#3385) - Bugfix: Fixed zero-width emotes sometimes wrapping lines incorrectly. (#3389) - Bugfix: Fixed using special chars in Windows username breaking the storage of custom commands (#3397) +- Bugfix: Fixed character counter changing fonts after going over the limit. (#3422) - Dev: Add GitHub action to test builds without precompiled headers enabled. (#3327) - Dev: Renamed CMake's build option `USE_SYSTEM_QT5KEYCHAIN` to `USE_SYSTEM_QTKEYCHAIN`. (#3103) - Dev: Add benchmarks that can be compiled with the `BUILD_BENCHMARKS` CMake flag. Off by default. (#3038) diff --git a/src/widgets/splits/SplitInput.cpp b/src/widgets/splits/SplitInput.cpp index ef1c1f80b..a2d0bc6cb 100644 --- a/src/widgets/splits/SplitInput.cpp +++ b/src/widgets/splits/SplitInput.cpp @@ -136,6 +136,8 @@ void SplitInput::scaleChangedEvent(float scale) this->setMaximumHeight(int(150 * this->scale())); this->ui_.textEdit->setFont( getApp()->fonts->getFont(FontStyle::ChatMedium, this->scale())); + this->ui_.textEditLength->setFont( + getApp()->fonts->getFont(FontStyle::ChatMedium, this->scale())); } void SplitInput::themeChangedEvent()