aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/modules/common/widgets/StyledText.qml
diff options
context:
space:
mode:
authorKiran George <kirangeorge1995@gmail.com>2025-06-21 17:26:23 +0530
committerKiran George <kirangeorge1995@gmail.com>2025-06-21 17:26:23 +0530
commit0cda8f13953d0f4cc6126d4810c04452cc3375b8 (patch)
tree3627d7b49135b1d98f018dccb019c8cefc1ff0e4 /config/quickshell/modules/common/widgets/StyledText.qml
parent1462996cc5256e6337eafc226423de5559214c7f (diff)
Refactored for better colour and font expose and cleaned up unused code
Diffstat (limited to 'config/quickshell/modules/common/widgets/StyledText.qml')
-rw-r--r--config/quickshell/modules/common/widgets/StyledText.qml7
1 files changed, 3 insertions, 4 deletions
diff --git a/config/quickshell/modules/common/widgets/StyledText.qml b/config/quickshell/modules/common/widgets/StyledText.qml
index 6eef5785..988c136d 100644
--- a/config/quickshell/modules/common/widgets/StyledText.qml
+++ b/config/quickshell/modules/common/widgets/StyledText.qml
@@ -1,14 +1,13 @@
import "root:/modules/common"
import QtQuick
-import QtQuick.Layouts
Text {
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter
font {
hintingPreference: Font.PreferFullHinting
- family: Appearance?.font.family.main ?? "sans-serif"
- pixelSize: Appearance?.font.pixelSize.small ?? 15
+ family: Appearance?.font.family.uiFont ?? "sans-serif"
+ pixelSize: Appearance?.font.pixelSize.textBase ?? 15
}
- color: Appearance?.m3colors.m3onBackground ?? "black"
+ color: Appearance?.m3colors.m3primaryText ?? "black"
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage