diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-02-05 20:54:59 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-02-05 20:54:59 +0800 |
commit | 5df5faf5cae1f2d5c889ef51237051fb5d35ece8 (patch) | |
tree | 9df3a0bc4381ec469f780d83357287751724b92e /MainTabBarForm.ui.qml | |
parent | f5159c9d698e5b0d7c4b40ec2076a46d89c972e8 (diff) |
Home tab bar as designed
Diffstat (limited to 'MainTabBarForm.ui.qml')
-rw-r--r-- | MainTabBarForm.ui.qml | 84 |
1 files changed, 65 insertions, 19 deletions
diff --git a/MainTabBarForm.ui.qml b/MainTabBarForm.ui.qml index 1e216ac..6a53398 100644 --- a/MainTabBarForm.ui.qml +++ b/MainTabBarForm.ui.qml @@ -1,38 +1,84 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 -TabBar { +Rectangle { property alias leftTabButton: leftTabButton property alias middleTabButton: middleTabButton property alias rightTabButton: rightTabButton - id: tabBar + color: "#fcfcfc" width: 360 + height: 80 - TabButton { - id: leftTabButton + FontLoader { + id: robotoMono + source: "fonts/RobotoMono-Regular.ttf" + } + + TabBar { + anchors.fill: parent + + TabButton { + id: leftTabButton + height: parent.height + anchors.verticalCenter: parent.verticalCenter + + Image { + source: "circle.png" + anchors.horizontalCenter: parent.horizontalCenter + anchors.top: parent.top + anchors.topMargin: 22 + } - Image { - anchors.centerIn: parent + Text { + text: qsTr("Today") + anchors.horizontalCenter: parent.horizontalCenter + anchors.bottom: parent.bottom + anchors.bottomMargin: 16 + font.family: robotoMono.name + } } - } - TabButton { - id: middleTabButton - x: tabBar.width / 3 + TabButton { + id: middleTabButton + height: parent.height + anchors.verticalCenter: parent.verticalCenter + + Image { + source: "triangle.png" + anchors.horizontalCenter: parent.horizontalCenter + anchors.top: parent.top + anchors.topMargin: 22 + } - Image { - anchors.centerIn: parent - source: "active-indicator.png" + Text { + text: qsTr("Projects") + anchors.horizontalCenter: parent.horizontalCenter + anchors.bottom: parent.bottom + anchors.bottomMargin: 16 + font.family: robotoMono.name + } } - } - TabButton { - id: rightTabButton - x: tabBar.width * 2 / 3 + TabButton { + id: rightTabButton + height: parent.height + anchors.verticalCenter: parent.verticalCenter + + Image { + source: "square.png" + anchors.horizontalCenter: parent.horizontalCenter + anchors.top: parent.top + anchors.topMargin: 22 + } - Image { - anchors.centerIn: parent + Text { + text: qsTr("Label") + anchors.horizontalCenter: parent.horizontalCenter + anchors.bottom: parent.bottom + anchors.bottomMargin: 16 + font.family: robotoMono.name + } } } } |