From 868a42a8ce2e2aa783c4fa7fbb50e7838ddb6e0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 25 Jan 2022 10:56:48 +0800 Subject: Single text list item form with Roboto Mono Bold. --- components/ListItemSingleTextForm.ui.qml | 43 +++++++++++++++++++++++++++++++ fonts/RobotoMono-Bold.ttf | Bin 0 -> 87008 bytes 2 files changed, 43 insertions(+) create mode 100644 components/ListItemSingleTextForm.ui.qml create mode 100644 fonts/RobotoMono-Bold.ttf diff --git a/components/ListItemSingleTextForm.ui.qml b/components/ListItemSingleTextForm.ui.qml new file mode 100644 index 0000000..7bcfe02 --- /dev/null +++ b/components/ListItemSingleTextForm.ui.qml @@ -0,0 +1,43 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 + +Item { + property alias title: title + + width: 328 + height: 64 + + Image { + id: image + width: 32 + anchors.left: parent.left + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.leftMargin: 16 + anchors.topMargin: 16 + anchors.bottomMargin: 16 + fillMode: Image.PreserveAspectFit + } + + FontLoader { + id: robotoMonoBold + source: "../fonts/RobotoMono-Bold.ttf" + } + + Text { + id: title + width: 208 + text: qsTr("Project name") + anchors.left: image.right + anchors.top: parent.top + anchors.bottom: parent.bottom + anchors.leftMargin: 16 + anchors.topMargin: 20 + anchors.bottomMargin: 20 + lineHeight: 24 + verticalAlignment: Text.AlignVCenter + font.family: robotoMonoBold.name + font.pixelSize: 16 + font.letterSpacing: 0.15 + } +} diff --git a/fonts/RobotoMono-Bold.ttf b/fonts/RobotoMono-Bold.ttf new file mode 100644 index 0000000..900fce6 Binary files /dev/null and b/fonts/RobotoMono-Bold.ttf differ -- cgit v1.2.3