From a3af7773cf891ee54d0b524b3806ab4cd86e2756 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Sat, 14 Sep 2019 14:03:16 +0700 Subject: remove textLabel on FAB --- pages/HomeForm.ui.qml | 30 +++++++++--------------------- 1 file changed, 9 insertions(+), 21 deletions(-) (limited to 'pages') diff --git a/pages/HomeForm.ui.qml b/pages/HomeForm.ui.qml index 23ac660..28448ae 100644 --- a/pages/HomeForm.ui.qml +++ b/pages/HomeForm.ui.qml @@ -62,27 +62,16 @@ Rectangle { RoundButton { id: roundButton - width: 144 - spacing: 8 + width: 64 height: 64 + display: AbstractButton.IconOnly + spacing: 8 - text: qsTr("New task") padding: 16 - font.capitalization: Font.MixedCase - font.family: "Google Sans" - font.pointSize: 16 - font.weight: Font.Medium - - rightPadding: 24 - leftPadding: 16 - bottomPadding: 16 - topPadding: 16 - autoExclusive: false - focusPolicy: Qt.NoFocus anchors.bottom: parent.bottom - anchors.bottomMargin: 16 + anchors.bottomMargin: 8 anchors.right: parent.right - anchors.rightMargin: 16 + anchors.rightMargin: 8 highlighted: true icon.name: "add-icon" @@ -90,10 +79,9 @@ Rectangle { } } - - - -/*##^## Designer { +/*##^## +Designer { D{i:0;autoSize:true;height:480;width:640} } - ##^##*/ +##^##*/ + -- cgit v1.2.3 From e92c75d5f89af5f23d28eeb4605ed8be9b2075c2 Mon Sep 17 00:00:00 2001 From: Anatasof Wirapraja Date: Sat, 14 Sep 2019 14:19:04 +0700 Subject: add profileButton on ToolBar --- pages/HomeForm.ui.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'pages') diff --git a/pages/HomeForm.ui.qml b/pages/HomeForm.ui.qml index 28448ae..c0c95f2 100644 --- a/pages/HomeForm.ui.qml +++ b/pages/HomeForm.ui.qml @@ -46,7 +46,12 @@ Rectangle { verticalAlignment: Qt.AlignVCenter Layout.fillWidth: true } - ToolButton {} + ToolButton { + id: profileButton + icon.name: "profile-icon" + icon.source: "/assets/profile-24px.svg" + highlighted: true + } } } -- cgit v1.2.3