[Breeze] [Bug 418949] New: plymouth-theme-breeze should have a background/wallpaper option
Walther Pelser
bugzilla_noreply at kde.org
Tue Mar 17 06:41:51 GMT 2020
https://bugs.kde.org/show_bug.cgi?id=418949
Bug ID: 418949
Summary: plymouth-theme-breeze should have a
background/wallpaper option
Product: Breeze
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Plymouth
Assignee: plasma-devel at kde.org
Reporter: w.pelser at web.de
CC: sitter at kde.org
Target Milestone: ---
SUMMARY
On linux plymouth is started during boot in-between grub2 and sddm. grub2 comes
with a background, which could be changed by YAST, sddm can be customized by
systemsettings5, which could change the background too. Only plymouth has no
option. It seems to be nice and necessary, to have a backround/wallpaper
ability too. The same background/wallpaper during all the steps of the boot
process would be preferable.
This is an example for this issue with an other distro:
https://www.linuxliteos.com/forums/desktop-customization/background-image-when-starting-'the-feather'-4739/?PHPSESSID=a0lcqpabjrb2uuiuvb5utg7vo5
STEPS TO REPRODUCE
1.
2.
3.
OBSERVED RESULT
EXPECTED RESULT
SOFTWARE/OS VERSIONS
Windows:
macOS:
Linux/KDE Plasma: openSUSE-Tumbleweed
(available in About System)
KDE Plasma Version: 5.67.0
KDE Frameworks Version: 5.18.3
Qt Version: 5.14.1
ADDITIONAL INFORMATION
Example:
It would be easy to add a code like this, to solve this issue. This would not
change the behavior of plymouth-theme-breeze, but it creates only an option.
--- a/breeze/breeze.script.cmake
+++ b/breeze/breeze.script.cmake
@@ -342,4 +342,20 @@ enable background image possibility
-// ------------------------------ Background --------------------------------
//
-Window.ApplyBackgroundColors();
-global.backgroundApplied = false;
-
+// ------------------------------ Background --------------------------------
//
+// to enable a BackgroundImage instead of BackgroundColor: copy a file with
the name "background.png" into the images folder. If "global.backgroundApplied
= true", background.png should be removed //
+if ("images/background.png")
+{
+ wallpaper_image = Image("images/background.png");
+ screen_width = Window.GetWidth();
+ screen_height = Window.GetHeight();
+ resized_wallpaper_image =
wallpaper_image.Scale(screen_width,screen_height);
+ wallpaper_sprite = Sprite(resized_wallpaper_image);
+ wallpaper_sprite.SetZ(-100);
+
+ Window.ApplyBackground();
+ global.backgroundApplied = false;
+}
+else
+{
+ Window.ApplyBackgroundColor();
+ global.backgroundApplied = false;
+}
+
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Plasma-devel
mailing list