plasma-framework/tests/frames.qml
David Edmundson b1364fa601 Fix broken background
In commit c709076d9c the SVG got somehow
broken leading to black rectangles in all cases where it was used.

This commit reverts to the last working version, then reapplies the
"thick margin" from the change.

A test is supplied to show all our frameSVGs to hopefully make this
easier to spot if it happens again.

BUG: 430390
2020-12-17 12:41:38 +00:00

42 lines
816 B
QML

/*
SPDX-FileCopyrightText: 2020 David Edmundson <davidedmundson@kde.org>
SPDX-License-Identifier: LGPL-2.0-or-later
*/
import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtQuick.Controls 1.1
import org.kde.plasma.core 2.0 as PlasmaCore
Item
{
width: 500
height: 500
Grid {
anchors.fill: parent
columns: 3
Repeater {
model: ["widgets/background",
"widgets/panel-background",
"opaque/widgets/panel-background",
"widgets/tooltip",
"opaque/widgets/tooltip"
]
delegate: PlasmaCore.FrameSvgItem {
width: 100
height: 100
imagePath: modelData
}
}
}
}