From dbc0481aa0bf338007c555e3899d09dd1d108051 Mon Sep 17 00:00:00 2001 From: Debian/Kubuntu Qt/KDE Maintainers Date: Fri, 16 Jun 2017 15:09:35 +0200 Subject: [PATCH] Add sddm's debian-breeze theme Breeze with Debian's default background Gbp-Pq: Name add_sddm_debian_breeze.patch --- lookandfeel/CMakeLists.txt | 15 +++++++++++++++ lookandfeel/sddm-theme-debian/metadata.desktop | 17 +++++++++++++++++ lookandfeel/sddm-theme-debian/theme.conf | 8 ++++++++ 3 files changed, 40 insertions(+) create mode 100644 lookandfeel/sddm-theme-debian/metadata.desktop create mode 100644 lookandfeel/sddm-theme-debian/theme.conf diff --git a/lookandfeel/CMakeLists.txt b/lookandfeel/CMakeLists.txt index 98c7ffc9..956ef296 100644 --- a/lookandfeel/CMakeLists.txt +++ b/lookandfeel/CMakeLists.txt @@ -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 index 00000000..09881415 --- /dev/null +++ b/lookandfeel/sddm-theme-debian/metadata.desktop @@ -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 +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 index 00000000..93bc0ba0 --- /dev/null +++ b/lookandfeel/sddm-theme-debian/theme.conf @@ -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 -- 2.30.2