2021-06-05 03:40:54 +00:00
|
|
|
/*
|
|
|
|
|
* SPDX-FileCopyrightText: 2021 Devin Lin <espidev@gmail.com>
|
|
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
|
*/
|
|
|
|
|
|
2023-05-13 02:07:48 +00:00
|
|
|
import QtQuick
|
|
|
|
|
import QtQuick.Controls as Controls
|
|
|
|
|
import QtQuick.Layouts
|
|
|
|
|
import QtQuick.Window
|
2021-06-05 03:40:54 +00:00
|
|
|
|
2023-07-25 01:13:52 +00:00
|
|
|
import org.kde.kirigami 2.20 as Kirigami
|
2023-07-09 22:50:33 +00:00
|
|
|
import org.kde.ksvg 1.0 as KSvg
|
2021-06-05 03:40:54 +00:00
|
|
|
import org.kde.plasma.components 3.0 as PlasmaComponents
|
|
|
|
|
|
|
|
|
|
// capture presses on the audio applet so it doesn't close the overlay
|
|
|
|
|
Controls.Control {
|
|
|
|
|
id: content
|
2023-07-25 01:13:52 +00:00
|
|
|
implicitWidth: Math.min(Kirigami.Units.gridUnit * 20, parent.width - Kirigami.Units.gridUnit * 2)
|
|
|
|
|
padding: Kirigami.Units.smallSpacing * 2
|
2023-07-09 22:50:33 +00:00
|
|
|
background: KSvg.FrameSvgItem {
|
2021-06-05 03:40:54 +00:00
|
|
|
imagePath: "widgets/background"
|
2023-07-25 01:13:52 +00:00
|
|
|
anchors.margins: -Kirigami.Units.smallSpacing * 2
|
2021-06-05 03:40:54 +00:00
|
|
|
anchors.fill: parent
|
|
|
|
|
}
|
|
|
|
|
}
|