|
| 1 | +pragma Singleton |
| 2 | + |
| 3 | +import QtQuick |
| 4 | + |
| 5 | +import StatusQ.Core.Utils as SQUtils |
| 6 | + |
| 7 | +SQUtils.QObject { |
| 8 | + readonly property alias baseFont: baseFont.font |
| 9 | + readonly property alias monoFont: monoFont.font |
| 10 | + readonly property alias codeFont: codeFont.font |
| 11 | + |
| 12 | + FontLoader { |
| 13 | + id: baseFont |
| 14 | + |
| 15 | + source: Assets.assetPath + "fonts/Inter/Inter-Regular.otf" |
| 16 | + } |
| 17 | + |
| 18 | + FontLoader { |
| 19 | + id: monoFont |
| 20 | + |
| 21 | + source: Assets.assetPath + "fonts/InterStatus/InterStatus-Regular.otf" |
| 22 | + } |
| 23 | + |
| 24 | + FontLoader { |
| 25 | + id: codeFont |
| 26 | + |
| 27 | + source: Assets.assetPath + "fonts/RobotoMono/RobotoMono-Regular.ttf" |
| 28 | + } |
| 29 | + |
| 30 | + // Inter font variants |
| 31 | + FontLoader { |
| 32 | + source: Assets.assetPath + "fonts/Inter/Inter-Thin.otf" |
| 33 | + } |
| 34 | + |
| 35 | + FontLoader { |
| 36 | + source: Assets.assetPath + "fonts/Inter/Inter-ExtraLight.otf" |
| 37 | + } |
| 38 | + |
| 39 | + FontLoader { |
| 40 | + source: Assets.assetPath + "fonts/Inter/Inter-Light.otf" |
| 41 | + } |
| 42 | + |
| 43 | + FontLoader { |
| 44 | + source: Assets.assetPath + "fonts/Inter/Inter-Medium.otf" |
| 45 | + } |
| 46 | + |
| 47 | + FontLoader { |
| 48 | + source: Assets.assetPath + "fonts/Inter/Inter-Bold.otf" |
| 49 | + } |
| 50 | + |
| 51 | + FontLoader { |
| 52 | + source: Assets.assetPath + "fonts/Inter/Inter-ExtraBold.otf" |
| 53 | + } |
| 54 | + |
| 55 | + FontLoader { |
| 56 | + source: Assets.assetPath + "fonts/Inter/Inter-Black.otf" |
| 57 | + } |
| 58 | + |
| 59 | + // Inter Status font variants |
| 60 | + FontLoader { |
| 61 | + source: Assets.assetPath + "fonts/InterStatus/InterStatus-Thin.otf" |
| 62 | + } |
| 63 | + |
| 64 | + FontLoader { |
| 65 | + source: Assets.assetPath + "fonts/InterStatus/InterStatus-ExtraLight.otf" |
| 66 | + } |
| 67 | + |
| 68 | + FontLoader { |
| 69 | + source: Assets.assetPath + "fonts/InterStatus/InterStatus-Light.otf" |
| 70 | + } |
| 71 | + |
| 72 | + FontLoader { |
| 73 | + source: Assets.assetPath + "fonts/InterStatus/InterStatus-Medium.otf" |
| 74 | + } |
| 75 | + |
| 76 | + FontLoader { |
| 77 | + source: Assets.assetPath + "fonts/InterStatus/InterStatus-Bold.otf" |
| 78 | + } |
| 79 | + |
| 80 | + FontLoader { |
| 81 | + source: Assets.assetPath + "fonts/InterStatus/InterStatus-ExtraBold.otf" |
| 82 | + } |
| 83 | + |
| 84 | + FontLoader { |
| 85 | + source: Assets.assetPath + "fonts/InterStatus/InterStatus-Black.otf" |
| 86 | + } |
| 87 | + |
| 88 | + // Roboto font variants |
| 89 | + FontLoader { |
| 90 | + source: Assets.assetPath + "fonts/RobotoMono/RobotoMono-Thin.ttf" |
| 91 | + } |
| 92 | + |
| 93 | + FontLoader { |
| 94 | + source: Assets.assetPath + "fonts/RobotoMono/RobotoMono-ExtraLight.ttf" |
| 95 | + } |
| 96 | + |
| 97 | + FontLoader { |
| 98 | + source: Assets.assetPath + "fonts/RobotoMono/RobotoMono-Light.ttf" |
| 99 | + } |
| 100 | + |
| 101 | + FontLoader { |
| 102 | + source: Assets.assetPath + "fonts/RobotoMono/RobotoMono-Medium.ttf" |
| 103 | + } |
| 104 | + |
| 105 | + FontLoader { |
| 106 | + source: Assets.assetPath + "fonts/RobotoMono/RobotoMono-Bold.ttf" |
| 107 | + } |
| 108 | +} |
0 commit comments