From bb563e350f16f1e685b289d8210d4dcef96acfa4 Mon Sep 17 00:00:00 2001 From: talksik Date: Fri, 11 Apr 2025 12:11:39 -0700 Subject: [PATCH] feat: add basic typography components --- AppCaption.qml | 10 ++++++++++ AppHeadline.qml | 9 +++++++++ AppLabel.qml | 9 +++++++++ AppSubHeadline.qml | 9 +++++++++ CMakeLists.txt | 4 ++++ 5 files changed, 41 insertions(+) create mode 100644 AppCaption.qml create mode 100644 AppHeadline.qml create mode 100644 AppLabel.qml create mode 100644 AppSubHeadline.qml diff --git a/AppCaption.qml b/AppCaption.qml new file mode 100644 index 0000000..44211b6 --- /dev/null +++ b/AppCaption.qml @@ -0,0 +1,10 @@ +import QtQuick +import QtQuick.Controls.Basic + +Text { + color: Theme.caption + font.family: Fonts.dotrice + font.bold: true + font.capitalization: Font.AllUppercase + font.pointSize: 10 +} diff --git a/AppHeadline.qml b/AppHeadline.qml new file mode 100644 index 0000000..e35c706 --- /dev/null +++ b/AppHeadline.qml @@ -0,0 +1,9 @@ +import QtQuick +import QtQuick.Controls.Basic + +Text { + color: Theme.primaryText + font.family: Fonts.plusJakartaSans + font.bold: false + font.pointSize: 20 +} diff --git a/AppLabel.qml b/AppLabel.qml new file mode 100644 index 0000000..25c4c19 --- /dev/null +++ b/AppLabel.qml @@ -0,0 +1,9 @@ +import QtQuick +import QtQuick.Controls.Basic + +Text { + color: Theme.secondaryText + font.family: Fonts.plusJakartaSans + font.bold: false + font.pointSize: 12 +} diff --git a/AppSubHeadline.qml b/AppSubHeadline.qml new file mode 100644 index 0000000..578ff34 --- /dev/null +++ b/AppSubHeadline.qml @@ -0,0 +1,9 @@ +import QtQuick +import QtQuick.Controls.Basic + +Text { + color: Theme.secondaryText + font.family: Fonts.plusJakartaSans + font.bold: false + font.pointSize: 15 +} diff --git a/CMakeLists.txt b/CMakeLists.txt index f89a276..bf2146d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,6 +14,10 @@ set(plain_qml_files AppIcon.qml AppPrimaryButton.qml AppCard.qml + AppCaption.qml + AppHeadline.qml + AppSubHeadline.qml + AppLabel.qml ) set(qml_singletons Fonts.qml