1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-26 14:32:52 -05:00

slightly narrow HeaderPane

This commit is contained in:
bbedward
2025-09-23 15:34:04 -04:00
parent c04177e45d
commit ec4f0ff2ed

View File

@@ -13,7 +13,7 @@ Rectangle {
signal lockRequested() signal lockRequested()
signal editModeToggled() signal editModeToggled()
implicitHeight: 90 implicitHeight: 70
radius: Theme.cornerRadius radius: Theme.cornerRadius
color: Qt.rgba(Theme.surfaceVariant.r, color: Qt.rgba(Theme.surfaceVariant.r,
Theme.surfaceVariant.g, Theme.surfaceVariant.g,
@@ -33,8 +33,8 @@ Rectangle {
DankCircularImage { DankCircularImage {
id: avatarContainer id: avatarContainer
width: 64 width: 60
height: 64 height: 60
imageSource: { imageSource: {
if (PortalService.profileImage === "") if (PortalService.profileImage === "")
return "" return ""
@@ -69,9 +69,8 @@ Rectangle {
Row { Row {
id: actionButtonsRow id: actionButtonsRow
anchors.right: parent.right anchors.right: parent.right
anchors.top: parent.top anchors.verticalCenter: parent.verticalCenter
anchors.rightMargin: Theme.spacingXS anchors.rightMargin: Theme.spacingXS
anchors.topMargin: Theme.spacingXS
spacing: Theme.spacingXS spacing: Theme.spacingXS
DankActionButton { DankActionButton {
@@ -106,17 +105,14 @@ Rectangle {
settingsModal.show() settingsModal.show()
} }
} }
}
DankActionButton { DankActionButton {
buttonSize: 24 buttonSize: 36
iconName: editMode ? "done" : "edit" iconName: editMode ? "done" : "edit"
iconSize: 14 iconSize: Theme.iconSize - 4
iconColor: editMode ? Theme.primary : Theme.outline iconColor: editMode ? Theme.primary : Theme.surfaceText
backgroundColor: "transparent" backgroundColor: "transparent"
anchors.bottom: parent.bottom onClicked: root.editModeToggled()
anchors.right: parent.right }
anchors.margins: Theme.spacingXS
onClicked: root.editModeToggled()
} }
} }