mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
lockscreen: Add loading indicator when status bar is loading
This gives user indication that the status bar is loading, rather than just nothing being there.
This commit is contained in:
parent
cdce844eb9
commit
4cec95a3cc
1 changed files with 18 additions and 1 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2021-2022 Devin Lin <espidev@gmail.com>
|
||||
* SPDX-FileCopyrightText: 2021-2024 Devin Lin <espidev@gmail.com>
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
|
|
@ -9,6 +9,7 @@ import QtQuick.Layouts 1.1
|
|||
|
||||
import org.kde.kirigami as Kirigami
|
||||
import org.kde.plasma.private.mobileshell as MobileShell
|
||||
import org.kde.plasma.components 3.0 as PC3
|
||||
|
||||
import org.kde.notificationmanager as NotificationManager
|
||||
|
||||
|
|
@ -32,6 +33,22 @@ Item {
|
|||
}
|
||||
}
|
||||
|
||||
// Add loading indicator when status bar has not loaded yet
|
||||
PC3.BusyIndicator {
|
||||
id: statusBarLoadingIndication
|
||||
anchors.top: parent.top
|
||||
anchors.right: parent.right
|
||||
anchors.topMargin: Kirigami.Units.smallSpacing
|
||||
anchors.rightMargin: Kirigami.Units.smallSpacing
|
||||
visible: statusBarLoader.status != Loader.Ready
|
||||
|
||||
implicitHeight: root.statusBarHeight
|
||||
implicitWidth: root.statusBarHeight
|
||||
|
||||
Kirigami.Theme.inherit: false
|
||||
Kirigami.Theme.colorSet: Kirigami.Theme.Complementary
|
||||
}
|
||||
|
||||
// Status bar
|
||||
Loader {
|
||||
id: statusBarLoader
|
||||
|
|
|
|||
Loading…
Reference in a new issue