diff --git a/src/StatusQ/Core/Theme/StatusDarkTheme.qml b/src/StatusQ/Core/Theme/StatusDarkTheme.qml index ad258137..76062b19 100644 --- a/src/StatusQ/Core/Theme/StatusDarkTheme.qml +++ b/src/StatusQ/Core/Theme/StatusDarkTheme.qml @@ -4,95 +4,7 @@ ThemePalette { name: "dark" - property QtObject baseFont: FontLoader { - source: "../../../assets/fonts/Inter/Inter-Regular.otf" - } - - property QtObject baseFontThin: FontLoader { - source: "../../../assets/fonts/Inter/Inter-Thin.otf" - } - - property QtObject baseFontExtraLight: FontLoader { - source: "../../../assets/fonts/Inter/Inter-ExtraLight.otf" - } - - property QtObject baseFontLight: FontLoader { - source: "../../../assets/fonts/Inter/Inter-Light.otf" - } - - property QtObject baseFontMedium: FontLoader { - source: "../../../assets/fonts/Inter/Inter-Medium.otf" - } - - property QtObject baseFontBold: FontLoader { - source: "../../../assets/fonts/Inter/Inter-Bold.otf" - } - - property QtObject baseFontExtraBold: FontLoader { - source: "../../../assets/fonts/Inter/Inter-ExtraBold.otf" - } - - property QtObject baseFontBlack: FontLoader { - source: "../../../assets/fonts/Inter/Inter-Black.otf" - } - - property QtObject monoFont: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-Regular.otf" - } - - property QtObject monoFontThin: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-Thin.otf" - } - - property QtObject monoFontExtraLight: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-ExtraLight.otf" - } - - property QtObject monoFontLight: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-Light.otf" - } - - property QtObject monoFontMedium: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-Medium.otf" - } - - property QtObject monoFontBold: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-Bold.otf" - } - - property QtObject monoFontExtraBold: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-ExtraBold.otf" - } - - property QtObject monoFontBlack: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-Black.otf" - } - - property QtObject codeFont: FontLoader { - source: "../../../assets/fonts/RobotoMono/RobotoMono-Regular.ttf" - } - - property QtObject codeFontThin: FontLoader { - source: "../../../assets/fonts/RobotoMono/RobotoMono-Thin.ttf" - } - - property QtObject codeFontExtraLight: FontLoader { - source: "../../../assets/fonts/RobotoMono/RobotoMono-ExtraLight.ttf" - } - - property QtObject codeFontLight: FontLoader { - source: "../../../assets/fonts/RobotoMono/RobotoMono-Light.ttf" - } - - property QtObject codeFontMedium: FontLoader { - source: "../../../assets/fonts/RobotoMono/RobotoMono-Medium.ttf" - } - - property QtObject codeFontBold: FontLoader { - source: "../../../assets/fonts/RobotoMono/RobotoMono-Bold.ttf" - } - - property color dropShadow: getColor('black', 0.08) + dropShadow: getColor('black', 0.08) baseColor1: getColor('graphite5') baseColor2: getColor('graphite4') diff --git a/src/StatusQ/Core/Theme/StatusLightTheme.qml b/src/StatusQ/Core/Theme/StatusLightTheme.qml index 230d45e1..7e143dc0 100644 --- a/src/StatusQ/Core/Theme/StatusLightTheme.qml +++ b/src/StatusQ/Core/Theme/StatusLightTheme.qml @@ -4,94 +4,6 @@ ThemePalette { name: "light" - property QtObject baseFont: FontLoader { - source: "../../../assets/fonts/Inter/Inter-Regular.otf" - } - - property QtObject baseFontThin: FontLoader { - source: "../../../assets/fonts/Inter/Inter-Thin.otf" - } - - property QtObject baseFontExtraLight: FontLoader { - source: "../../../assets/fonts/Inter/Inter-ExtraLight.otf" - } - - property QtObject baseFontLight: FontLoader { - source: "../../../assets/fonts/Inter/Inter-Light.otf" - } - - property QtObject baseFontMedium: FontLoader { - source: "../../../assets/fonts/Inter/Inter-Medium.otf" - } - - property QtObject baseFontBold: FontLoader { - source: "../../../assets/fonts/Inter/Inter-Bold.otf" - } - - property QtObject baseFontExtraBold: FontLoader { - source: "../../../assets/fonts/Inter/Inter-ExtraBold.otf" - } - - property QtObject baseFontBlack: FontLoader { - source: "../../../assets/fonts/Inter/Inter-Black.otf" - } - - property QtObject monoFont: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-Regular.otf" - } - - property QtObject monoFontThin: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-Thin.otf" - } - - property QtObject monoFontExtraLight: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-ExtraLight.otf" - } - - property QtObject monoFontLight: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-Light.otf" - } - - property QtObject monoFontMedium: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-Medium.otf" - } - - property QtObject monoFontBold: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-Bold.otf" - } - - property QtObject monoFontExtraBold: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-ExtraBold.otf" - } - - property QtObject monoFontBlack: FontLoader { - source: "../../../assets/fonts/InterStatus/InterStatus-Black.otf" - } - - property QtObject codeFont: FontLoader { - source: "../../../assets/fonts/RobotoMono/RobotoMono-Regular.ttf" - } - - property QtObject codeFontThin: FontLoader { - source: "../../../assets/fonts/RobotoMono/RobotoMono-Thin.ttf" - } - - property QtObject codeFontExtraLight: FontLoader { - source: "../../../assets/fonts/RobotoMono/RobotoMono-ExtraLight.ttf" - } - - property QtObject codeFontLight: FontLoader { - source: "../../../assets/fonts/RobotoMono/RobotoMono-Light.ttf" - } - - property QtObject codeFontMedium: FontLoader { - source: "../../../assets/fonts/RobotoMono/RobotoMono-Medium.ttf" - } - - property QtObject codeFontBold: FontLoader { - source: "../../../assets/fonts/RobotoMono/RobotoMono-Bold.ttf" - } - baseColor1: getColor('grey5') baseColor2: getColor('grey4') baseColor3: getColor('grey3') diff --git a/src/StatusQ/Core/Theme/Theme.qml b/src/StatusQ/Core/Theme/Theme.qml index ce0ec346..3c4a1dd7 100644 --- a/src/StatusQ/Core/Theme/Theme.qml +++ b/src/StatusQ/Core/Theme/Theme.qml @@ -10,5 +10,3 @@ QtObject { palette = theme } } - - diff --git a/src/StatusQ/Core/Theme/ThemePalette.qml b/src/StatusQ/Core/Theme/ThemePalette.qml index ad2f966d..4bb020df 100644 --- a/src/StatusQ/Core/Theme/ThemePalette.qml +++ b/src/StatusQ/Core/Theme/ThemePalette.qml @@ -6,30 +6,93 @@ QtObject { property string name - property FontLoader baseFont - property FontLoader baseFontThin - property FontLoader baseFontExtraLight - property FontLoader baseFontLight - property FontLoader baseFontMedium - property FontLoader baseFontBold - property FontLoader baseFontExtraBold - property FontLoader baseFontBlack + property var baseFont: FontLoader { + source: "../../../assets/fonts/Inter/Inter-Regular.otf" + } - property FontLoader monoFont - property FontLoader monoFontThin - property FontLoader monoFontExtraLight - property FontLoader monoFontLight - property FontLoader monoFontMedium - property FontLoader monoFontBold - property FontLoader monoFontExtraBold - property FontLoader monoFontBlack + property var baseFontThin: FontLoader { + source: "../../../assets/fonts/Inter/Inter-Thin.otf" + } - property FontLoader codeFont - property FontLoader codeFontThin - property FontLoader codeFontExtraLight - property FontLoader codeFontLight - property FontLoader codeFontMedium - property FontLoader codeFontBold + property var baseFontExtraLight: FontLoader { + source: "../../../assets/fonts/Inter/Inter-ExtraLight.otf" + } + + property var baseFontLight: FontLoader { + source: "../../../assets/fonts/Inter/Inter-Light.otf" + } + + property var baseFontMedium: FontLoader { + source: "../../../assets/fonts/Inter/Inter-Medium.otf" + } + + property var baseFontBold: FontLoader { + source: "../../../assets/fonts/Inter/Inter-Bold.otf" + } + + property var baseFontExtraBold: FontLoader { + source: "../../../assets/fonts/Inter/Inter-ExtraBold.otf" + } + + property var baseFontBlack: FontLoader { + source: "../../../assets/fonts/Inter/Inter-Black.otf" + } + + property var monoFont: FontLoader { + source: "../../../assets/fonts/InterStatus/InterStatus-Regular.otf" + } + + property var monoFontThin: FontLoader { + source: "../../../assets/fonts/InterStatus/InterStatus-Thin.otf" + } + + property var monoFontExtraLight: FontLoader { + source: "../../../assets/fonts/InterStatus/InterStatus-ExtraLight.otf" + } + + property var monoFontLight: FontLoader { + source: "../../../assets/fonts/InterStatus/InterStatus-Light.otf" + } + + property var monoFontMedium: FontLoader { + source: "../../../assets/fonts/InterStatus/InterStatus-Medium.otf" + } + + property var monoFontBold: FontLoader { + source: "../../../assets/fonts/InterStatus/InterStatus-Bold.otf" + } + + property var monoFontExtraBold: FontLoader { + source: "../../../assets/fonts/InterStatus/InterStatus-ExtraBold.otf" + } + + property var monoFontBlack: FontLoader { + source: "../../../assets/fonts/InterStatus/InterStatus-Black.otf" + } + + property var codeFont: FontLoader { + source: "../../../assets/fonts/RobotoMono/RobotoMono-Regular.ttf" + } + + property var codeFontThin: FontLoader { + source: "../../../assets/fonts/RobotoMono/RobotoMono-Thin.ttf" + } + + property var codeFontExtraLight: FontLoader { + source: "../../../assets/fonts/RobotoMono/RobotoMono-ExtraLight.ttf" + } + + property var codeFontLight: FontLoader { + source: "../../../assets/fonts/RobotoMono/RobotoMono-Light.ttf" + } + + property var codeFontMedium: FontLoader { + source: "../../../assets/fonts/RobotoMono/RobotoMono-Medium.ttf" + } + + property var codeFontBold: FontLoader { + source: "../../../assets/fonts/RobotoMono/RobotoMono-Bold.ttf" + } property color black: getColor('black') property color white: getColor('white')