Add sddm's debian-breeze theme
authorDebian/Kubuntu Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Fri, 16 Jun 2017 13:09:35 +0000 (15:09 +0200)
committerPatrick Franz <deltaone@debian.org>
Fri, 31 May 2024 14:54:34 +0000 (16:54 +0200)
Breeze with Debian's default background

Gbp-Pq: Name add_sddm_debian_breeze.patch

lookandfeel/CMakeLists.txt
lookandfeel/sddm-theme-debian/metadata.desktop [new file with mode: 0644]
lookandfeel/sddm-theme-debian/theme.conf [new file with mode: 0644]

index 98c7ffc97afb69a13420ae92d03d979737fabf23..956ef296a6136e2003f78cf7d1c78e9b3bb92237 100644 (file)
@@ -12,6 +12,21 @@ if (INSTALL_SDDM_THEME)
     PATTERN "theme.conf.cmake" EXCLUDE)
     install(FILES ${CMAKE_CURRENT_BINARY_DIR}/sddm-theme/theme.conf DESTINATION ${KDE_INSTALL_FULL_DATADIR}/sddm/themes/breeze)
     install(DIRECTORY org.kde.breeze/contents/components DESTINATION ${KDE_INSTALL_FULL_DATADIR}/sddm/themes/breeze PATTERN "README.txt" EXCLUDE)
+
+# Install Debian-themed SDDM theme
+    file(COPY "sddm-theme/Main.qml" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/sddm-theme-debian")
+    string(CONCAT SED_EXPR
+      "s=^[[:space:]]*import[[:space:]]*\\\"components\\\"[[:space:]]*$"
+      "=import \\\"../breeze\\\"\\nimport \\\"../breeze/components\\\"=;"
+      "s=\\\"components/=\\\"../breeze/components/=g"
+      )
+    # Patch Main.qml to directly use ../breeze qml files
+    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("Result of sed replacement for debian-breeze imports in 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()
 
 if (BUILD_TESTING)
diff --git a/lookandfeel/sddm-theme-debian/metadata.desktop b/lookandfeel/sddm-theme-debian/metadata.desktop
new file mode 100644 (file)
index 0000000..0988141
--- /dev/null
@@ -0,0 +1,17 @@
+[SddmGreeterTheme]
+Name=Debian Breeze
+Description=Breeze Theme using Debian artwork
+Description[fr]=Thème brise utilisant l’apparence Debian
+Author=Adapted by the Debian Qt/KDE Team from the KDE Visual Design Group work
+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=debian-breeze
+Theme-API=2.0
diff --git a/lookandfeel/sddm-theme-debian/theme.conf b/lookandfeel/sddm-theme-debian/theme.conf
new file mode 100644 (file)
index 0000000..93bc0ba
--- /dev/null
@@ -0,0 +1,8 @@
+[General]
+showlogo=hidden
+logo=/usr/share/sddm/themes/breeze/default-logo.svg
+type=image
+color=#1d99f3
+fontSize=10
+background=/usr/share/desktop-base/active-theme/login/background.svg
+needsFullUserModel=false