From fc479c358268864e55c9f80e424a85b75ec00049 Mon Sep 17 00:00:00 2001 From: Madjid Taha Date: Tue, 28 Oct 2025 10:41:43 +0100 Subject: [PATCH] clean some values --- .../quickshell/ii/modules/cheatsheet/CheatsheetKeybinds.qml | 3 +-- .../quickshell/ii/modules/common/widgets/KeyboardKey.qml | 2 +- .../quickshell/ii/modules/settings/AdvancedConfig.qml | 5 ----- 3 files changed, 2 insertions(+), 8 deletions(-) diff --git a/dots/.config/quickshell/ii/modules/cheatsheet/CheatsheetKeybinds.qml b/dots/.config/quickshell/ii/modules/cheatsheet/CheatsheetKeybinds.qml index d2eb9d922..8f26aa2c7 100644 --- a/dots/.config/quickshell/ii/modules/cheatsheet/CheatsheetKeybinds.qml +++ b/dots/.config/quickshell/ii/modules/cheatsheet/CheatsheetKeybinds.qml @@ -193,8 +193,7 @@ Item { StyledText { id: commentText anchors.centerIn: parent - // font.pixelSize: Appearance.font.pixelSize.smaller - font.pixelSize: Config.options.appearance.keybinds.pixelSize.comment + font.pixelSize: Config.options.appearance.keybinds.pixelSize.comment || Appearance.font.pixelSize.smaller text: modelData.comment } } diff --git a/dots/.config/quickshell/ii/modules/common/widgets/KeyboardKey.qml b/dots/.config/quickshell/ii/modules/common/widgets/KeyboardKey.qml index c769554ec..f620a3e3f 100644 --- a/dots/.config/quickshell/ii/modules/common/widgets/KeyboardKey.qml +++ b/dots/.config/quickshell/ii/modules/common/widgets/KeyboardKey.qml @@ -11,7 +11,7 @@ Rectangle { property real extraBottomBorderWidth: 2 property color borderColor: Appearance.colors.colOnLayer0 property real borderRadius: 5 - property int pixelSize: Appearance.font.pixelSize.smallie + property int pixelSize: Appearance.font.pixelSize.smaller property color keyColor: Appearance.m3colors.m3surfaceContainerLow implicitWidth: keyFace.implicitWidth + borderWidth * 2 implicitHeight: keyFace.implicitHeight + borderWidth * 2 + extraBottomBorderWidth diff --git a/dots/.config/quickshell/ii/modules/settings/AdvancedConfig.qml b/dots/.config/quickshell/ii/modules/settings/AdvancedConfig.qml index bc05cf3fe..e118358b9 100644 --- a/dots/.config/quickshell/ii/modules/settings/AdvancedConfig.qml +++ b/dots/.config/quickshell/ii/modules/settings/AdvancedConfig.qml @@ -1,10 +1,6 @@ import QtQuick -import Quickshell -import Quickshell.Io -import QtQuick.Layouts import qs.services import qs.modules.common -import qs.modules.common.functions import qs.modules.common.widgets ContentPage { @@ -220,7 +216,6 @@ ContentPage { } ConfigSpinBox { - // text: Translation.tr("Keycap") text: Translation.tr("Keybind font size") value: Config.options.appearance.keybinds.pixelSize.key from: Appearance.font.pixelSize.smallest