mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-01-24 13:32:50 -05:00
notifications: update dimensions and text expansion logic
This commit is contained in:
@@ -558,8 +558,8 @@ Rectangle {
|
|||||||
visible: !expanded
|
visible: !expanded
|
||||||
anchors.right: clearButton.visible ? clearButton.left : parent.right
|
anchors.right: clearButton.visible ? clearButton.left : parent.right
|
||||||
anchors.rightMargin: clearButton.visible ? contentSpacing : Theme.spacingL
|
anchors.rightMargin: clearButton.visible ? contentSpacing : Theme.spacingL
|
||||||
anchors.bottom: parent.bottom
|
anchors.top: collapsedContent.bottom
|
||||||
anchors.bottomMargin: contentSpacing
|
anchors.topMargin: contentSpacing
|
||||||
spacing: contentSpacing
|
spacing: contentSpacing
|
||||||
|
|
||||||
Repeater {
|
Repeater {
|
||||||
@@ -614,8 +614,8 @@ Rectangle {
|
|||||||
visible: !expanded && actionCount < 3
|
visible: !expanded && actionCount < 3
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: Theme.spacingL
|
anchors.rightMargin: Theme.spacingL
|
||||||
anchors.bottom: parent.bottom
|
anchors.top: collapsedContent.bottom
|
||||||
anchors.bottomMargin: contentSpacing
|
anchors.topMargin: contentSpacing
|
||||||
width: Math.max(clearText.implicitWidth + Theme.spacingM, compactMode ? 40 : 50)
|
width: Math.max(clearText.implicitWidth + Theme.spacingM, compactMode ? 40 : 50)
|
||||||
height: actionButtonHeight
|
height: actionButtonHeight
|
||||||
radius: Theme.spacingXS
|
radius: Theme.spacingXS
|
||||||
|
|||||||
@@ -531,8 +531,8 @@ PanelWindow {
|
|||||||
Row {
|
Row {
|
||||||
anchors.right: clearButton.visible ? clearButton.left : parent.right
|
anchors.right: clearButton.visible ? clearButton.left : parent.right
|
||||||
anchors.rightMargin: clearButton.visible ? contentSpacing : Theme.spacingL
|
anchors.rightMargin: clearButton.visible ? contentSpacing : Theme.spacingL
|
||||||
anchors.bottom: parent.bottom
|
anchors.top: notificationContent.bottom
|
||||||
anchors.bottomMargin: contentSpacing
|
anchors.topMargin: contentSpacing
|
||||||
spacing: contentSpacing
|
spacing: contentSpacing
|
||||||
z: 20
|
z: 20
|
||||||
|
|
||||||
@@ -585,8 +585,8 @@ PanelWindow {
|
|||||||
visible: actionCount < 3
|
visible: actionCount < 3
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.rightMargin: Theme.spacingL
|
anchors.rightMargin: Theme.spacingL
|
||||||
anchors.bottom: parent.bottom
|
anchors.top: notificationContent.bottom
|
||||||
anchors.bottomMargin: contentSpacing
|
anchors.topMargin: contentSpacing
|
||||||
width: Math.max(clearTextLabel.implicitWidth + Theme.spacingM, compactMode ? 40 : 50)
|
width: Math.max(clearTextLabel.implicitWidth + Theme.spacingM, compactMode ? 40 : 50)
|
||||||
height: actionButtonHeight
|
height: actionButtonHeight
|
||||||
radius: Theme.spacingXS
|
radius: Theme.spacingXS
|
||||||
|
|||||||
Reference in New Issue
Block a user