unixorn / lima-xbar-plugin

xbar/Swiftbar plugin to control lima-vm
Apache License 2.0
116 stars 12 forks source link

[FEATURE] Make it easier to add user-defined themes #36

Open unixorn opened 5 months ago

unixorn commented 5 months ago

Is your feature request related to a problem? Please describe.

Make it possible to add a user-created theme without having to change the code (like https://github.com/unixorn/lima-xbar-plugin/pull/34 did).

Describe the solution you'd like

Ideally something where files in ~/.lima-xbar/themes or ~/Library/Application\ Support/net.unixorn.lima-xbar/themes can be selected from.

It would be nice if there was a Load Theme command that you could give an URL and a Theme Name and the plugin downloaded the theme and installed it as a file so that users don't have to rummage through ~/Library

Describe alternatives you've considered

Using defaults write to define the various states. This seems way more annoying than dropping a file into a directory or downloading one

pythoninthegrass commented 5 months ago

What about writing functions that get exposed in the UI to select available themes or install new ones from a file?

Was thinking it could be a line item either underneath About... or after the VM listing.

unixorn commented 5 months ago

Functions loaded from a plugin file would be a good solution.

exculibar commented 5 months ago

I think write some config files into ~/.lima-xbar directory is good