UI Support for high DPI monitors

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

UI Support for high DPI monitors

Jason
Hi,

Just tried LibreCAD on a high DIP monitor.

I find that the icons on the side toolbar are far too small (about 2mm wide on my screen) strangely the top toolbar is fine. The fix must be simple, just use the same drawing code.

Also, the 'By Layer' drop downs are too narrow so the listings in them are abreviated, e.g. "D...."
They have 1/3 the entire window width available, and use only about 2cm each.

Cheers,
J



Reply | Threaded
Open this post in threaded view
|

Re: UI Support for high DPI monitors

dxli
The "1/3 the entire window width" of the layerwidget/blockwidget is fixed after 2.0.7

I don't have an HD display here. Will try to fix this issue still.

Would you help by making a list of problematic icons for me to check?

Jason wrote
Hi,

Just tried LibreCAD on a high DIP monitor.

I find that the icons on the side toolbar are far too small (about 2mm wide on my screen) strangely the top toolbar is fine. The fix must be simple, just use the same drawing code.

Also, the 'By Layer' drop downs are too narrow so the listings in them are abreviated, e.g. "D...."
They have 1/3 the entire window width available, and use only about 2cm each.

Cheers,
J
Reply | Threaded
Open this post in threaded view
|

Re: UI Support for high DPI monitors

dxli
In reply to this post by Jason
I would like to give this bug a high priority.

Jason wrote
Hi,

Just tried LibreCAD on a high DIP monitor.

I find that the icons on the side toolbar are far too small (about 2mm wide on my screen) strangely the top toolbar is fine. The fix must be simple, just use the same drawing code.

Also, the 'By Layer' drop downs are too narrow so the listings in them are abreviated, e.g. "D...."
They have 1/3 the entire window width available, and use only about 2cm each.

Cheers,
J
Reply | Threaded
Open this post in threaded view
|

Re: UI Support for high DPI monitors

stranger573
In the table for the layer list and the block list used hard fixed sizes. For high resolution display, it is necessary to solve it.

If it can help the table is rendered like this:


Icons in this place also needs to be improved. For example, existing eye is pixel art 14x12 is not scalable. In this place it is better to use icons that will take 16x16 for standard resolution display (for all this icons). And correspondingly larger for high resolution display.
Reply | Threaded
Open this post in threaded view
|

Re: UI Support for high DPI monitors

dxli
Hi stranger573,

The cad toolbars (at the left), the layer/block widgets in the right seems to be the problem.

Reply | Threaded
Open this post in threaded view
|

Re: UI Support for high DPI monitors

stranger573
Hi dxli,

All the widgets for which hard fixed size in pixels - this is a problem for high resolution display! Layer list and block list too.

For cadtoolbar hard fixed width (qg_cadtoolbar.ui file):
...
<width>66</width>
...
<sizepolicy hsizetype="Fixed"
...

Note: 66 pixels for 200 dpi, is 8.382 mm. In this place on the width of the two buttons, it ~3x3 mm button!
Reply | Threaded
Open this post in threaded view
|

Re: UI Support for high DPI monitors

dxli
Yes, we really need a cleanup here:

We have hard coded buttons in CAD toolbars, while QActions manually added to the menu bar. They need to be consistent.

For hard coded buttons, we have hard coded size policies as well.

I feel we should add the qactions to cad toolbars from c++.

Do you want to get hands wet playing? I can set up a branch and start sharing changes with you.


<quote author="stranger573">
Hi dxli,

All the widgets for which hard fixed size in pixels - this is a problem for high resolution display! Layer list and block list too.

For cadtoolbar hard fixed width (qg_cadtoolbar.ui file):
...
<width>66</width>
...
<sizepolicy hsizetype="Fixed"
...

Note: 66 pixels for 200 dpi, is 8.382 mm. In this place on the width of the two buttons, it ~3x3 mm button!
</quote>
Reply | Threaded
Open this post in threaded view
|

Re: UI Support for high DPI monitors

dxli
I have started cleanup for CAD toolbars:

1, toolbar management simplification;
2, share QActions in main menu, and delete buttons of fixed sizes;

work-in-progress on step 1 now, in my own fork:

https://github.com/dxli/LibreCAD/tree/gui
Reply | Threaded
Open this post in threaded view
|

Re: UI Support for high DPI monitors

dxli
GUI tweaking is almost there:

TODO:

1, cleanup;
2, logic fixes. Some GUI logic is not correct there, need to identify and fix them.

Any help is welcome!

https://github.com/dxli/LibreCAD/tree/gui