Change loading delegate to animated progress bar
Gives a nicer visual indication instead of static text, in my opinion.
This commit is contained in:
@@ -2,6 +2,8 @@
|
|||||||
// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
// SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
import QtQuick.Layouts
|
||||||
|
import QtQuick.Controls as QQC2
|
||||||
|
|
||||||
import org.kde.kirigami as Kirigami
|
import org.kde.kirigami as Kirigami
|
||||||
|
|
||||||
@@ -15,7 +17,15 @@ TimelineDelegate {
|
|||||||
|
|
||||||
alwaysFillWidth: NeoChatConfig.compactLayout
|
alwaysFillWidth: NeoChatConfig.compactLayout
|
||||||
|
|
||||||
contentItem: Kirigami.PlaceholderMessage {
|
contentItem: RowLayout {
|
||||||
text: i18n("Loading…")
|
spacing: 0
|
||||||
|
|
||||||
|
QQC2.ProgressBar {
|
||||||
|
indeterminate: true
|
||||||
|
|
||||||
|
Layout.alignment: Qt.AlignHCenter
|
||||||
|
Layout.fillWidth: true
|
||||||
|
Layout.maximumWidth: Kirigami.Units.gridUnit * 20
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user