diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-16 15:31:48 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2023-02-16 15:31:48 +0800 |
commit | fd798b2eda1e1ebf1ffa936b6fa4f4c5f3b9d07d (patch) | |
tree | abaaf04d0a1e2497009c3d0e4995c9deb1a0d0cb | |
parent | 95b6b7b3682ffa98f3d295893980ecae33b2e53f (diff) |
Header logo
-rw-r--r-- | Header.qml | 18 |
1 files changed, 15 insertions, 3 deletions
@@ -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 |