malisipi / mui

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

Status Bar and Tool Bar Info #7

Closed Wajinn closed 1 year ago

Wajinn commented 1 year ago

Quite useful types of bars for GUIs, that noticed wasn't on your todo list. Maybe it should be considered.

malisipi commented 1 year ago
Wajinn commented 1 year ago

Status Bar

Oops, and so it is. Don't know how I overlooked that, but glad it is there.

Tool Bar is supported with a complex api.

And a simple implementation would likely be fine, from the perspective of probably a lot of users. Also good to see that you are thinking about it.

Wajinn commented 1 year ago

Interestingly and to add more info, a user can create a quasi status and tool bar by using y_offset or yn_offset with emojis, as is shown with the mui notepad example. Instead of the y_offset, in the future, it would be an actual bar of some type and functionality.

malisipi commented 1 year ago

You can use statusbar and toolbar with latest commit.

  1. Set height of statusbar/toolbar mut app:=m.create(title:"MUI Examples",...toolbar:25, statusbar:25)

  2. Add widgets app.button(id:"open", x:0, y:0,...frame:"@toolbar") for toolbar app.button(id:"open", x:0, y:0,...frame:"@statusbar") for statusbar

For full example just browse notepad.v.

Wajinn commented 1 year ago

Awesome! It integrates quite nicely. Well, yet another accomplished. I guess we can close this one too.