Sublime Forum

Ui_scale does not work for all UI parts

#1

The setting ui_scale does not work for the menu bar, right-click menu, mouse pointer.

I use Sublime Linux inside WSL2, the Windows host is 3840x2160 with 300% scaling. If I use the Windows scaling the result is blurry, thats why I did turn of scaling in the xserver and did set ui_scale to 3.0

0 Likes

#2

Presumably because those are drawn by your window manager or something that ST has no control over?

0 Likes

#3

I’d suggest using GDK_SCALE instead. Those elements are drawn by GTK and/or the window manager, so Sublime Text doesn’t scale those.

0 Likes

#4

yes, thanks for the tip, not using sublime’s ui_scale but below settings before starting does fix a lot
export GDK_DPI_SCALE=1
export GDK_SCALE=3
The mousepointer is still very small when in the menu area

0 Likes

#5

The mouse pointer is most likely drawn by X. There’s likely something similar for that.

0 Likes

#6

I found that I can control the size of the mouse-cursor in the text-edit area with “export XCURSOR_SIZE=64”

However, when the mouse is a pointer in the menu-bar or the project folders/file, then it keeps very small.

0 Likes

#7

It would probably be good to report the bug to Microsoft about WSL 2. They should be translating the Windows scale settings so it is seen via the GTK APIs.

2 Likes