Create a nicer UI
nightscape opened this issue · comments
The current UI is usable, but not really eye-candy ;)
Moreover, having only one line for the user-specified query and the results makes selection of completions slower than necessary.
I would propose to create a UI similar to Albert and Alfred.
I'm not an expert in UI toolkits, but would see the following features as desirable:
- portability and easy cross-compilation (Linux, Mac, Windows?)
- stylability (e.g. CSS or similar)
- easy key listening in text box
- key listening for global shortcuts
- low resource consumption
- high startup speed
Besides the current GTK UI, QT or Conrod might be good options. Possibly also other candidates from the awesome rust listing.
@buster Do you see any other desirables or options?
Also some useful information here:
https://www.reddit.com/r/rust/comments/2zqjix/what_would_you_use_for_a_rust_gui/
From my point of view:
rrun UI should be as small and as fast as possible.
Wich also means: no animations or transitions popping up.
Apart from that, i'm open for everything. I feel like GTK is the way to go, for now.
Except you would like to design an entirely new and fancy UI in Conrod..
Take a look at the GTK widget gallery: https://developer.gnome.org/gtk3/stable/ch03.html
For me, they all look nice enough and the best thing is that they are using the theme i set up for all other applications.
Also, GTK themeing nowadays is done with CSS, i think. So that's a plus in your list as well.
I suppose one could add a ListBox to the window when completing?
Take a look at http://stackoverflow.com/questions/14410821/how-to-style-gtk-with-custom-css
It looks like you can style your GTK widgets with custom CSS...
WIP for completion list: https://github.com/buster/rrun/tree/completion_list
It looks like one just has to fill the corresponding ListStore correctly which I didn't get to (and probably won't in the next few days 😞)...
If you have time to play with it, have fun ✨ 👍
I saw your fix and I'm happy with it, as it allows for instant evaluation in cases where the completion executes without errors.
A minor issue is that deleting characters does not invoke completion anymore, but I don't think this is a show-stopper for merging this.
With your consent, I'll create a new release (maybe 0.2.0?) on Github and try to find some people that could create 2 or 3 nice themes for rrun.
Sure, actually I already started doing that on my laptop but didn't finish to build a 0.2.0..
I just uploaded a fresh .deb package.
And also uploaded a new version to crates.io:
https://crates.io/crates/rrun