Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions package/contents/ui/lib/Card.qml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ Rectangle {
imagePath: root.enableTransparency ? "translucent/dialogs/background" : "opaque/dialogs/background"
clip: true
anchors.fill: parent
anchors.topMargin: rect.margins.top * root.scale
anchors.leftMargin: rect.margins.left * root.scale
anchors.rightMargin: rect.margins.right * root.scale
anchors.bottomMargin: rect.margins.bottom * root.scale
anchors.topMargin: -rect.inset.top + PlasmaCore.Units.smallSpacing * 1.5
anchors.leftMargin: -rect.inset.left + PlasmaCore.Units.smallSpacing * 1.5
anchors.rightMargin: -rect.inset.right + PlasmaCore.Units.smallSpacing * 1.5
anchors.bottomMargin: -rect.inset.bottom + PlasmaCore.Units.smallSpacing * 1.5
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But now they'll not respect the scale of the applet? There's an option in the settings to increase or decrease the scale of the applet to make it larger or smaller.


Item {
id: dataContainer
anchors.fill: parent
anchors.topMargin: rect.margins.top-rect.inset.top
anchors.leftMargin: rect.margins.left -rect.inset.left
anchors.rightMargin: rect.margins.right -rect.inset.right
anchors.bottomMargin: rect.margins.bottom -rect.inset.bottom
}
}
}