From 14e9df18fd0fdf75226362c598d468e7e7875033 Mon Sep 17 00:00:00 2001 From: Sergey Chupligin Date: Wed, 25 Oct 2023 19:58:56 +0300 Subject: [PATCH] [Header] move dots into container --- src/controls/qml/HeaderToolsLayout.qml | 25 ++++++++++++++++--------- src/controls/qml/ToolButton.qml | 4 ++-- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/src/controls/qml/HeaderToolsLayout.qml b/src/controls/qml/HeaderToolsLayout.qml index 610288f..334aba2 100644 --- a/src/controls/qml/HeaderToolsLayout.qml +++ b/src/controls/qml/HeaderToolsLayout.qml @@ -50,7 +50,7 @@ Item { anchors{ leftMargin: Theme.itemSpacingLarge - //check if Stack.view has already been initialized as well + //check if Stack.view has already been initialized as well verticalCenter: parent.verticalCenter } @@ -118,19 +118,26 @@ Item { } } - NemoIcon { + Item{ id: dots anchors{ right: parent.right verticalCenter: parent.verticalCenter } - fillMode: Image.PreserveAspectFit - height: toolMeasure - width: toolMeasure - sourceSize.height: height - sourceSize.width: width + height: toolsLayoutItem.height + width: height visible: drawerLevels && drawerLevels.length > 1 - source: "image://theme/ellipsis-v" - rotation: isUiPortrait ? 0 : 90 + + NemoIcon { + width: parent.height/2 + height: parent.height/2 + anchors.centerIn: parent + fillMode: Image.PreserveAspectFit + + sourceSize.height: height + sourceSize.width: width + source: "image://theme/ellipsis-v" + rotation: isUiPortrait ? 0 : 90 + } } } diff --git a/src/controls/qml/ToolButton.qml b/src/controls/qml/ToolButton.qml index 3db4efc..24c6e5f 100644 --- a/src/controls/qml/ToolButton.qml +++ b/src/controls/qml/ToolButton.qml @@ -49,8 +49,8 @@ Item { NemoIcon { id: iconImage - width: Theme.itemHeightSmall - height: Theme.itemHeightSmall + width: toolButton.height/2 + height: toolButton.height/2 color: bMouseArea.pressed ? Theme.accentColor : active ? Theme.accentColor : Theme.textColor anchors.centerIn: parent fillMode: Image.PreserveAspectFit