summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-04-15 10:19:38 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-04-15 10:19:38 +0800
commit726bd221a4183a894fc7eac50f401b8e269c442e (patch)
tree5264cdd7327cb441f164113c8112f27ee81ddf99
parenta7656f3f6d2a5b8d5655bc88150a907884483b9e (diff)
Fix Window.window potential error from Header
light (or dark) IDs can be referred to, instead.
-rw-r--r--Header.ui.qml12
1 files changed, 5 insertions, 7 deletions
diff --git a/Header.ui.qml b/Header.ui.qml
index 9072dc7..c5f98e6 100644
--- a/Header.ui.qml
+++ b/Header.ui.qml
@@ -1,6 +1,5 @@
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
@@ -33,7 +32,7 @@ ToolBar {
horizontalPadding: 15
background: Rectangle {
implicitHeight: 70
- color: Window.window.Bootstrap.bodyBg
+ color: light.Bootstrap.bodyBg
}
ToolButton {
@@ -62,9 +61,9 @@ ToolBar {
id: rectangle
anchors.fill: parent
radius: 5.2
- color: Window.window.Bootstrap.mode
+ color: light.Bootstrap.mode
? Eduport.bsDark
- : Window.window.Bootstrap.bodyBg
+ : light.Bootstrap.bodyBg
}
DrpShdw.Box {
@@ -81,7 +80,7 @@ ToolBar {
contentItem: Rectangle {
implicitWidth: width
implicitHeight: 1
- color: Window.window.Bootstrap.mode
+ color: light.Bootstrap.mode
? Eduport.bsGray300
: Eduport.bsGray500
}
@@ -282,8 +281,7 @@ ToolBar {
? Eduport.bsDropdownLinkHoverBg
: Eduport.mode
? Eduport.bsDark
- : Window.window
- .Bootstrap.bodyBg
+ : light.Bootstrap.bodyBg
radius: 5.2
}
}