l4l / yofi

yofi is a minimalistic menu for wayland
https://crates.io/crates/yofi
MIT License
375 stars 21 forks source link

Add option to draw border around yofi window #140

Closed Aleksanaa closed 1 year ago

Aleksanaa commented 1 year ago

We often make the theme color of launchers the same as apps, and a border (with a different color) makes yofi more noticable. So a border with size and color options would be appreciated.

l4l commented 1 year ago

Sounds nice. The implementation is fairly easy:

If no one would take the issue I'm likely to implement it this/next weekend

Aleksanaa commented 1 year ago

Sounds nice. The implementation is fairly easy:

* pass two config params;

* draw a border [here](https://github.com/l4l/yofi/blob/master/src/draw/background.rs#L29) with `PathBuilder::arc`, maybe with [RoundedRect](https://github.com/l4l/yofi/blob/master/src/draw.rs#L87)

If no one would take the issue I'm likely to implement it this/next weekend

I'd like to implement a lot of things but I don't write rust, so what I can do is simply pointing things out🥲

KuabeM commented 1 year ago

I had a quick look and it seems pretty easy. I'd take a shot at this :)