From c7d533af027b718c71622173e8d1864a4151de26 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Wed, 5 May 2021 09:14:00 +0200 Subject: [PATCH] feat(Core): introduce StatusBaseText component Abstract text component that defaults to Status' `Inter` font. Also known as `StyledText` in Status Desktop. This will close #20 as it doesn't make sense to implement multiple components for a single text type. Size and weight of text can be configured on a per usage basis. Closes #20 --- src/StatusQ/Core/StatusBaseText.qml | 6 ++++++ src/StatusQ/Core/qmldir | 1 + 2 files changed, 7 insertions(+) create mode 100644 src/StatusQ/Core/StatusBaseText.qml diff --git a/src/StatusQ/Core/StatusBaseText.qml b/src/StatusQ/Core/StatusBaseText.qml new file mode 100644 index 00000000..20832934 --- /dev/null +++ b/src/StatusQ/Core/StatusBaseText.qml @@ -0,0 +1,6 @@ +import QtQuick 2.13 +import StatusQ.Core.Theme 0.1 + +Text { + font.family: Theme.palette.baseFont.name +} diff --git a/src/StatusQ/Core/qmldir b/src/StatusQ/Core/qmldir index 4aa7135c..a151edf0 100644 --- a/src/StatusQ/Core/qmldir +++ b/src/StatusQ/Core/qmldir @@ -1,4 +1,5 @@ module StatusQ.Core +StatusBaseText 0.1 StatusBaseText.qml StatusIcon 0.1 StatusIcon.qml