1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-14 17:52:10 -04:00

Expand rules on-Click

This commit is contained in:
purian23
2026-02-13 14:10:05 -05:00
committed by bbedward
parent 9f13546b4d
commit b1735bb701

View File

@@ -339,6 +339,7 @@ Item {
} }
SettingsCard { SettingsCard {
id: notificationRulesCard
width: parent.width width: parent.width
iconName: "rule_settings" iconName: "rule_settings"
title: I18n.tr("Notification Rules") title: I18n.tr("Notification Rules")
@@ -363,7 +364,11 @@ Item {
iconSize: 20 iconSize: 20
backgroundColor: Theme.surfaceContainer backgroundColor: Theme.surfaceContainer
iconColor: Theme.primary iconColor: Theme.primary
onClicked: SettingsData.addNotificationRule() onClicked: {
SettingsData.addNotificationRule();
notificationRulesCard.userToggledCollapse = true;
notificationRulesCard.expanded = true;
}
} }
] ]
@@ -372,7 +377,7 @@ Item {
spacing: Theme.spacingS spacing: Theme.spacingS
StyledText { StyledText {
text: I18n.tr("Create rules to mute, ignore, hide from history, or override notification priority.") text: I18n.tr("Create rules to mute, ignore, hide from history, or override notification priority. Default only overrides priority; notifications still show normally.")
font.pixelSize: Theme.fontSizeSmall font.pixelSize: Theme.fontSizeSmall
color: Theme.surfaceVariantText color: Theme.surfaceVariantText
wrapMode: Text.WordWrap wrapMode: Text.WordWrap