Fix some qml warnings
This commit is contained in:
@@ -48,7 +48,7 @@ Components.AbstractMaximizeComponent {
|
|||||||
implicitWidth: Kirigami.Units.iconSizes.medium
|
implicitWidth: Kirigami.Units.iconSizes.medium
|
||||||
implicitHeight: Kirigami.Units.iconSizes.medium
|
implicitHeight: Kirigami.Units.iconSizes.medium
|
||||||
|
|
||||||
name: root.author.name ?? root.author.displayName
|
name: root.author.displayName
|
||||||
source: root.author.avatarUrl
|
source: root.author.avatarUrl
|
||||||
color: root.author.color
|
color: root.author.color
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,7 @@ Components.AbstractMaximizeComponent {
|
|||||||
QQC2.Label {
|
QQC2.Label {
|
||||||
id: userLabel
|
id: userLabel
|
||||||
|
|
||||||
text: root.author.name ?? root.author.displayName
|
text: root.author.displayName
|
||||||
color: root.author.color
|
color: root.author.color
|
||||||
font.weight: Font.Bold
|
font.weight: Font.Bold
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
|
|||||||
@@ -41,14 +41,14 @@ FormCard.AbstractFormDelegate {
|
|||||||
Layout.minimumWidth: Kirigami.Units.gridUnit + Kirigami.Units.largeSpacing
|
Layout.minimumWidth: Kirigami.Units.gridUnit + Kirigami.Units.largeSpacing
|
||||||
Layout.minimumHeight: Kirigami.Units.gridUnit + Kirigami.Units.largeSpacing
|
Layout.minimumHeight: Kirigami.Units.gridUnit + Kirigami.Units.largeSpacing
|
||||||
|
|
||||||
text: notificationsOn ? "" : "●"
|
text: root.notificationsOn ? "" : "●"
|
||||||
color: Kirigami.Theme.textColor
|
color: Kirigami.Theme.textColor
|
||||||
horizontalAlignment: Text.AlignHCenter
|
horizontalAlignment: Text.AlignHCenter
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
visible: notificationsOn
|
visible: root.notificationsOn
|
||||||
Kirigami.Theme.colorSet: Kirigami.Theme.Button
|
Kirigami.Theme.colorSet: Kirigami.Theme.Button
|
||||||
color: highlightOn && highlightable ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.disabledTextColor
|
color: root.highlightOn && root.highlightable ? Kirigami.Theme.positiveTextColor : Kirigami.Theme.disabledTextColor
|
||||||
opacity: highlightOn && highlightable ? 1 : 0.3
|
opacity: root.highlightOn && root.highlightable ? 1 : 0.3
|
||||||
radius: height / 2
|
radius: height / 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -95,7 +95,7 @@ FormCard.AbstractFormDelegate {
|
|||||||
display: QQC2.AbstractButton.IconOnly
|
display: QQC2.AbstractButton.IconOnly
|
||||||
|
|
||||||
checkable: true
|
checkable: true
|
||||||
checked: isNotificationRuleNoisy(root.ruleAction)
|
checked: root.isNotificationRuleNoisy(root.ruleAction)
|
||||||
enabled: (onButton.checked || !root.notificationsOnModifiable) && root.enabled
|
enabled: (onButton.checked || !root.notificationsOnModifiable) && root.enabled
|
||||||
down: checked
|
down: checked
|
||||||
onToggled: {
|
onToggled: {
|
||||||
|
|||||||
Reference in New Issue
Block a user