derin icon indicating copy to clipboard operation
derin copied to clipboard

How should minimum size be handled on widgets with no actual minimum?

Open Osspial opened this issue 7 years ago • 2 comments

There are a few widgets that don't have a logical minimum size (sliders and progress bars are good examples), but it doesn't make sense to cap them at zero. How should a default minimum size for these be figured out?

Osspial avatar Apr 11 '17 15:04 Osspial

Half the window size is usually a good starting point, or 40%, something like that...

scalarwaves avatar Apr 17 '19 23:04 scalarwaves

The solution I've come up with is to let the rendering engine figure out the minimum size based on sprite size, and let the widget know about its conclusions. However, getting that working requires some fairly significant overhauls to the rendering API (which I needed to do anyway since the one that's currently on master isn't great), which I've been working through slowly but surely.

Osspial avatar Apr 20 '19 17:04 Osspial