Ubuntu logo shifts vertically when the login screen appears (before selecting the user)

Bug #1872594 reported by Daniel van Vugt
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Yaru Theme
New
Unknown
gnome-shell (Ubuntu)
Triaged
Low
Unassigned
plymouth (Ubuntu)
Triaged
Low
Unassigned
yaru-theme (Ubuntu)
Triaged
Low
Unassigned

Bug Description

Ubuntu logo shifts upward about 1px when the purple login screen appears.

tags: added: focal
Changed in plymouth (Ubuntu):
importance: Undecided → Low
Changed in gnome-shell (Ubuntu):
importance: Undecided → Low
Changed in gnome-shell (Ubuntu):
status: New → Confirmed
status: Confirmed → Triaged
Changed in plymouth (Ubuntu):
status: New → Triaged
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Re: Ubuntu logo shifts vertically when the purple login screen appears

Changed from a 1920x1200 monitor to 3840x2160 and now it moves downward. Much more than 1px.

summary: - Ubuntu logo shifts upward about 1px when the purple login screen appears
+ Ubuntu logo shifts vertically when the purple login screen appears
tags: added: groovy
tags: removed: groovy
summary: - Ubuntu logo shifts vertically when the purple login screen appears
+ Ubuntu logo shifts vertically when the login screen appears
tags: added: jammy mantic
Revision history for this message
Dimitri John Ledkov (xnox) wrote : Re: Ubuntu logo shifts vertically when the login screen appears

In gnome shell:

Logo is aligned to 1 vertically, and then has margin of 3em

this._logoBin = new St.Widget({
    style_class: 'login-dialog-logo-bin',
    x_align: Clutter.ActorAlign.CENTER,
    y_align: Clutter.ActorAlign.END,
});

.login-dialog-logo-bin {
  margin: 3em 0; }

Where as in plymouth the Watermark has vertical alignment of

themes/bgrt/bgrt.plymouth.desktop:WatermarkVerticalAlignment=.96
view->watermark_area.y = screen_height * plugin->watermark_vertical_alignment - ply_image_get_height (plugin->watermark_image) * plugin->watermark_vertical_alignment;

Which means the margin in plymouth is 4% of screen height.

So one way to fix this is to make plymouth know what "3em" is and calculate that.
Or to teach gnome-shell to use 4% margin of the total screen.
I am going to try to do the latter.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

in jammy gnome-shell it is:

.login-dialog-logo-bin { padding: 24px 0px; }

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

hm setting padding to 4% does not do it.

i am starting to suspect the screen total size is off. by a lot.

Revision history for this message
Dimitri John Ledkov (xnox) wrote :

aha! patching gnome-shell does nothing, so we need to patch like yaru-themes.

and 4% there doesn't work, as if it doesn't compute.

Changed in yaru-theme (Ubuntu):
importance: Undecided → Low
status: New → Triaged
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Display scale is also a factor but hopefully we can ignore that if computing in prescaled units like "em" or "4%".

If you encounter machines which have a different default scaling factor in plymouth and gnome-shell/gdm then just ignore those for the purposes of this bug.

tags: added: noble
Changed in yaru:
status: Unknown → Fix Released
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

This got a lot worse in noble, it's now not just vertical shift, but the scaling of the logo too. It is twice as small as the plymouth one.

Or maybe plymouth shows things twice as large?

I don't know how to figure out which one is getting the maths wrong.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

I run Noble on a bunch of laptops and the scaling issue you mention doesn't affect most of them. So I would like to treat that as a separate bug in which either the default scale threshold in plymouth or gnome-shell needs adjusting to match the other.

tags: added: flickerfreeboot
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

The issue in comments #7 and #8 is being tracked separately in bug 2054769.

Changed in yaru:
status: Fix Released → Unknown
Changed in yaru:
status: Unknown → New
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

It got a bit worse in Noble recently so we should track that separately in bug 2060893.

summary: - Ubuntu logo shifts vertically when the login screen appears
+ Ubuntu logo shifts vertically when the login screen appears (before
+ selecting the user)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.