From a7656f3f6d2a5b8d5655bc88150a907884483b9e 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, 13 Apr 2023 15:33:58 +0800 Subject: Qeduport wouldn't know the app window's ID --- Header.ui.qml | 11 ++++++----- Home/Default.ui.qml | 3 ++- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/Header.ui.qml b/Header.ui.qml index a1b5a21..9072dc7 100644 --- a/Header.ui.qml +++ b/Header.ui.qml @@ -1,5 +1,6 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 +import QtQuick.Window 2.15 import QtQuick.Layouts 1.15 import QtGraphicalEffects 1.15 import Bootstrap 5.3 @@ -32,7 +33,7 @@ ToolBar { horizontalPadding: 15 background: Rectangle { implicitHeight: 70 - color: window.Bootstrap.bodyBg + color: Window.window.Bootstrap.bodyBg } ToolButton { @@ -61,9 +62,9 @@ ToolBar { id: rectangle anchors.fill: parent radius: 5.2 - color: window.Bootstrap.mode + color: Window.window.Bootstrap.mode ? Eduport.bsDark - : window.Bootstrap.bodyBg + : Window.window.Bootstrap.bodyBg } DrpShdw.Box { @@ -80,7 +81,7 @@ ToolBar { contentItem: Rectangle { implicitWidth: width implicitHeight: 1 - color: window.Bootstrap.mode + color: Window.window.Bootstrap.mode ? Eduport.bsGray300 : Eduport.bsGray500 } @@ -281,7 +282,7 @@ ToolBar { ? Eduport.bsDropdownLinkHoverBg : Eduport.mode ? Eduport.bsDark - : window + : Window.window .Bootstrap.bodyBg radius: 5.2 } diff --git a/Home/Default.ui.qml b/Home/Default.ui.qml index bf2d2c6..8475cfd 100644 --- a/Home/Default.ui.qml +++ b/Home/Default.ui.qml @@ -1,5 +1,6 @@ import QtQuick 2.15 import QtQuick.Controls 2.15 +import QtQuick.Window 2.15 import QtQuick.Layouts 1.15 import QtGraphicalEffects 1.15 import Bootstrap 5.3 @@ -21,7 +22,7 @@ Flickable { Rectangle { anchors.fill: parent - color: window.Bootstrap.bodyBg + color: Window.window.Bootstrap.bodyBg } ColumnLayout { -- cgit v1.2.3