typedb-studio icon indicating copy to clipboard operation
typedb-studio copied to clipboard

Font size preference / UI scaling

Open alexjpwalker opened this issue 3 years ago • 8 comments

Problem to Solve

For users with very dense screens (e.g. 4k resolution on a small laptop), or users without good eyesight, the default font size is too small. Other applications such as web browsers allow you to zoom in on any page, but Studio (being written in Compose) has no such mechanism.

Current Workaround

Set the screen resolution or use a magnifying accessibility tool

Proposed Solution

  • Add a font size preference to Studio.
  • When Studio is started for the first time ever, auto-detect a sensible font size based on the monitor resolution and pixel density.

alexjpwalker avatar Jul 22 '22 10:07 alexjpwalker

There are quite a few hard-coded values within Studio, and changing the font size necessitates everything containing that font resizes to fit it. Icons are font characters thankfully, so this is easy to change.

It's possible that some of the relationships between font size and the size of the element containing it are not linear (or wouldn't look good if we treated them as though they were).

jamesreprise avatar Aug 08 '22 13:08 jamesreprise

This is additional functionality, removing this from the current milestone.

jamesreprise avatar Sep 30 '22 15:09 jamesreprise

From an accessibility perspective, the lack of changing the font size is really a show-stopper for a lot of people, myself included. Can't see how this is considered "Additional functionality" 👎🏼

larsw avatar Oct 16 '22 15:10 larsw

From an accessibility perspective, the lack of changing the font size is really a show-stopper for a lot of people, myself included. Can't see how this is considered "Additional functionality" 👎🏼

Hi @larsw, I can see how my comment came off as dismissive of this as an important feature. I apologise for this.

Within this current milestone, we're only focusing on improving functionality that already exists within Studio. Allowing for changing font sizes throughout the whole of the interface is not something we support right now, so it is not within the functionality of the program and thus adding it would be an addition, making it additional functionality.

We do currently support zooming in the text editor using (CMD/CTRL) & + and we're interested in other ways we can improve the accessibility of Studio. We've been working on laying the groundwork for adding preferences for further accessibility improvements. Please let us know if there is anything else besides this issue that impedes your ability to use Studio easily.

jamesreprise avatar Oct 16 '22 16:10 jamesreprise

Zooming would be very much appreciated!

From an accessibility perspective, the ability to change the theme to a high contrast one is also important for a lot of visually impaired users.

larsw avatar Oct 17 '22 08:10 larsw

See also #537.

sanmai-NL avatar Mar 27 '23 09:03 sanmai-NL

setting a GDK_SCALE=3 env var seems to help on Fedora/GNOME/wayland desktops

hairmare avatar May 30 '23 20:05 hairmare

setting a GDK_SCALE=3 env var seems to help on Fedora/GNOME/wayland desktops

Thanks! Running nohup sh -c 'GDK_SCALE=2 /opt/typedb-studio/bin/TypeDB\ Studio' & on command line works well!

tae898 avatar Aug 23 '23 14:08 tae898