Avoid ugly padding next to scroll bar in Plasmoid

It is actually just the normal marging/padding Plasmoids normally have but
with the scroll bar it doesn't look good.

The margins would be automatically collapsed if the scroll view was the
immediate content item. However, that's not the case so we need to set the
according property manually using `Plasma.Representation`.
This commit is contained in:
Martchus 2022-08-25 22:33:30 +02:00
parent 6941a1195d
commit d079d526ec
1 changed files with 5 additions and 1 deletions

View File

@ -6,7 +6,11 @@ import org.kde.plasma.core 2.0 as PlasmaCore
import org.kde.plasma.extras 2.0 as PlasmaExtras
import org.kde.plasma.components 3.0 as PlasmaComponents3
PlasmaComponents3.Page {
PlasmaExtras.Representation {
// disable margins as they don't look good together with the scroll view
// note: Would be collapsed automatically if the scroll view was the immediate content item.
collapseMarginsHint: true
// header ("toolbar" with buttons and combo box) and footer ("tabbar")
header: PlasmaExtras.PlasmoidHeading {
ToolBar {