diff options
| author | Aurélien COUDERC <zecoucou@free.fr> | 2016-11-30 23:02:06 (GMT) |
|---|---|---|
| committer | Aurélien COUDERC <zecoucou@free.fr> | 2016-11-30 23:02:06 (GMT) |
| commit | 28b16456457f968974270fb410786f277a2973c0 (patch) | |
| tree | 38228a1a66621d09769ad939dde31de54befb152 | |
| parent | 4b46079e8dbf3356434348a2e3898239db44f19b (diff) | |
Add SDDM themes based on Debian arwork, make default theme configurable with alternatives
| -rw-r--r-- | debian/control | 31 | ||||
| -rw-r--r-- | debian/patches/02_use_debian_theme.diff (renamed from debian/patches/02_kubuntu_use_breeze.diff) | 2 | ||||
| -rw-r--r-- | debian/patches/05_add_debian_themes.diff | 155 | ||||
| -rw-r--r-- | debian/patches/series | 3 | ||||
| -rw-r--r-- | debian/sddm-theme-debian-elarun.install | 1 | ||||
| -rw-r--r-- | debian/sddm-theme-debian-elarun.postinst | 13 | ||||
| -rw-r--r-- | debian/sddm-theme-debian-elarun.prerm | 12 | ||||
| -rw-r--r-- | debian/sddm-theme-debian-maui.install | 1 | ||||
| -rw-r--r-- | debian/sddm-theme-debian-maui.postinst | 13 | ||||
| -rw-r--r-- | debian/sddm-theme-debian-maui.prerm | 12 | ||||
| -rw-r--r-- | debian/sddm-theme-elarun.postinst | 13 | ||||
| -rw-r--r-- | debian/sddm-theme-elarun.prerm | 12 | ||||
| -rw-r--r-- | debian/sddm-theme-maldives.postinst | 13 | ||||
| -rw-r--r-- | debian/sddm-theme-maldives.prerm | 12 | ||||
| -rw-r--r-- | debian/sddm-theme-maui.install | 1 | ||||
| -rw-r--r-- | debian/sddm-theme-maui.postinst | 13 | ||||
| -rw-r--r-- | debian/sddm-theme-maui.prerm | 12 |
17 files changed, 317 insertions, 2 deletions
diff --git a/debian/control b/debian/control index 03a6819..41c2d65 100644 --- a/debian/control +++ b/debian/control @@ -42,6 +42,26 @@ Description: modern display manager for X11 and beautiful. It uses modern technologies like QtQuick to create smooth, animated user interfaces. +Package: sddm-theme-maui +Architecture: all +Depends: ${misc:Depends} +Recommends: sddm +Provides: sddm-theme +Breaks: sddm (<< ${source:Version}) +Description: 'Maui' theme for SDDM X11 display manager + Maui theme for SDDM + +Package: sddm-theme-debian-maui +Architecture: all +Depends: desktop-base, + ${misc:Depends} +Recommends: sddm +Provides: sddm-theme +Breaks: sddm (<< ${source:Version}) +Description: 'Debian Maui' theme for SDDM X11 display manager + Maui theme for SDDM, using the active desktop-base theme for the + background + Package: sddm-theme-elarun Architecture: all Depends: ${misc:Depends} @@ -51,6 +71,17 @@ Breaks: sddm (<< ${source:Version}) Description: 'Elarun' Theme for SDDM X11 display manager Elarun theme for SDDM +Package: sddm-theme-debian-elarun +Architecture: all +Depends: desktop-base, + ${misc:Depends} +Recommends: sddm +Provides: sddm-theme +Breaks: sddm (<< ${source:Version}) +Description: 'Debian Elarun' Theme for SDDM X11 display manager + Elarun theme for SDDM, using the active desktop-base theme for the + background. + Package: sddm-theme-maldives Architecture: all Depends: ${misc:Depends} diff --git a/debian/patches/02_kubuntu_use_breeze.diff b/debian/patches/02_use_debian_theme.diff index 52349eb..cca161a 100644 --- a/debian/patches/02_kubuntu_use_breeze.diff +++ b/debian/patches/02_use_debian_theme.diff @@ -15,7 +15,7 @@ index f790343..933931d 100644 Section(Theme, Entry(ThemeDir, QString, _S(DATA_INSTALL_DIR "/themes"), _S("Theme directory path")); - Entry(Current, QString, _S(""), _S("Current theme name")); -+ Entry(Current, QString, _S("breeze"), _S("Current theme name")); ++ Entry(Current, QString, _S("debian-theme"), _S("Current theme name")); Entry(FacesDir, QString, _S(DATA_INSTALL_DIR "/faces"), _S("Global directory for user avatars\n" "The files should be named <username>.face.icon")); Entry(CursorTheme, QString, QString(), _S("Cursor theme used in the greeter")); diff --git a/debian/patches/05_add_debian_themes.diff b/debian/patches/05_add_debian_themes.diff new file mode 100644 index 0000000..33a650f --- /dev/null +++ b/debian/patches/05_add_debian_themes.diff @@ -0,0 +1,155 @@ +Index: sddm/data/themes/CMakeLists.txt +=================================================================== +--- sddm.orig/data/themes/CMakeLists.txt 2016-11-30 21:46:27.615830425 +0100 ++++ sddm/data/themes/CMakeLists.txt 2016-11-30 21:52:29.039905637 +0100 +@@ -1,4 +1,27 @@ +-set(THEMES elarun maldives) ++# Copy Maui to have it available as an external (non-embedded) theme ++file(COPY "../../src/greeter/theme/" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/maui") ++ ++# Copy Main.qml and image resources from upstream Maui to debian-maui ++file(COPY "../../src/greeter/theme/Main.qml" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/debian-maui") ++file(GLOB MAUI_PNGS "../../src/greeter/theme/*.png") ++foreach(MAUI_PNG ${MAUI_PNGS}) ++ file(COPY "${MAUI_PNG}" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/debian-maui") ++endforeach(MAUI_PNG) ++# Replace default background source by config key config.background ++set(SED_EXPR "s=^\\([[:space:]]*source[[:space:]]*:[[:space:]]\\)\\\"qrc:/theme/background.png\\\"[[:space:]]*$=\\1config.background=") ++execute_process(COMMAND sed -i -e "${SED_EXPR}" "${CMAKE_CURRENT_SOURCE_DIR}/debian-maui/Main.qml" RESULT_VARIABLE RES OUTPUT_VARIABLE OUT) ++message("Result of sed replacement for Maui's background source: (Res: ${RES}, Out: ${OUT})") ++ ++# Copy selected files from upstream Elarun to debian-elarun ++file(COPY "elarun/Main.qml" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/debian-elarun") ++file(COPY "elarun/angle-down.png" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/debian-elarun") ++file(COPY "elarun/elarun.jpg" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/debian-elarun") ++file(GLOB ELARUN_IMGS "elarun/images/*") ++foreach(ELARUN_IMG ${ELARUN_IMGS}) ++ file(COPY "${ELARUN_IMG}" DESTINATION "${CMAKE_CURRENT_SOURCE_DIR}/debian-elarun/images/") ++endforeach(ELARUN_IMG) ++ ++set(THEMES elarun maldives maui debian-maui debian-elarun) + + foreach(THEME ${THEMES}) + # We assume that theme-specific translations are stored +@@ -13,7 +36,7 @@ + + qt5_add_translation(QM_FILES "${TRANSLATION_SOURCES}") + +- install(DIRECTORY "${THEME}" DESTINATION "${DATA_INSTALL_DIR}/themes" PATTERN "*.ts" EXCLUDE) ++ install(DIRECTORY "${THEME}" DESTINATION "${DATA_INSTALL_DIR}/themes" PATTERN "${THEME}/*.ts" EXCLUDE PATTERN "${THEME}/Main.qml" EXCLUDE) + install(DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/${THEME}" DESTINATION "${DATA_INSTALL_DIR}/themes") + + list(APPEND THEMES_QM_FILES ${QM_FILES}) +Index: sddm/data/themes/debian-elarun/README +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ sddm/data/themes/debian-elarun/README 2016-11-30 21:46:27.611830391 +0100 +@@ -0,0 +1,9 @@ ++This theme is based on the KDM Elarun theme, ported to SDDM theme. ++It was adapted to use the active Debian theme pack. ++Thanks to these people for their great works. ++Not all functionality from original theme are ported. ++ ++Original KDM theme: ++Author=Roman Shtylman & Nuno Pinheiro ++Copyright=GPL 2010 Roman Shtylman | nuno@oxygen-icons.org, 2012 Nuno Pineheiro ++License=GPL +Index: sddm/data/themes/debian-elarun/metadata.desktop +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ sddm/data/themes/debian-elarun/metadata.desktop 2016-11-30 21:46:27.611830391 +0100 +@@ -0,0 +1,49 @@ ++[SddmGreeterTheme] ++Name=Debian Elarun ++Name[ca]=Debian Elarun ++Name[da]=Debian Elarun ++Name[de]=Debian Elarun ++Name[el]=Debian Elarun ++Name[es]=Debian Elarun ++Name[et]=Debian Elarun ++Name[fi]=Debian Elarun ++Name[ga]=Debian Elarun ++Name[gl]=Debian Elarun ++Name[hu]=Debian Elarun ++Name[ia]=Debian Elarun ++Name[kk]=Debian Еларун ++Name[ko]=Debian Elarun ++Name[mr]=Debian एलारन ++Name[nb]=Debian Elarun ++Name[nl]=Debian Elarun ++Name[pl]=Debian Elarun ++Name[pt]=Debian Elarun ++Name[pt_BR]=Debian Elarun ++Name[ro]=Debian Elarun ++Name[ru]=Debian Эларан ++Name[sk]=Debian Elarun ++Name[sl]=Debian Elarun ++Name[sr]=Debian Еларун ++Name[sr@ijekavian]=Еларун ++Name[sr@ijekavianlatin]=Debian Elarun ++Name[sr@latin]=Debian Elarun ++Name[sv]=Debian Elarun ++Name[uk]=Debian Еларан ++Name[x-test]=xxDebian Elarunxx ++Name[zh_CN]=Debian Elarun ++Name[zh_TW]=Debian Elarun ++ ++Description=Elarun KDM theme ported to SDDM and adapted to use the active Debian theme. \nThe original theme is based on work of Roman Shtylman & Nuno Pinheiro ++Type=sddm-theme ++Author=Reza Fatahilah Shah ++Copyright=(c) 2013, Reza Fatahilah Shah ++Screenshot=elarun.jpg ++License=GPL ++Version=0.1 ++MainScript=Main.qml ++ConfigFile=theme.conf ++TranslationsDirectory=translations ++Theme-Id=debian-elarun ++Theme-API=${COMPONENTS_VERSION} ++Website=https://github.com/sddm/sddm ++ +Index: sddm/data/themes/debian-elarun/theme.conf +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ sddm/data/themes/debian-elarun/theme.conf 2016-11-30 21:46:27.611830391 +0100 +@@ -0,0 +1,2 @@ ++[General] ++background=/usr/share/desktop-base/active-theme/login/background.svg +Index: sddm/data/themes/debian-maui/README +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ sddm/data/themes/debian-maui/README 2016-11-30 21:46:27.611830391 +0100 +@@ -0,0 +1,5 @@ ++This theme is an adaptation of the original Maui theme from upstream SDDM for ++Debian to use the active desktop-base theme. ++ ++Check the src/greeter/theme folder from the SDDM source for more information. ++ +Index: sddm/data/themes/debian-maui/metadata.desktop +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ sddm/data/themes/debian-maui/metadata.desktop 2016-11-30 21:46:27.611830391 +0100 +@@ -0,0 +1,16 @@ ++[SddmGreeterTheme] ++Name=Debian Maui ++Description=Maui Theme for Debian ++Author=Abdurrahman AVCI ++Copyright=(c) 2013, Abdurrahman AVCI ++License=CC-BY-SA ++Type=sddm-theme ++Version=0.1 ++Website=https://github.com/sddm/sddm ++Screenshot=maui.jpg ++MainScript=Main.qml ++ConfigFile=theme.conf ++TranslationsDirectory=translations ++Email=abdurrahmanavci@gmail.com ++Theme-Id=maui ++Theme-API=${COMPONENTS_VERSION} +Index: sddm/data/themes/debian-maui/theme.conf +=================================================================== +--- /dev/null 1970-01-01 00:00:00.000000000 +0000 ++++ sddm/data/themes/debian-maui/theme.conf 2016-11-30 21:46:27.611830391 +0100 +@@ -0,0 +1,2 @@ ++[General] ++background=/usr/share/desktop-base/active-theme/login/background-nologo.svg diff --git a/debian/patches/series b/debian/patches/series index 9d5b451..fbaee48 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1,5 +1,6 @@ 01_sddm_systemctl.diff -02_kubuntu_use_breeze.diff +02_use_debian_theme.diff 03_vt7-minimum-vt.diff 04_set_default_path.diff +05_add_debian_themes.diff handle-reading-from-a-closed-file-handle.patch diff --git a/debian/sddm-theme-debian-elarun.install b/debian/sddm-theme-debian-elarun.install new file mode 100644 index 0000000..c53cf31 --- /dev/null +++ b/debian/sddm-theme-debian-elarun.install @@ -0,0 +1 @@ +usr/share/sddm/themes/debian-elarun/ diff --git a/debian/sddm-theme-debian-elarun.postinst b/debian/sddm-theme-debian-elarun.postinst new file mode 100644 index 0000000..f63c13c --- /dev/null +++ b/debian/sddm-theme-debian-elarun.postinst @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +if [[ "$1" = "configure" || "$1" = "abort-upgrade" || "$1" = "abort-remove" ]]; then + update-alternatives --install \ + /usr/share/sddm/themes/debian-theme \ + sddm-debian-theme \ + /usr/share/sddm/themes/debian-elarun 30 +fi + +# Tag to allow some debhelper commands to inject relevant code +#DEBHELPER# + diff --git a/debian/sddm-theme-debian-elarun.prerm b/debian/sddm-theme-debian-elarun.prerm new file mode 100644 index 0000000..429089b --- /dev/null +++ b/debian/sddm-theme-debian-elarun.prerm @@ -0,0 +1,12 @@ +#!/bin/sh -e +set -e + +if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then + update-alternatives --remove \ + sddm-debian-theme \ + /usr/share/sddm/themes/debian-elarun +fi + +# Tag to allow some debhelper commands to inject relevant code +#DEBHELPER# + diff --git a/debian/sddm-theme-debian-maui.install b/debian/sddm-theme-debian-maui.install new file mode 100644 index 0000000..94acce1 --- /dev/null +++ b/debian/sddm-theme-debian-maui.install @@ -0,0 +1 @@ +usr/share/sddm/themes/debian-maui/ diff --git a/debian/sddm-theme-debian-maui.postinst b/debian/sddm-theme-debian-maui.postinst new file mode 100644 index 0000000..39fda5c --- /dev/null +++ b/debian/sddm-theme-debian-maui.postinst @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +if [[ "$1" = "configure" || "$1" = "abort-upgrade" || "$1" = "abort-remove" ]]; then + update-alternatives --install \ + /usr/share/sddm/themes/debian-theme \ + sddm-debian-theme \ + /usr/share/sddm/themes/debian-maui 40 +fi + +# Tag to allow some debhelper commands to inject relevant code +#DEBHELPER# + diff --git a/debian/sddm-theme-debian-maui.prerm b/debian/sddm-theme-debian-maui.prerm new file mode 100644 index 0000000..b10b6da --- /dev/null +++ b/debian/sddm-theme-debian-maui.prerm @@ -0,0 +1,12 @@ +#!/bin/sh -e +set -e + +if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then + update-alternatives --remove \ + sddm-debian-theme \ + /usr/share/sddm/themes/debian-maui +fi + +# Tag to allow some debhelper commands to inject relevant code +#DEBHELPER# + diff --git a/debian/sddm-theme-elarun.postinst b/debian/sddm-theme-elarun.postinst new file mode 100644 index 0000000..5c8c6f6 --- /dev/null +++ b/debian/sddm-theme-elarun.postinst @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +if [[ "$1" = "configure" || "$1" = "abort-upgrade" || "$1" = "abort-remove" ]]; then + update-alternatives --install \ + /usr/share/sddm/themes/debian-theme \ + sddm-debian-theme \ + /usr/share/sddm/themes/elarun 20 +fi + +# Tag to allow some debhelper commands to inject relevant code +#DEBHELPER# + diff --git a/debian/sddm-theme-elarun.prerm b/debian/sddm-theme-elarun.prerm new file mode 100644 index 0000000..d478f6a --- /dev/null +++ b/debian/sddm-theme-elarun.prerm @@ -0,0 +1,12 @@ +#!/bin/sh -e +set -e + +if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then + update-alternatives --remove \ + sddm-debian-theme \ + /usr/share/sddm/themes/elarun +fi + +# Tag to allow some debhelper commands to inject relevant code +#DEBHELPER# + diff --git a/debian/sddm-theme-maldives.postinst b/debian/sddm-theme-maldives.postinst new file mode 100644 index 0000000..b839cec --- /dev/null +++ b/debian/sddm-theme-maldives.postinst @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +if [[ "$1" = "configure" || "$1" = "abort-upgrade" || "$1" = "abort-remove" ]]; then + update-alternatives --install \ + /usr/share/sddm/themes/debian-theme \ + sddm-debian-theme \ + /usr/share/sddm/themes/maldives 20 +fi + +# Tag to allow some debhelper commands to inject relevant code +#DEBHELPER# + diff --git a/debian/sddm-theme-maldives.prerm b/debian/sddm-theme-maldives.prerm new file mode 100644 index 0000000..23ab0d6 --- /dev/null +++ b/debian/sddm-theme-maldives.prerm @@ -0,0 +1,12 @@ +#!/bin/sh -e +set -e + +if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then + update-alternatives --remove \ + sddm-debian-theme \ + /usr/share/sddm/themes/maldives +fi + +# Tag to allow some debhelper commands to inject relevant code +#DEBHELPER# + diff --git a/debian/sddm-theme-maui.install b/debian/sddm-theme-maui.install new file mode 100644 index 0000000..336284d --- /dev/null +++ b/debian/sddm-theme-maui.install @@ -0,0 +1 @@ +usr/share/sddm/themes/maui/ diff --git a/debian/sddm-theme-maui.postinst b/debian/sddm-theme-maui.postinst new file mode 100644 index 0000000..6fdd323 --- /dev/null +++ b/debian/sddm-theme-maui.postinst @@ -0,0 +1,13 @@ +#!/bin/bash +set -e + +if [[ "$1" = "configure" || "$1" = "abort-upgrade" || "$1" = "abort-remove" ]]; then + update-alternatives --install \ + /usr/share/sddm/themes/debian-theme \ + sddm-debian-theme \ + /usr/share/sddm/themes/maui 20 +fi + +# Tag to allow some debhelper commands to inject relevant code +#DEBHELPER# + diff --git a/debian/sddm-theme-maui.prerm b/debian/sddm-theme-maui.prerm new file mode 100644 index 0000000..0a53679 --- /dev/null +++ b/debian/sddm-theme-maui.prerm @@ -0,0 +1,12 @@ +#!/bin/sh -e +set -e + +if [ "$1" = "remove" ] || [ "$1" = "deconfigure" ]; then + update-alternatives --remove \ + sddm-debian-theme \ + /usr/share/sddm/themes/maui +fi + +# Tag to allow some debhelper commands to inject relevant code +#DEBHELPER# + |
