rofi/source/widgets
nick87720z e52094ee7a
Widget bg draw (#1147)
* Improved background draw code

- Better to read (precalculated coordinates)
- Unnecessary line_to in the end
- Don't use radius in calculations if zero

* Background draw - separate rounded rect function

* Limit background & border overlap size

Overlap is too good against artifacts when stiching antialiased areas to
be avoided, unless intermediate image is used for additive stiching. But
it doesn't look good with transparent borders, when overlaping background
is visible. It seems, that 1px overlap is right enough to completely
prevent artifacts. Though things may differ if one if side is 1px or
even 0px, while adjacent is still enough thick.

* Style: alignment, less noise, limit var scope
2020-06-17 14:10:48 +02:00
..
box.c [LISTVIEW] Support more customization in element. 2020-05-13 17:17:15 +02:00
container.c [Widget] Propaget set_state to children. 2020-05-13 16:25:12 +02:00
icon.c
listview.c [Listview] Try to fix sizing of barview. 2020-06-02 09:17:06 +02:00
scrollbar.c [Themes] add calc() support to distance in theme format. (#1105) 2020-04-24 19:54:08 +02:00
textbox.c Again final workaround for #303 (#1142) 2020-06-09 17:17:50 +02:00
widget.c Widget bg draw (#1147) 2020-06-17 14:10:48 +02:00