summaryrefslogtreecommitdiff
path: root/GridCardItem.ui.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-13 11:14:28 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-13 11:14:28 +0800
commit875a21e5790a034847db50cd2ca51970f739afd9 (patch)
tree4ec928800ac4560df73d665edf31ddd6235dad2e /GridCardItem.ui.qml
parent5066bc33212ec0e4967ab765d1e500f165bdefca (diff)
When not embedding font, don't search
Diffstat (limited to 'GridCardItem.ui.qml')
-rw-r--r--GridCardItem.ui.qml19
1 files changed, 8 insertions, 11 deletions
diff --git a/GridCardItem.ui.qml b/GridCardItem.ui.qml
index 346b3c6..2bfa20d 100644
--- a/GridCardItem.ui.qml
+++ b/GridCardItem.ui.qml
@@ -17,6 +17,11 @@ Item {
property alias imageArea: imageArea
property alias titleArea: titleArea
// property string textTruncateText: "Rooms oh fully taken by worse do. Points afraid but may end afraid but.."
+ property bool doesntEmbed: Qt.platform.os == "android"
+ || Qt.platform.os == "linux"
+ || Qt.platform.os == "osx"
+ || Qt.platform.os == "unix"
+ || Qt.platform.os == "windows"
DropShadow {
source: rectangle
@@ -94,7 +99,8 @@ Item {
FontLoader {
id: roboto
name: "Roboto"
- source: "Roboto/Roboto-Regular.ttf"
+ source: doesntEmbed ? ""
+ : "Roboto/Roboto-Regular.ttf"
}
Label {
@@ -102,16 +108,7 @@ Item {
text: badgeText
color: badgeColor
font {
- family: Qt.platform.os
- == "android" ||
- Qt.platform.os
- == "linux" ||
- Qt.platform.os
- == "osx" ||
- Qt.platform.os
- == "unix" ||
- Qt.platform.os
- == "windows"
+ family: doesntEmbed
? "Roboto"
: roboto.name
pixelSize: 13