Add method to bold slider/spin labels when a user game ini setting is being used

This commit is contained in:
TryTwo committed 2024-12-10 13:42:30 -07:00
1 parent ac129d318b
commit 9541bb6cf7
6 files changed
+57 -4

No files matched your search

@@ -29,3 +29,13 @@ void ConfigInteger::OnConfigChanged()
{
setValue(ReadValue(m_setting));
}
ConfigIntegerLabel::ConfigIntegerLabel(const QString& text, ConfigInteger* widget)
: QLabel(text), m_widget(QPointer<ConfigInteger>(widget))
{
connect(&Settings::Instance(), &Settings::ConfigChanged, this, [this]() {
// Label shares font changes with ConfigInteger to mark game ini settings.
if (m_widget)
setFont(m_widget->font());
});
}