rrun icon indicating copy to clipboard operation
rrun copied to clipboard

Create a nicer UI

Open nightscape opened this issue 10 years ago • 8 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?

nightscape avatar Jan 09 '16 00:01 nightscape

Also some useful information here: https://www.reddit.com/r/rust/comments/2zqjix/what_would_you_use_for_a_rust_gui/

nightscape avatar Jan 09 '16 00:01 nightscape

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?

buster avatar Jan 09 '16 08:01 buster

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...

buster avatar Jan 09 '16 14:01 buster

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 :disappointed:)... If you have time to play with it, have fun :sparkles: :+1:

nightscape avatar Jan 10 '16 01:01 nightscape

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.

nightscape avatar Jan 12 '16 22:01 nightscape

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.

nightscape avatar Jan 31 '16 21:01 nightscape

Sure, actually I already started doing that on my laptop but didn't finish to build a 0.2.0..

buster avatar Feb 01 '16 06:02 buster

I just uploaded a fresh .deb package. And also uploaded a new version to crates.io: https://crates.io/crates/rrun

buster avatar Feb 02 '16 21:02 buster