greeter icon indicating copy to clipboard operation
greeter copied to clipboard

Scale cards based on display size

Open cassidyjames opened this issue 5 years ago • 6 comments

Fixes #303

Right now this only scales the wallpaper on the card to be a quarter of the display size (which is roughly what the original mockup had).

Notes:

  • The wallpaper on the card will match the display aspect ratio; before, it was always 2:1
  • Fonts or anything else are not scaled any differently
  • I'm not sure how this works on multiple differently-sized displays attached to one machine
  • Right now (WIP) it's getting the display size each time to use it, need to DRY that out
  • Setting the size to ¼ the display size means you can usually see 1½ users on either side, for a total of 3–5 (at least partially) visible users depending on which user you're scrolled to.

cassidyjames avatar Oct 28 '19 22:10 cassidyjames

1024×768 (smallest supported resolution)

1024×768

1920×1080 (same layout for 4K HiDPI)

1920×1080

2560×1440 (common on big ol' 27" displays)

2560×1440

cassidyjames avatar Oct 28 '19 23:10 cassidyjames

It looks like the scale in the construct block is not correct, but always returns 1. The means the cards are twice as big as they should be in each dimension.

cassidyjames avatar Oct 31 '19 17:10 cassidyjames

So, a question about setting this. I run in 1600x900, with the "Larger" setting for text, as I have vision problems.

Would or should I be able to separately set the lightdm resolution to 1024x768, if only to make the user cards and login box large enough for me to see comfortably?

ghost avatar Mar 04 '20 17:03 ghost

@CallieG that's not really related to this branch, as this does not affect the text size; it just makes the card itself (and wallpaper) fill up more space relative to the display.

But to answer your question, I don't believe resolution is carried over from the user session, and there's not currently a graphical way to set a manual resolution on the greeter. However, the font scaling should probably be added as a setting that gets respected on the greeter as well.

cassidyjames avatar Mar 04 '20 18:03 cassidyjames

And Cassidy, this is why I love you guys. I am no programmer, not even remotely, I am just an enthusiastic user, but you did actually take the time to respond to this.

And you should know that it is greatly appreciated.

ghost avatar Mar 04 '20 19:03 ghost

Not needed have look at my fix https://github.com/elementary/greeter/issues/65#issuecomment-664671246

BAProductions avatar Jul 27 '20 22:07 BAProductions