summaryrefslogtreecommitdiff
path: root/Header.qml
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-16 15:31:48 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-16 15:31:48 +0800
commitfd798b2eda1e1ebf1ffa936b6fa4f4c5f3b9d07d (patch)
treeabaaf04d0a1e2497009c3d0e4995c9deb1a0d0cb /Header.qml
parent95b6b7b3682ffa98f3d295893980ecae33b2e53f (diff)
Header logo
Diffstat (limited to 'Header.qml')
-rw-r--r--Header.qml18
1 files changed, 15 insertions, 3 deletions
diff --git a/Header.qml b/Header.qml
index 8be57c5..395d713 100644
--- a/Header.qml
+++ b/Header.qml
@@ -3,6 +3,7 @@ import QtQuick.Controls 2.15
import QtQuick.Layouts 1.15
ToolBar {
+ property alias logo: logo
property alias toolButton: toolButton
property alias optionsMenu: optionsMenu
property alias optionProfile: profile
@@ -24,17 +25,28 @@ ToolBar {
source: doesntEmbed ? "" : "Roboto/Roboto-Medium.ttf"
}
- RowLayout {
+ Item {
anchors.fill: parent
- layoutDirection: Qt.RightToLeft
+
+ ToolButton {
+ id: logo
+ anchors.left: parent.left
+ icon.source: "https://eduport.webestica.com/assets/images/logo.svg"
+ icon.width: 115
+ background: Rectangle {
+ implicitHeight: 64
+ }
+ }
+
ToolButton {
id: toolButton
+ anchors.right: parent.right
icon.source: "https://eduport.webestica.com/assets/images/avatar/01.jpg"
icon.color: "transparent"
- onClicked: optionsMenu.open()
background: Rectangle {
implicitHeight: 64
}
+ onClicked: optionsMenu.open()
Menu {
id: optionsMenu