diff --git a/Components/CustomTextInput.qml b/Components/CustomTextInput.qml index 0f474d5..7f6e0d2 100644 --- a/Components/CustomTextInput.qml +++ b/Components/CustomTextInput.qml @@ -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 } } diff --git a/Modules/Settings/Common/ToggleRow.qml b/Modules/Settings/Common/ToggleRow.qml index c2b35ab..ea4252b 100644 --- a/Modules/Settings/Common/ToggleRow.qml +++ b/Modules/Settings/Common/ToggleRow.qml @@ -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