summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/IText.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/components/IText.qml b/components/IText.qml
new file mode 100644
index 0000000..1b971c4
--- /dev/null
+++ b/components/IText.qml
@@ -0,0 +1,15 @@
+import QtQuick
+import QtQuick.Layouts
+import qs.config
+
+Text {
+ renderType: Text.NativeRendering
+ verticalAlignment: Text.AlignVCenter
+ font {
+ hintingPreference: Font.PreferFullHinting
+ family: Appearance?.font.family.main ?? "sans-serif"
+ pixelSize: Appearance?.font.pixelSize.small ?? 15
+ }
+ color: Appearance?.m3colors.m3onBackground ?? "black"
+ linkColor: Appearance?.m3colors.m3primary
+}