Fix some qml warnings

This commit is contained in:
Tobias Fella
2025-09-01 23:33:25 +02:00
parent c377cf05b8
commit 14167d197f
2 changed files with 7 additions and 7 deletions

View File

@@ -48,7 +48,7 @@ Components.AbstractMaximizeComponent {
implicitWidth: Kirigami.Units.iconSizes.medium
implicitHeight: Kirigami.Units.iconSizes.medium
name: root.author.name ?? root.author.displayName
name: root.author.displayName
source: root.author.avatarUrl
color: root.author.color
}
@@ -57,7 +57,7 @@ Components.AbstractMaximizeComponent {
QQC2.Label {
id: userLabel
text: root.author.name ?? root.author.displayName
text: root.author.displayName
color: root.author.color
font.weight: Font.Bold
elide: Text.ElideRight

View File

@@ -41,14 +41,14 @@ FormCard.AbstractFormDelegate {
Layout.minimumWidth: Kirigami.Units.gridUnit + Kirigami.Units.largeSpacing
Layout.minimumHeight: Kirigami.Units.gridUnit + Kirigami.Units.largeSpacing
text: notificationsOn ? "" : "●"
text: root.notificationsOn ? "" : "●"
color: Kirigami.Theme.textColor
horizontalAlignment: Text.AlignHCenter
background: Rectangle {
visible: notificationsOn
visible: root.notificationsOn
Kirigami.Theme.colorSet: Kirigami.Theme.Button
color: highlightOn && highlightable ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.disabledTextColor
opacity: highlightOn && highlightable ? 1 : 0.3
color: root.highlightOn && root.highlightable ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.disabledTextColor
opacity: root.highlightOn && root.highlightable ? 1 : 0.3
radius: height / 2
}
}
@@ -95,7 +95,7 @@ FormCard.AbstractFormDelegate {
display: QQC2.AbstractButton.IconOnly
checkable: true
checked: isNotificationRuleNoisy(root.ruleAction)
checked: root.isNotificationRuleNoisy(root.ruleAction)
enabled: (onButton.checked || !root.notificationsOnModifiable) && root.enabled
down: checked
onToggled: {