summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-30 19:55:56 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-03-30 19:57:02 +0800
commit67f611b63cf80ebfb128bb3fb3d2bf17a90442de (patch)
tree7c6fc0ae8e8ea7239aea4ef61e00535751344dc5
parentdb7d0d21e4c8c2b2a914c279e4efc34d4e1d3db0 (diff)
Shorten menu item ID
-rw-r--r--Header.ui.qml9
-rw-r--r--Header/CartItem.ui.qml6
2 files changed, 7 insertions, 8 deletions
diff --git a/Header.ui.qml b/Header.ui.qml
index 29091b6..4fdeb7c 100644
--- a/Header.ui.qml
+++ b/Header.ui.qml
@@ -234,7 +234,7 @@ ToolBar {
sourceComponent: background
}
delegate: MenuItem {
- id: profileMenuItem
+ id: menuItem
font: Eduport.bsBtnFont
horizontalPadding: 16
verticalPadding: 6.4
@@ -242,8 +242,7 @@ ToolBar {
contentItem: RowLayout {
Image {
- source: profileMenuItem
- .icon.source
+ source: menuItem.icon.source
sourceSize {
width: profileMenuItem
.icon.width
@@ -261,8 +260,8 @@ ToolBar {
}
Text {
- text: profileMenuItem.text
- font: profileMenuItem.font
+ text: menuItem.text
+ font: menuItem.font
color: highlighted
? Eduport.bsDropdownLinkHoverColor
: Eduport.bsDropdownLinkColor
diff --git a/Header/CartItem.ui.qml b/Header/CartItem.ui.qml
index 2fbf03b..4f97c29 100644
--- a/Header/CartItem.ui.qml
+++ b/Header/CartItem.ui.qml
@@ -6,7 +6,7 @@ import Eduport 1.4
import "../Label" as Lbl
MenuItem {
- id: cartMenuItem
+ id: menuItem
contentItem: ColumnLayout {
Loader {
@@ -21,7 +21,7 @@ MenuItem {
Layout.margins: 16
Loader {
- property string imageSource: cartMenuItem
+ property string imageSource: menuItem
.icon.source
property int imageWidth: 50
property int imageHeight: 50
@@ -35,7 +35,7 @@ MenuItem {
RowLayout {
Lbl.H6 {
- text: cartMenuItem.text
+ text: menuItem.text
Layout.fillWidth: true
}