mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-12-16 18:03:42 +00:00
update DP paint
This commit is contained in:
@ -50,13 +50,14 @@ Item {
|
||||
|
||||
// ui
|
||||
Grid {
|
||||
anchors.fill: parent
|
||||
horizontalItemAlignment: Grid.AlignHCenter
|
||||
verticalItemAlignment: Grid.AlignVCenter
|
||||
columns: plasmoid.configuration.verticalLayout ? 1 : DPAdds.numberOfDesktops()
|
||||
rows: plasmoid.configuration.verticalLayout ? DPAdds.numberOfDesktops() : 1
|
||||
|
||||
Repeater {
|
||||
id: repeater
|
||||
height: implicitHeight
|
||||
width: implicitWidth
|
||||
model: DPAdds.numberOfDesktops()
|
||||
Text {
|
||||
id: text
|
||||
@ -123,8 +124,8 @@ Item {
|
||||
repeater.itemAt(i).font.weight = general.fontWeight[plasmoid.configuration.fontWeight]
|
||||
}
|
||||
repeater.itemAt(i).update()
|
||||
newHeight += repeater.itemAt(i).contentHeight
|
||||
newWidth += repeater.itemAt(i).contentWidth
|
||||
newHeight += plasmoid.configuration.height == 0 ? repeater.itemAt(i).contentHeight : plasmoid.configuration.height / repeater.count
|
||||
newWidth += plasmoid.configuration.width == 0 ? repeater.itemAt(i).contentWidth : plasmoid.configuration.width / repeater.count
|
||||
}
|
||||
Layout.minimumHeight = newHeight
|
||||
Layout.minimumWidth = newWidth
|
||||
|
||||
Reference in New Issue
Block a user