File: add-sddm-debian-theme

package info (click to toggle)
plasma-desktop 4%3A6.3.6-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 61,044 kB
  • sloc: cpp: 37,691; ansic: 2,617; python: 1,386; javascript: 1,163; xml: 1,082; sh: 128; makefile: 16
file content (116 lines) | stat: -rw-r--r-- 3,740 bytes parent folder | download | duplicates (2)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -286,6 +286,21 @@
     install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sddm-theme/theme.conf
         DESTINATION ${KDE_INSTALL_FULL_DATADIR}/sddm/themes/breeze
     )
+
+# Install Debian-themed SDDM theme
+    file(COPY "sddm-theme/Main.qml" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/sddm-theme-debian")
+    # Patch Main.qml to directly use ../breeze QML files
+    string(CONCAT SED_EXPR
+        "s=^[[:space:]]*import[[:space:]]\\+org.kde.breeze.components[[:space:]]*$"
+        "=\\0\\nimport \\\"../breeze\\\"="
+    )
+    execute_process(COMMAND sed -i -e "${SED_EXPR}" "${CMAKE_CURRENT_SOURCE_DIR}/sddm-theme-debian/Main.qml" RESULT_VARIABLE SED_RES OUTPUT_VARIABLE SED_OUT ERROR_VARIABLE SED_ERR)
+    message("sddm-theme-debian: Result of sed replacement for adding breeze import to Main.qml: (Res: ${SED_RES}, Out: ${SED_OUT}, Err: ${SED_ERR})")
+    #NOTE this trailing slash is important to rename the directory
+    install(DIRECTORY sddm-theme-debian/
+        DESTINATION ${KDE_INSTALL_FULL_DATADIR}/sddm/themes/debian-breeze
+    )
+
 endif()
 
 add_subdirectory(layout-templates)
--- /dev/null
+++ b/sddm-theme-debian/metadata.desktop
@@ -0,0 +1,77 @@
+[SddmGreeterTheme]
+Name=Debian Breeze
+Name[ar]=Debian نسيم
+Name[be]=Debian Breeze
+Name[bg]=Debian Breeze
+Name[ca]=Debian Brisa
+Name[ca@valencia]=Debian Brisa
+Name[cs]=Debian Breeze
+Name[en_GB]=Debian Breeze
+Name[eo]=Debian Breeze
+Name[es]=Debian Brisa
+Name[eu]=Debian Breeze
+Name[fr]=Debian Breeze
+Name[he]=Debian בריזה
+Name[hu]=Debian Breeze
+Name[ia]=Debian Breeze (Brisa)
+Name[is]=Debian Breeze
+Name[it]=Debian Brezza
+Name[ka]=Debian Breeze
+Name[lt]=Debian Breeze
+Name[nl]=Debian Breeze
+Name[nn]=Debian Breeze
+Name[pl]=Debian Bryza
+Name[ro]=Debian Breeze
+Name[sk]=Debian Vánok
+Name[sl]=Debian Sapica
+Name[ta]=Debian பிரீஸ்
+Name[tr]=Debian Esinti
+Name[uk]=Debian Breeze
+Name[x-test]=Debian xxBreezexx
+Name[zh_CN]=Debian Breeze 微风
+Name[zh_TW]=Debian Breeze
+Description=Debian Breeze
+Description[ar]=Debian نسيم
+Description[be]=Debian Breeze
+Description[bg]=Debian Breeze
+Description[ca]=Debian Brisa
+Description[ca@valencia]=Debian Brisa
+Description[cs]=Debian Breeze
+Description[en_GB]=Debian Breeze
+Description[eo]=Debian Brizo
+Description[es]=Debian Brisa
+Description[eu]=Debian Brisa
+Description[fr]=Debian Breeze
+Description[he]=Debian בריזה
+Description[hu]=Debian Breeze
+Description[ia]=Debian Breeze (Brisa)
+Description[is]=Debian Breeze
+Description[it]=Debian Brezza
+Description[ka]=Debian Breeze
+Description[lt]=Debian Breeze
+Description[nl]=Debian Breeze
+Description[nn]=Debian Breeze
+Description[pl]=Debian Bryza
+Description[ro]=Debian Briză
+Description[sk]=Debian Vánok
+Description[sl]=Debian Sapica
+Description[ta]=Debian பிரீஸ்
+Description[tr]=Debian Esinti
+Description[uk]=Debian Breeze
+Description[x-test]=Debian xxBreezexx
+Description[zh_CN]=Debian Breeze 微风
+Description[zh_TW]=Debian Breeze
+Author=KDE Visual Design Group and Debian artists
+Copyright=(c) 2014, David Edmundson
+License=CC-BY-SA
+Type=sddm-theme
+Version=0.1
+Website=https://github.com/sddm/sddm
+Screenshot=preview.png
+MainScript=Main.qml
+ConfigFile=theme.conf
+TranslationsDirectory=translations
+Email=Debian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
+Theme-Id=breeze-debian
+Theme-API=2.0
+QtVersion=6
--- /dev/null
+++ b/sddm-theme-debian/theme.conf
@@ -0,0 +1,8 @@
+[General]
+showlogo=shown
+showClock=true
+logo=/usr/share/desktop-base/debian-logos/logo-text.svg
+type=image
+color=#1d99f3
+fontSize=10
+background=/usr/share/desktop-base/active-theme/login/background-nologo.svg
+needsFullUserModel=false