picotui icon indicating copy to clipboard operation
picotui copied to clipboard

Feature bits

Open sarnold opened this issue 3 years ago • 3 comments

These are basically the extra bits I needed to make an OS installer gui with strict input validation and a progress display. I think they should hopefully be useful enough for everyone; thanks.

sarnold avatar Feb 01 '21 21:02 sarnold

Thanks for sharing! I apologize in advance if it may take me quite some time to review these patches in detail. I also apologize in advance if I may find some changes here to be too adhoc and application-specific. Picotui is intended to provide common widgets useful in UIs, but not all possible widgets, nor all possible options for each widgets. Because these possibilities are infinite ;-). Instead, users are supposed to subclass existing widgets or write new to adjust their looks/behavior.

In this regard, this patchset is definitely a good example of what can be done for customization, and how to do that (even though it doesn't follow "subclass" approach).

pfalcon avatar Feb 01 '21 21:02 pfalcon

Don't worry, there is plenty of implementation fun left over, and it doesn't seem too bloaty (I say that, but my brain is a lot more like a geophysical black box :chart_with_downwards_trend: (jello mold?) than it is like a class hierarchy). I did look at a boat-load of other progress "things" but I couldn't find another option that felt right. Thanks for taking the time to at least look at it.

sarnold avatar Feb 02 '21 01:02 sarnold

Btw, I'm planning to make some backwards-incompatible changes: https://github.com/pfalcon/picotui/issues/59. Feedback whether that should be 1.3/1.4 or 2.0 is welcome.

pfalcon avatar Apr 24 '21 15:04 pfalcon