chore(StatusQ): move assets to StatusQ from the shared dir
- adjust paths in Theme.svg/png
|
@ -46,5 +46,5 @@ Image {
|
|||
readonly property bool isError: status === Image.Error
|
||||
|
||||
fillMode: Image.PreserveAspectFit
|
||||
sourceSize: source.toString().endsWith(".svg") ? Qt.size(width, 0) : undefined
|
||||
sourceSize: source.toString().endsWith(".svg") ? Qt.size(width, height) : undefined
|
||||
}
|
||||
|
|
|
@ -18,7 +18,7 @@ QtObject {
|
|||
readonly property ThemePalette statusQLightTheme: StatusLightTheme {}
|
||||
readonly property ThemePalette statusQDarkTheme: StatusDarkTheme {}
|
||||
|
||||
readonly property string sqAssetPath: Qt.resolvedUrl("../../../assets/")
|
||||
readonly property string assetPath: Qt.resolvedUrl("../../../assets/")
|
||||
|
||||
function changeTheme(theme:int, isCurrentSystemThemeDark:bool) {
|
||||
switch (theme) {
|
||||
|
@ -41,15 +41,15 @@ QtObject {
|
|||
}
|
||||
|
||||
readonly property var baseFont: FontLoader {
|
||||
source: sqAssetPath + "fonts/Inter/Inter-Regular.otf"
|
||||
source: assetPath + "fonts/Inter/Inter-Regular.otf"
|
||||
}
|
||||
|
||||
readonly property var monoFont: FontLoader {
|
||||
source: sqAssetPath + "fonts/InterStatus/InterStatus-Regular.otf"
|
||||
source: assetPath + "fonts/InterStatus/InterStatus-Regular.otf"
|
||||
}
|
||||
|
||||
readonly property var codeFont: FontLoader {
|
||||
source: sqAssetPath + "fonts/RobotoMono/RobotoMono-Regular.ttf"
|
||||
source: assetPath + "fonts/RobotoMono/RobotoMono-Regular.ttf"
|
||||
}
|
||||
|
||||
readonly property var _d: QtObject {
|
||||
|
@ -57,81 +57,81 @@ QtObject {
|
|||
|
||||
// Inter font variants
|
||||
property var baseFontThin: FontLoader {
|
||||
source: sqAssetPath + "fonts/Inter/Inter-Thin.otf"
|
||||
source: assetPath + "fonts/Inter/Inter-Thin.otf"
|
||||
}
|
||||
|
||||
property var baseFontExtraLight: FontLoader {
|
||||
source: sqAssetPath + "fonts/Inter/Inter-ExtraLight.otf"
|
||||
source: assetPath + "fonts/Inter/Inter-ExtraLight.otf"
|
||||
}
|
||||
|
||||
property var baseFontLight: FontLoader {
|
||||
source: sqAssetPath + "fonts/Inter/Inter-Light.otf"
|
||||
source: assetPath + "fonts/Inter/Inter-Light.otf"
|
||||
}
|
||||
|
||||
property var baseFontMedium: FontLoader {
|
||||
source: sqAssetPath + "fonts/Inter/Inter-Medium.otf"
|
||||
source: assetPath + "fonts/Inter/Inter-Medium.otf"
|
||||
}
|
||||
|
||||
property var baseFontBold: FontLoader {
|
||||
source: sqAssetPath + "fonts/Inter/Inter-Bold.otf"
|
||||
source: assetPath + "fonts/Inter/Inter-Bold.otf"
|
||||
}
|
||||
|
||||
property var baseFontExtraBold: FontLoader {
|
||||
source: sqAssetPath + "fonts/Inter/Inter-ExtraBold.otf"
|
||||
source: assetPath + "fonts/Inter/Inter-ExtraBold.otf"
|
||||
}
|
||||
|
||||
property var baseFontBlack: FontLoader {
|
||||
source: sqAssetPath + "fonts/Inter/Inter-Black.otf"
|
||||
source: assetPath + "fonts/Inter/Inter-Black.otf"
|
||||
}
|
||||
|
||||
// Inter Status font variants
|
||||
property var monoFontThin: FontLoader {
|
||||
source: sqAssetPath + "fonts/InterStatus/InterStatus-Thin.otf"
|
||||
source: assetPath + "fonts/InterStatus/InterStatus-Thin.otf"
|
||||
}
|
||||
|
||||
property var monoFontExtraLight: FontLoader {
|
||||
source: sqAssetPath + "fonts/InterStatus/InterStatus-ExtraLight.otf"
|
||||
source: assetPath + "fonts/InterStatus/InterStatus-ExtraLight.otf"
|
||||
}
|
||||
|
||||
property var monoFontLight: FontLoader {
|
||||
source: sqAssetPath + "fonts/InterStatus/InterStatus-Light.otf"
|
||||
source: assetPath + "fonts/InterStatus/InterStatus-Light.otf"
|
||||
}
|
||||
|
||||
property var monoFontMedium: FontLoader {
|
||||
source: sqAssetPath + "fonts/InterStatus/InterStatus-Medium.otf"
|
||||
source: assetPath + "fonts/InterStatus/InterStatus-Medium.otf"
|
||||
}
|
||||
|
||||
property var monoFontBold: FontLoader {
|
||||
source: sqAssetPath + "fonts/InterStatus/InterStatus-Bold.otf"
|
||||
source: assetPath + "fonts/InterStatus/InterStatus-Bold.otf"
|
||||
}
|
||||
|
||||
property var monoFontExtraBold: FontLoader {
|
||||
source: sqAssetPath + "fonts/InterStatus/InterStatus-ExtraBold.otf"
|
||||
source: assetPath + "fonts/InterStatus/InterStatus-ExtraBold.otf"
|
||||
}
|
||||
|
||||
property var monoFontBlack: FontLoader {
|
||||
source: sqAssetPath + "fonts/InterStatus/InterStatus-Black.otf"
|
||||
source: assetPath + "fonts/InterStatus/InterStatus-Black.otf"
|
||||
}
|
||||
|
||||
// Roboto font variants
|
||||
property var codeFontThin: FontLoader {
|
||||
source: sqAssetPath + "fonts/RobotoMono/RobotoMono-Thin.ttf"
|
||||
source: assetPath + "fonts/RobotoMono/RobotoMono-Thin.ttf"
|
||||
}
|
||||
|
||||
property var codeFontExtraLight: FontLoader {
|
||||
source: sqAssetPath + "fonts/RobotoMono/RobotoMono-ExtraLight.ttf"
|
||||
source: assetPath + "fonts/RobotoMono/RobotoMono-ExtraLight.ttf"
|
||||
}
|
||||
|
||||
property var codeFontLight: FontLoader {
|
||||
source: sqAssetPath + "fonts/RobotoMono/RobotoMono-Light.ttf"
|
||||
source: assetPath + "fonts/RobotoMono/RobotoMono-Light.ttf"
|
||||
}
|
||||
|
||||
property var codeFontMedium: FontLoader {
|
||||
source: sqAssetPath + "fonts/RobotoMono/RobotoMono-Medium.ttf"
|
||||
source: assetPath + "fonts/RobotoMono/RobotoMono-Medium.ttf"
|
||||
}
|
||||
|
||||
property var codeFontBold: FontLoader {
|
||||
source: sqAssetPath + "fonts/RobotoMono/RobotoMono-Bold.ttf"
|
||||
source: assetPath + "fonts/RobotoMono/RobotoMono-Bold.ttf"
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -208,17 +208,13 @@ QtObject {
|
|||
}
|
||||
|
||||
// Style compat
|
||||
readonly property string assetPath: Qt.resolvedUrl("../../../../../imports/assets/")
|
||||
function png(name) {
|
||||
return assetPath + "png/" + name + ".png"
|
||||
}
|
||||
function svg(name) {
|
||||
return assetPath + "icons/" + name + ".svg"
|
||||
return assetPath + "img/icons/" + name + ".svg"
|
||||
}
|
||||
function emoji(name) {
|
||||
return "qrc:/StatusQ/src/assets/twemoji/svg/" + name + ".svg"
|
||||
}
|
||||
function gif(name) {
|
||||
return assetPath + "gif/" + name + ".gif"
|
||||
return assetPath + "twemoji/svg/" + name + ".svg"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -52,7 +52,7 @@ Rectangle {
|
|||
Component {
|
||||
id: statusIdenticon
|
||||
Image {
|
||||
source: "../../assets/img/status-logo-icon.png"
|
||||
source: "../../assets/png/status-logo-icon.png"
|
||||
width: 40
|
||||
height: 40
|
||||
sourceSize.width: width * 2
|
||||
|
|
Before Width: | Height: | Size: 538 B After Width: | Height: | Size: 538 B |
Before Width: | Height: | Size: 540 B After Width: | Height: | Size: 540 B |
Before Width: | Height: | Size: 691 B After Width: | Height: | Size: 691 B |
Before Width: | Height: | Size: 691 B After Width: | Height: | Size: 691 B |
Before Width: | Height: | Size: 667 B After Width: | Height: | Size: 667 B |
Before Width: | Height: | Size: 922 B After Width: | Height: | Size: 922 B |
Before Width: | Height: | Size: 922 B After Width: | Height: | Size: 922 B |
Before Width: | Height: | Size: 545 B After Width: | Height: | Size: 545 B |
Before Width: | Height: | Size: 773 B After Width: | Height: | Size: 773 B |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 540 B After Width: | Height: | Size: 540 B |
Before Width: | Height: | Size: 593 B After Width: | Height: | Size: 593 B |
Before Width: | Height: | Size: 976 B After Width: | Height: | Size: 976 B |
Before Width: | Height: | Size: 546 B After Width: | Height: | Size: 546 B |
Before Width: | Height: | Size: 987 B After Width: | Height: | Size: 987 B |
Before Width: | Height: | Size: 989 B After Width: | Height: | Size: 989 B |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 627 B After Width: | Height: | Size: 627 B |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 914 B After Width: | Height: | Size: 914 B |
Before Width: | Height: | Size: 628 B After Width: | Height: | Size: 628 B |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 277 B After Width: | Height: | Size: 277 B |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 818 B After Width: | Height: | Size: 818 B |
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 3.3 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
Before Width: | Height: | Size: 755 B After Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 877 B After Width: | Height: | Size: 877 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 534 B After Width: | Height: | Size: 534 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 735 B After Width: | Height: | Size: 735 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 755 B After Width: | Height: | Size: 755 B |
Before Width: | Height: | Size: 965 B After Width: | Height: | Size: 965 B |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 254 B After Width: | Height: | Size: 254 B |
Before Width: | Height: | Size: 442 B After Width: | Height: | Size: 442 B |
Before Width: | Height: | Size: 403 B After Width: | Height: | Size: 403 B |
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 630 B |
Before Width: | Height: | Size: 957 B After Width: | Height: | Size: 957 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 758 B After Width: | Height: | Size: 758 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 945 B After Width: | Height: | Size: 945 B |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 608 B After Width: | Height: | Size: 608 B |
Before Width: | Height: | Size: 803 B After Width: | Height: | Size: 803 B |
Before Width: | Height: | Size: 621 B After Width: | Height: | Size: 621 B |
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 2.7 KiB |
Before Width: | Height: | Size: 846 B After Width: | Height: | Size: 846 B |
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 2.8 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 6.1 KiB After Width: | Height: | Size: 6.1 KiB |
Before Width: | Height: | Size: 152 B After Width: | Height: | Size: 152 B |
Before Width: | Height: | Size: 438 B After Width: | Height: | Size: 438 B |
Before Width: | Height: | Size: 841 B After Width: | Height: | Size: 841 B |