Skip to content

Commit

Permalink
[Header] move dots into container
Browse files Browse the repository at this point in the history
  • Loading branch information
neochapay committed Oct 25, 2023
1 parent fdb3ced commit 14e9df1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 11 deletions.
25 changes: 16 additions & 9 deletions src/controls/qml/HeaderToolsLayout.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down Expand Up @@ -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
}
}
}
4 changes: 2 additions & 2 deletions src/controls/qml/ToolButton.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14e9df1

Please sign in to comment.