Skip to content

Commit

Permalink
[Header] Fixup toolButton size
Browse files Browse the repository at this point in the history
  • Loading branch information
neochapay committed Oct 25, 2023
1 parent 9726539 commit fdb3ced
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/controls/qml/HeaderToolsLayout.qml
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ Item {
verticalCenter: parent.verticalCenter
}

width: tools ? (Theme.itemHeightMedium * Math.min(maxNumberOfToolButtons, tools.length)) : 0
width: tools ? (toolsLayoutItem.height * Math.min(maxNumberOfToolButtons, tools.length)) : 0
height: toolsLayoutItem.height

property int maxNumberOfToolButtons: 3
Expand All @@ -122,12 +122,13 @@ Item {
id: dots
anchors{
right: parent.right
rightMargin: Theme.itemSpacingLarge
verticalCenter: parent.verticalCenter
}
fillMode: Image.PreserveAspectFit
height: toolMeasure
width: toolMeasure
sourceSize.height: height
sourceSize.width: width
visible: drawerLevels && drawerLevels.length > 1
source: "image://theme/ellipsis-v"
rotation: isUiPortrait ? 0 : 90
Expand Down
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.itemHeightExtraSmall
height: Theme.itemHeightExtraSmall
width: Theme.itemHeightSmall
height: Theme.itemHeightSmall
color: bMouseArea.pressed ? Theme.accentColor : active ? Theme.accentColor : Theme.textColor
anchors.centerIn: parent
fillMode: Image.PreserveAspectFit
Expand Down

0 comments on commit fdb3ced

Please sign in to comment.