Rewrite shell configuration options as well as read/write functionality as plugin #143

Merged
zach merged 9 commits from refactor/config-rw-plugin into main 2026-08-14 18:54:33 +02:00
2 changed files with 4 additions and 12 deletions
Showing only changes of commit 501e866a68 - Show all commits
+2 -2
View File
@@ -9,8 +9,8 @@ TextInput {
selectionColor: Colors.tPalette.colSecondaryContainer selectionColor: Colors.tPalette.colSecondaryContainer
font { font {
family: Appearance?.font.family.sans ?? "sans-serif" family: Config.appearance?.font.family.sans ?? "sans-serif"
hintingPreference: Font.PreferFullHinting hintingPreference: Font.PreferFullHinting
pixelSize: Appearance?.font.size.normal ?? 15 pixelSize: Config.appearance?.font.size.normal ?? 15
} }
} }
+2 -10
View File
@@ -58,11 +58,7 @@ CustomSwitch {
anchors.left: parent.left anchors.left: parent.left
anchors.right: parent.right anchors.right: parent.right
elide: Text.ElideRight elide: Text.ElideRight
font: { font.pointSize: Tokens.font.size.smaller
const f = Qt.font(label.font);
f.pointSize = Tokens.font.size.smaller;
return f;
}
opacity: root.enabled ? 1 : 0.5 opacity: root.enabled ? 1 : 0.5
text: root.text text: root.text
@@ -79,11 +75,7 @@ CustomSwitch {
anchors.right: parent.right anchors.right: parent.right
color: Colors.palette.m3outline color: Colors.palette.m3outline
elide: Text.ElideRight elide: Text.ElideRight
font: { font.pointSize: Tokens.font.size.small
const f = Qt.font(subtext.font);
f.pointSize = Tokens.font.size.small;
return f;
}
opacity: root.enabled ? 1 : 0.5 opacity: root.enabled ? 1 : 0.5
text: root.subtext text: root.subtext
visible: root.subtext visible: root.subtext