humbleui

fricze 2024-07-24T10:43:52.136979Z

I have added keys to links list and changed padding in my HN client https://github.com/fricze/hnhnhn/blob/main/src/starter.clj. There’s some bug with links not always being in sync, will probably work on it at the end of the week

fricze 2024-07-24T10:47:33.611509Z

also I’ve started building CSV viewer based on grid from Humble examples https://github.com/fricze/hnhnhn/blob/main/src/grid.clj I learned that 1. you can use FileDialog from java.awt to open native file picker (mac only tested) and it just works (which is great), but you need to put it on different thread, cause otherwise it seems to be blocking whole UI and freezing the application. Currently (future …) does the job. Filtering files by extension also just works with FilenameFilter from 2. ui/focus-controller is required for text-fields not to go crazy with their focuses. Also managed to mess up focus-controller a bit. Focusing with mouse click works properly, but after using this text fields for a while, switching between them via Tab key stops working. Interesting issue to investigate

👏 1
Niki 2024-07-24T14:59:53.868389Z

Yeah, focus controller probably needs a redo

👍 1
Niki 2024-07-24T15:00:19.820319Z

Interesting about FileDialog, might be a good temporary solution until we integrate native dialogs

👍 1
fricze 2024-07-24T15:06:52.200119Z

yeah I was pleasantly surprised with FileDialog once I realized that putting in on different thread is enough to make it work

fricze 2024-07-24T15:07:10.228209Z

about focus controller do you mean some adjusting, or more like total redo?

Niki 2024-07-24T15:17:40.303309Z

Probably the whole idea needs to be re-thought. I didn’t spend much time thinking about it, it was a quick and dirty solution