From fd798b2eda1e1ebf1ffa936b6fa4f4c5f3b9d07d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Thu, 16 Feb 2023 15:31:48 +0800 Subject: Header logo --- Header.qml | 18 +++++++++++++++--- 1 file 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 -- cgit v1.2.3