malisipi / mui

A Cross-Platform UI Library
https://malisipi.github.io/mui/
Apache License 2.0
95 stars 9 forks source link

New Suggestions After More Experimenting #26

Open Wajinn opened 11 months ago

Wajinn commented 11 months ago

Based on more experiments with creating different kinds of GUIs, the following came up and hopefully can be fixed/added:

You can have text in the array that are of different lengths, and it can look better if moved to the left or right.

The text can be too big for the GUI and other widgets.

It appears that V UI has this option. Without these features, long lines of text need to be controlled by manual returns and they don't adjust to the size of the GUI when resized.

This is because a user may want to do things like have the button color or background change when pressed down or do various other things until or when unclicked.

malisipi commented 10 months ago

5 is done. However i recommend to don't trust unonclick event. It will not be triggered with keyboard. To avoid accessibility issues, i recommend checking the event_details.triggerer firstly. If it's keyboard, you can avoid applying custom styles or trigger unclick function manually.

https://github.com/malisipi/mui/blob/763b84a30baa7ca68120194443de3051dc8c92ba/examples/changing_background_button.v#L1-L21

Also i'm sorry about the delay. I haven't much time to improve this library by university entrance exam.

malisipi commented 10 months ago

I will implement 1, 2 and 3 asap.

Also I want to implement 4. However 4 is too complex to implement with limited time. If i have free time, i will implement it.

Wajinn commented 10 months ago

I will implement 1, 2 and 3 asap.

Good to see your consideration and continual efforts (like the draggable frame).

The changes to 1 (table and list), 2 (group), 3 (hyperlink/link), and their corresponding functions in widget.v would be best for greater usability of MUI. Presently, certain GUIs look odd, without such changes being implemented.

Also I want to implement 4. However 4 is too complex to implement with limited time. If i have free time, i will implement it.

This one is not too much of an issue, unlike the others, as can work around it. I guess it would be something nice for the future.

5 is done.

Yes, this one is working. And the extra info and example is good too.

malisipi commented 10 months ago

2 and 3 is supported by https://github.com/malisipi/mui/commit/619aa7c9f93d3793d232c17536cc92c1d86c3b0c commit .