scaleable widgets
phisch opened this issue · comments
All widgets should scale with the font-size. This includes their spacing (paddings, margins), sizes, borders, border radius etc.
This allows for nice proportions on regular, retina and in-between devices like 1440p at 14".
Unfortunately, theme assets can't be scaled seamlessly in GTK3 (yes, not even svg's), so for icons, phocus should completely rely on installed icon themes, which can be used and scale seamlessly. This affects window titlebuttons, check and radio widgets, combobox arrows and more.
This video shows the current behavior of components that don't scale with the font:
not_scaling.mp4
And this video shows a quick implementation of scaling button paddings and border-radius by basing their size on em
instead of pixels:
scaling_buttons.mp4
After the latest rework, more than 90% of all widgets automatically scale with the font-size. The few that don't yet, soon will. Closing this for now, as it is also unclear how this project will continue due to gtk4.