1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-06-15 07:35:20 -04:00

feat(notifications): user-configurable font size for notification summary and body (#2461)

* feat(notifications): add user-configurable font size for summary and body in notification popups

* feat: add Unset for falling back to previous default values

* fix: prek hook errors

---------

Co-authored-by: Klesh Wong <kleshwong@gmail.com>
This commit is contained in:
Klesh Wong
2026-06-12 03:40:33 +08:00
committed by GitHub
parent 29e8470f2e
commit 08fd6e26d8
5 changed files with 37 additions and 2 deletions
@@ -922,10 +922,11 @@ PanelWindow {
}
}
StyledText {
text: notificationData ? (notificationData.summary || "") : ""
color: Theme.surfaceText
font.pixelSize: Theme.fontSizeMedium
font.pixelSize: SettingsData.notificationSummaryFontSize || Theme.fontSizeMedium
font.weight: Font.Medium
width: parent.width
elide: Text.ElideRight
@@ -941,7 +942,7 @@ PanelWindow {
text: notificationData ? (notificationData.htmlBody || "") : ""
textFormat: Text.StyledText
color: Theme.surfaceVariantText
font.pixelSize: Theme.fontSizeSmall
font.pixelSize: SettingsData.notificationBodyFontSize || Theme.fontSizeSmall
width: parent.width
elide: descriptionExpanded ? Text.ElideNone : Text.ElideRight
horizontalAlignment: Text.AlignLeft