diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-02-05 21:25:14 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-02-05 21:25:14 +0800 |
commit | fb221a9073bf4baa1048011bc6fb11aea7d24df6 (patch) | |
tree | 06db8aacbb236f1be65d50932ee7a4d1514d4e31 | |
parent | ca0e877a465283115866dbef2ca523f1d3c72158 (diff) |
Own ticket form, not larva's
-rw-r--r-- | Home.qml | 3 | ||||
-rw-r--r-- | TicketForm.ui.qml | 50 | ||||
-rw-r--r-- | fonts/RobotoMono-Bold.ttf | bin | 0 -> 87008 bytes | |||
-rw-r--r-- | kelakon.qrc | 3 | ||||
-rw-r--r-- | larva.qrc | 2 |
5 files changed, 53 insertions, 5 deletions
@@ -2,7 +2,6 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 import QtQuick.Layouts 1.15 import "larva/features" -import "larva/components" HomeForm { //menuButton.onClicked: drawer.open() @@ -17,7 +16,7 @@ HomeForm { TaskListForm { listView { model: ticketList - delegate: ListItemSingleTextForm { + delegate: TicketForm { title.text: subject delegate.onClicked: { window.ticketHistoryList(id, diff --git a/TicketForm.ui.qml b/TicketForm.ui.qml new file mode 100644 index 0000000..dd3f6c1 --- /dev/null +++ b/TicketForm.ui.qml @@ -0,0 +1,50 @@ +import QtQuick 2.15 +import QtQuick.Controls 2.15 + +Item { + property alias title: title + property alias delegate: delegate + + width: 328 + height: 64 + + FontLoader { + id: robotoMonoBold + source: "fonts/RobotoMono-Bold.ttf" + } + + ItemDelegate { + id: delegate + anchors.fill: parent + + 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 + } + + 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.bold: true + font.pixelSize: 16 + font.letterSpacing: 0.15 + } + } +} diff --git a/fonts/RobotoMono-Bold.ttf b/fonts/RobotoMono-Bold.ttf Binary files differnew file mode 100644 index 0000000..900fce6 --- /dev/null +++ b/fonts/RobotoMono-Bold.ttf diff --git a/kelakon.qrc b/kelakon.qrc index 8944105..774a12e 100644 --- a/kelakon.qrc +++ b/kelakon.qrc @@ -4,7 +4,7 @@ <file>Login.qml</file> <file>LoginPassword.qml</file> <file>Home.qml</file> - <file>TicketList.qml</file> + <file>TicketForm.ui.qml</file> <file>TicketHistory.qml</file> <file>Profile.qml</file> <file>Email.qml</file> @@ -20,5 +20,6 @@ <file>square.png</file> <file>active-indicator.png</file> <file>fonts/RobotoMono-Regular.ttf</file> + <file>fonts/RobotoMono-Bold.ttf</file> </qresource> </RCC> @@ -1,7 +1,5 @@ <RCC> <qresource prefix="/"> - <file>larva/components/ListItemSingleTextForm.ui.qml</file> - <file>larva/fonts/RobotoMono-Bold.ttf</file> <file>larva/features/OnboardingForm.ui.qml</file> <file>larva/features/LoginForm.ui.qml</file> <file>larva/features/LoginEmailForm.ui.qml</file> |