summaryrefslogtreecommitdiff
path: root/kde-plasma/plasma-vault/files/plasma-vault-5.19.2-use-PlasmaExtras.PlaceholderMessage.patch
blob: 9e5785d9d527677f9c4074221f924b4f54b231ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
From f8f7179824f5540ee64900d20af39dfc9bacd490 Mon Sep 17 00:00:00 2001
From: Nate Graham <nate@kde.org>
Date: Sun, 14 Jun 2020 09:09:48 -0600
Subject: [PATCH] Port applet to use PlasmaExtras.PlaceholderMessage

The Kirigami version uses QQC2 elements which don't respect the plasma
theme and color scheme, leading to thing slooking out of place
especially when using a dark color theme or scheme.

Depends on https://invent.kde.org/frameworks/plasma-framework/-/merge_requests/13
---
 CMakeLists.txt                      | 6 ------
 plasma/package/contents/ui/main.qml | 4 +---
 2 files changed, 1 insertion(+), 9 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e7aa0df..bc7c260 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,12 +66,6 @@ if (KF5NetworkManagerQt_FOUND)
 endif()
 find_package (KSysGuard REQUIRED)
 
-find_package(KF5Kirigami2 ${KF5_DEP_VERSION} CONFIG)
-set_package_properties(KF5Kirigami2 PROPERTIES
-    DESCRIPTION "A QtQuick based components set"
-    TYPE RUNTIME
-)
-
 include_directories (
    ${CMAKE_CURRENT_SOURCE_DIR}
    ${CMAKE_CURRENT_SOURCE_DIR}/common
diff --git a/plasma/package/contents/ui/main.qml b/plasma/package/contents/ui/main.qml
index 22c7428..bfac7a9 100644
--- a/plasma/package/contents/ui/main.qml
+++ b/plasma/package/contents/ui/main.qml
@@ -26,8 +26,6 @@ import org.kde.plasma.plasmoid 2.0
 import org.kde.plasma.components 2.0 as PlasmaComponents
 import org.kde.plasma.extras 2.0 as PlasmaExtras
 
-import org.kde.kirigami 2.12 as Kirigami
-
 Item {
     property var vaultsModel: plasmoid.nativeInterface.vaultsModel
     property var vaultsModelActions: plasmoid.nativeInterface.vaultsModel.actionsModel()
@@ -77,7 +75,7 @@ Item {
 
             interactive: false
 
-            Kirigami.PlaceholderMessage {
+            PlasmaExtras.PlaceholderMessage {
                 id: noVaultsMessage
 
                 anchors.centerIn: parent
-- 
2.27.0