fix: qualify attached props on non-Item components
They do not have parents, so they won't inherit the config scope otherwise Animations are not per monitor
This commit is contained in:
parent
71dd7b4db8
commit
ae8d344f84
4 changed files with 13 additions and 13 deletions
|
|
@ -31,7 +31,7 @@ Item {
|
||||||
when: root.session.navExpanded
|
when: root.session.navExpanded
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
layout.spacing: Tokens.spacing.small
|
layout.spacing: root.Tokens.spacing.small
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -148,7 +148,7 @@ Item {
|
||||||
expandedLabel.opacity: 1
|
expandedLabel.opacity: 1
|
||||||
smallLabel.opacity: 0
|
smallLabel.opacity: 0
|
||||||
background.implicitWidth: icon.implicitWidth + icon.anchors.leftMargin * 2 + expandedLabel.anchors.leftMargin + expandedLabel.implicitWidth
|
background.implicitWidth: icon.implicitWidth + icon.anchors.leftMargin * 2 + expandedLabel.anchors.leftMargin + expandedLabel.implicitWidth
|
||||||
background.implicitHeight: icon.implicitHeight + Tokens.padding.normal * 2
|
background.implicitHeight: icon.implicitHeight + root.Tokens.padding.normal * 2
|
||||||
item.implicitHeight: background.implicitHeight
|
item.implicitHeight: background.implicitHeight
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -167,7 +167,7 @@ StyledFlickable {
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
renameDevice.implicitHeight: deviceNameEdit.implicitHeight
|
renameDevice.implicitHeight: deviceNameEdit.implicitHeight
|
||||||
renameLabel.opacity: 0
|
renameLabel.opacity: 0
|
||||||
deviceNameEdit.padding: Tokens.padding.normal
|
deviceNameEdit.padding: root.Tokens.padding.normal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -481,7 +481,7 @@ StyledFlickable {
|
||||||
when: root.session.bt.fabMenuOpen
|
when: root.session.bt.fabMenuOpen
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
fabMenuItem.implicitWidth: fabMenuItemInner.implicitWidth + Tokens.padding.large * 2
|
fabMenuItem.implicitWidth: fabMenuItemInner.implicitWidth + root.Tokens.padding.large * 2
|
||||||
fabMenuItem.opacity: 1
|
fabMenuItem.opacity: 1
|
||||||
fabMenuItemInner.opacity: 1
|
fabMenuItemInner.opacity: 1
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,7 +32,7 @@ Item {
|
||||||
name: "apps"
|
name: "apps"
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
root.implicitWidth: Tokens.sizes.launcher.itemWidth
|
root.implicitWidth: root.Tokens.sizes.launcher.itemWidth
|
||||||
root.implicitHeight: Math.min(root.maxHeight, appList.implicitHeight > 0 ? appList.implicitHeight : empty.implicitHeight)
|
root.implicitHeight: Math.min(root.maxHeight, appList.implicitHeight > 0 ? appList.implicitHeight : empty.implicitHeight)
|
||||||
appList.active: true
|
appList.active: true
|
||||||
}
|
}
|
||||||
|
|
@ -46,8 +46,8 @@ Item {
|
||||||
name: "wallpapers"
|
name: "wallpapers"
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
root.implicitWidth: Math.max(Tokens.sizes.launcher.itemWidth * 1.2, wallpaperList.implicitWidth)
|
root.implicitWidth: Math.max(root.Tokens.sizes.launcher.itemWidth * 1.2, wallpaperList.implicitWidth)
|
||||||
root.implicitHeight: Tokens.sizes.launcher.wallpaperHeight
|
root.implicitHeight: root.Tokens.sizes.launcher.wallpaperHeight
|
||||||
wallpaperList.active: true
|
wallpaperList.active: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -32,12 +32,12 @@ StyledRect {
|
||||||
name: "expanded"
|
name: "expanded"
|
||||||
|
|
||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
summary.anchors.margins: Tokens.padding.normal
|
summary.anchors.margins: root.Tokens.padding.normal
|
||||||
dummySummary.anchors.margins: Tokens.padding.normal
|
dummySummary.anchors.margins: root.Tokens.padding.normal
|
||||||
compactBody.anchors.margins: Tokens.padding.normal
|
compactBody.anchors.margins: root.Tokens.padding.normal
|
||||||
timeStr.anchors.margins: Tokens.padding.normal
|
timeStr.anchors.margins: root.Tokens.padding.normal
|
||||||
expandedContent.anchors.margins: Tokens.padding.normal
|
expandedContent.anchors.margins: root.Tokens.padding.normal
|
||||||
summary.width: root.width - Tokens.padding.normal * 2 - timeStr.implicitWidth - Tokens.spacing.small
|
summary.width: root.width - root.Tokens.padding.normal * 2 - timeStr.implicitWidth - root.Tokens.spacing.small
|
||||||
summary.maximumLineCount: Number.MAX_SAFE_INTEGER
|
summary.maximumLineCount: Number.MAX_SAFE_INTEGER
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue