diff --git a/Settings/Settings.qml b/Settings/Settings.qml index 81701dc..9626986 100644 --- a/Settings/Settings.qml +++ b/Settings/Settings.qml @@ -7,7 +7,7 @@ import qs.Services Singleton { property string shellName: "Noctalia" - property string settingsDir: (Quickshell.env("XDG_CONFIG_HOME") || Quickshell.env("HOME") + "/.config") + "/" + shellName + "/" + property string settingsDir: Quickshell.env("NOCTALIA_SETTINGS_DIR") || (Quickshell.env("XDG_CONFIG_HOME") || Quickshell.env("HOME") + "/.config") + "/" + shellName + "/" property string settingsFile: Quickshell.env("NOCTALIA_SETTINGS_FILE") || (settingsDir + "Settings.json") property string themeFile: Quickshell.env("NOCTALIA_THEME_FILE") || (settingsDir + "Theme.json") property var settings: settingAdapter @@ -58,6 +58,7 @@ Singleton { property bool reverseDayMonth: false property bool use12HourClock: false property bool dimPanels: true + property real fontSizeMultiplier: 1.0 // Font size multiplier (1.0 = normal, 1.2 = 20% larger, 0.8 = 20% smaller) property var pinnedExecs: [] // Added for AppLauncher pinned apps } } diff --git a/Settings/Theme.qml b/Settings/Theme.qml index cb8b5c1..97e8d29 100644 --- a/Settings/Theme.qml +++ b/Settings/Theme.qml @@ -102,10 +102,14 @@ Singleton { // Font Properties property string fontFamily: "Roboto" // Family for all text - - property int fontSizeHeader: 32 // Headers and titles - property int fontSizeBody: 16 // Body text and general content - property int fontSizeSmall: 14 // Small text like clock, labels - property int fontSizeCaption: 12 // Captions and fine print + + // Font size multiplier - adjust this in Settings.json to scale all fonts + property real fontSizeMultiplier: Settings.settings.fontSizeMultiplier || 1.0 + + // Base font sizes (multiplied by fontSizeMultiplier) + property int fontSizeHeader: Math.round(32 * fontSizeMultiplier) // Headers and titles + property int fontSizeBody: Math.round(16 * fontSizeMultiplier) // Body text and general content + property int fontSizeSmall: Math.round(14 * fontSizeMultiplier) // Small text like clock, labels + property int fontSizeCaption: Math.round(12 * fontSizeMultiplier) // Captions and fine print }