Skip to content

Conversation

@veggero
Copy link

@veggero veggero commented Jan 23, 2023

SVG items can currently define a "inset" property that defines how much inset the element should have. The use case for this is e.g. including a shadow around the element and then setting the inset to be the same size as the shadow.

The idea is that this shouldn't change much unless you're using inset. However, I do change how margins work, since they were previously used to define the margin outside the element, and now they're used to define the margin inside them, as I thought was more appropriate.

SVG items can currently define a "inset" property that defines how much inset the element should have. The use case for this is e.g. including a shadow around the element and then setting the inset to be the same size as the shadow.
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants