mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-27 14:33:08 +00:00
This moves all background rendering of elements in the top sliding panel to use the plasma theme, making full use of themes that can be downloaded from the store, doing so decreases the usage of the Qt.GraphicalEffects import which is slow and not in Qt6. There are some layout and behavioral fixes especially in widescreen mode
30 lines
683 B
QML
30 lines
683 B
QML
/*
|
|
* SPDX-FileCopyrightText: 2019 Marco Martin <mart@kde.org>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
import QtQuick 2.6
|
|
import QtQuick.Layouts 1.4
|
|
import QtQuick.Controls 2.4 as QQC2
|
|
import QtGraphicalEffects 1.12
|
|
|
|
import org.kde.plasma.core 2.0 as PlasmaCore
|
|
import org.kde.kirigami 2.12 as Kirigami
|
|
|
|
QQC2.Control {
|
|
id: root
|
|
|
|
leftPadding: frameSvg.margins.left
|
|
topPadding: frameSvg.margins.top
|
|
rightPadding: frameSvg.margins.right
|
|
bottomPadding: frameSvg.margins.bottom
|
|
|
|
background: PlasmaCore.FrameSvgItem {
|
|
id: frameSvg
|
|
imagePath: "widgets/background"
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
}
|
|
}
|
|
}
|