Rewrite shell configuration options as well as read/write functionality as plugin #143
@@ -9,8 +9,8 @@ TextInput {
|
||||
selectionColor: Colors.tPalette.colSecondaryContainer
|
||||
|
||||
font {
|
||||
family: Appearance?.font.family.sans ?? "sans-serif"
|
||||
family: Config.appearance?.font.family.sans ?? "sans-serif"
|
||||
hintingPreference: Font.PreferFullHinting
|
||||
pixelSize: Appearance?.font.size.normal ?? 15
|
||||
pixelSize: Config.appearance?.font.size.normal ?? 15
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,11 +58,7 @@ CustomSwitch {
|
||||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
elide: Text.ElideRight
|
||||
font: {
|
||||
const f = Qt.font(label.font);
|
||||
f.pointSize = Tokens.font.size.smaller;
|
||||
return f;
|
||||
}
|
||||
font.pointSize: Tokens.font.size.smaller
|
||||
opacity: root.enabled ? 1 : 0.5
|
||||
text: root.text
|
||||
|
||||
@@ -79,11 +75,7 @@ CustomSwitch {
|
||||
anchors.right: parent.right
|
||||
color: Colors.palette.m3outline
|
||||
elide: Text.ElideRight
|
||||
font: {
|
||||
const f = Qt.font(subtext.font);
|
||||
f.pointSize = Tokens.font.size.small;
|
||||
return f;
|
||||
}
|
||||
font.pointSize: Tokens.font.size.small
|
||||
opacity: root.enabled ? 1 : 0.5
|
||||
text: root.subtext
|
||||
visible: root.subtext
|
||||
|
||||
Reference in New Issue
Block a user