use (tweaked) roboto flex for shell text

This commit is contained in:
end-4
2025-11-02 00:57:50 +01:00
parent dcc14a565d
commit 09c637914d
27 changed files with 210 additions and 546 deletions
@@ -5,10 +5,14 @@ import QtQuick.Controls
Label {
renderType: Text.NativeRendering
verticalAlignment: Text.AlignVCenter
property bool shouldUseRubik: /^\d+$/.test(root.text)
property var defaultFont: shouldUseRubik ? "Rubik" : Appearance.font.family.main
font {
hintingPreference: Font.PreferFullHinting
family: Appearance?.font.family.main ?? "sans-serif"
hintingPreference: Font.PreferDefaultHinting
family: defaultFont
pixelSize: Appearance?.font.pixelSize.small ?? 15
variableAxes: shouldUseRubik ? ({}) : Appearance.font.variableAxes.main
}
color: Appearance?.m3colors.m3onBackground ?? "black"
linkColor: Appearance?.m3colors.m3primary