2021-06-05 03:40:54 +00:00
|
|
|
/*
|
|
|
|
|
* SPDX-FileCopyrightText: 2021 Devin Lin <espidev@gmail.com>
|
2024-10-25 15:52:49 +00:00
|
|
|
* SPDX-FileCopyrightText: 2024 Micah Stanley <stanleymicah@proton.me>
|
2021-06-05 03:40:54 +00:00
|
|
|
*
|
|
|
|
|
* 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
|
|
|
|
2024-10-25 15:52:49 +00:00
|
|
|
import QtQuick.Effects
|
|
|
|
|
import Qt5Compat.GraphicalEffects
|
|
|
|
|
|
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
|
2025-06-23 00:16:16 +00:00
|
|
|
import org.kde.plasma.private.mobileshell as MobileShell
|
2021-06-05 03:40:54 +00:00
|
|
|
|
|
|
|
|
Controls.Control {
|
|
|
|
|
id: content
|
2024-10-25 15:52:49 +00:00
|
|
|
|
2025-09-13 22:59:09 +00:00
|
|
|
property real scaleFactor: 1.0
|
|
|
|
|
|
|
|
|
|
implicitWidth: Math.min(Kirigami.Units.gridUnit * 20, Screen.width - Kirigami.Units.gridUnit * 2)
|
|
|
|
|
padding: Kirigami.Units.largeSpacing
|
|
|
|
|
|
|
|
|
|
transform: Scale {
|
|
|
|
|
origin.x: Math.round(implicitWidth / 2)
|
|
|
|
|
origin.y: Math.round(height / 2)
|
|
|
|
|
xScale: scaleFactor
|
|
|
|
|
yScale: scaleFactor
|
|
|
|
|
}
|
2025-06-23 00:16:16 +00:00
|
|
|
|
2024-10-25 15:52:49 +00:00
|
|
|
Kirigami.Theme.colorSet: Kirigami.Theme.View
|
|
|
|
|
Kirigami.Theme.inherit: false
|
|
|
|
|
|
2025-06-23 00:16:16 +00:00
|
|
|
MobileShell.PanelBackground {
|
2021-06-05 03:40:54 +00:00
|
|
|
anchors.fill: parent
|
2025-10-09 01:31:56 +00:00
|
|
|
panelType: MobileShell.PanelBackground.PanelType.Popup
|
2021-06-05 03:40:54 +00:00
|
|
|
}
|
|
|
|
|
}
|