mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-29 15:54:45 +00:00
See also: https://pointieststick.com/2023/06/14/call-to-action-easy-porting-opportunity-in-plasma/
17 lines
679 B
QML
17 lines
679 B
QML
// SPDX-FileCopyrightText: 2023 Devin Lin <devin@kde.org>
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
import QtQuick
|
|
|
|
import org.kde.kirigami 2.20 as Kirigami
|
|
import org.kde.plasma.private.mobileshell.shellsettingsplugin as ShellSettings
|
|
|
|
// NOTE: This is a singleton in the mobileshell library, so we need to be careful to
|
|
// make this load as fast as possible (since it may be loaded in other processes ex. lockscreen).
|
|
|
|
pragma Singleton
|
|
|
|
QtObject {
|
|
readonly property real topPanelHeight: Kirigami.Units.gridUnit + Kirigami.Units.smallSpacing
|
|
readonly property real bottomPanelHeight: ShellSettings.Settings.navigationPanelEnabled ? Kirigami.Units.gridUnit * 2 : 0
|
|
}
|