Improvements to emerald plymouth theme’s visuals.

This commit is contained in:
Aurélien COUDERC
2023-02-28 00:21:32 +01:00
parent 5523f3fcf6
commit 19edd01e3c
2 changed files with 5 additions and 4 deletions

1
debian/changelog vendored
View File

@@ -2,6 +2,7 @@ desktop-base (12.0.4) UNRELEASED; urgency=medium
* Add Debian swirl in circle as default profile icon for new users.
* Add more sizes for the Emerald wallpaper. (Closes: #1027841)
* Improvements to emerald plymouth themes visuals.
-- Aurélien COUDERC <coucouf@debian.org> Sat, 18 Feb 2023 23:58:45 +0100

View File

@@ -27,14 +27,14 @@
#------------------------------- Constants -----------------------------------------
NB_ANIM_STEPS = 70;
NB_REFRESHS_BETWEEN_ANIMS = 1;
NB_ANIM_STEPS = 60;
NB_REFRESHS_BETWEEN_ANIMS = 2;
# Initial position of the center of the logo in % of background
LOGO_CENTER_PCT.x = 0.5; # Debian swirl image position in % of screen height & width
LOGO_CENTER_PCT.y = 0.55;
LOGO_SIZE_PCT = 0.48; # Debian + emerald image size in % of smallest screen dimension
LOGO_GLOW_SIZE_PCT = 0.4; # Debian swirl image size in % of smallest screen dimension
LOGO_GLOW_SIZE_PCT = 0.8; # Debian swirl image size in % of smallest screen dimension
#------------------------------- Globals -------------------------------------------
# are we currently prompting for a password?
@@ -972,7 +972,7 @@ fun update_glow_anim () {
global.anim_iter = 0;
}
#DebugMedium("iter = " + global.anim_iter);
glow_opacity = 0.6 + 0.4 * Math.Cos(global.anim_iter / NB_ANIM_STEPS * 2 * Math.Pi);
glow_opacity = 0.7 + 0.3 * Math.Cos(global.anim_iter / NB_ANIM_STEPS * 2 * Math.Pi);
#Debug("glow_opacity = " + glow_opacity);
if (global.anim_start_time != global.progress_time && global.anim_status != "running") {
global.anim_start_time = global.progress_time;