l4l / yofi

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

Add corner_radius parameter for window and input box #136

Closed julianschuler closed 1 year ago

julianschuler commented 1 year ago

This pull request adds the configuration parameter corner_radius for both the main application window as well as the input text field.

Minimal yofi.config:

corner_radius = "20"

[input_text]
corner_radius = "15 5 0 0"

The corner radius can be specified using one, two or four values with the same behavior as the CSS border-radius property (one value applies to all corners, two to opposite ones, and four to each corner separately in the order top-left, top-right, bottom-right, bottom-left).

The default behavior (no rounded corners for the application window, fully rounded ones for the input box) remains unchanged.

Resolves #6 and resolves #41.

l4l commented 1 year ago

Thanks for your contribution! I was really lazy to handle that one. Hopefully would release this within this/next week

julianschuler commented 1 year ago

Awesome! Also, thanks for your review!