From 3dcda09953cee10d64a6570d6071114ddbe3736d Mon Sep 17 00:00:00 2001 From: stefonarch Date: Fri, 13 Sep 2024 21:10:19 +0200 Subject: [PATCH] Use GDK_DPI_SCALING; smaller steps inn spinbox --- lxqt-config-session/basicsettings.cpp | 2 +- lxqt-config-session/basicsettings.ui | 2 +- lxqt-config-session/environmentpage.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lxqt-config-session/basicsettings.cpp b/lxqt-config-session/basicsettings.cpp index 832f489c..75facd14 100644 --- a/lxqt-config-session/basicsettings.cpp +++ b/lxqt-config-session/basicsettings.cpp @@ -37,7 +37,7 @@ static const QLatin1String leaveConfirmationKey("leave_confirmation"); static const QLatin1String lockBeforePowerActionsKey("lock_screen_before_power_actions"); static const QLatin1String powerActionsAfterLockDelayKey("power_actions_after_lock_delay"); static const QLatin1String QtScaleKey("QT_SCALE_FACTOR"); -static const QLatin1String GdkScaleKey("GDK_SCALE"); +static const QLatin1String GdkScaleKey("GDK_DPI_SCALE"); static const QLatin1String openboxValue("openbox"); BasicSettings::BasicSettings(LXQt::Settings *settings, QWidget *parent) : diff --git a/lxqt-config-session/basicsettings.ui b/lxqt-config-session/basicsettings.ui index 62650628..d2d12acc 100644 --- a/lxqt-config-session/basicsettings.ui +++ b/lxqt-config-session/basicsettings.ui @@ -133,7 +133,7 @@ 4.000000000000000 - 0.500000000000000 + 0.100000000000000 1.000000000000000 diff --git a/lxqt-config-session/environmentpage.cpp b/lxqt-config-session/environmentpage.cpp index d6ef8124..8295832a 100644 --- a/lxqt-config-session/environmentpage.cpp +++ b/lxqt-config-session/environmentpage.cpp @@ -161,7 +161,7 @@ void EnvironmentPage::updateScaleFactor() { m_settings->beginGroup(QL1S("Environment")); updateItem(QL1S("QT_SCALE_FACTOR"), m_settings->value(QL1S("QT_SCALE_FACTOR"), 1).toString()); - updateItem(QL1S("GDK_SCALE"), m_settings->value(QL1S("GDK_SCALE"), 1).toString()); + updateItem(QL1S("GDK_DPI_SCALE"), m_settings->value(QL1S("GDK_DPI_SCALE"), 1).toString()); m_settings->endGroup(); }