Skip to content

Commit

Permalink
feat: per-side border widths (#836)
Browse files Browse the repository at this point in the history
* feat: per-side border widths

* refactor: make `BorderWidth::is_all_zero` more sane

* fix: wrong operator in `is_all_zero`

* implement parsing for per-side widths

* feat: impl `Display` for `Border`

* fix lints

* fix another lint

* chore: fmt

* fix tests

* fix: add `RRect::rect` to mocked engine

* chore: improve border test coverage

* fix: border test assertion

* fix: radius offset calculations for different border alignments

* clean up border drawing code

* fmt

* revert needless `get_rounded_rect` name change

* format

* add `PathFillType` to mocked engine

* mock `Path::set_fill_type`

* update docs

* fix jagged antialiasing on borders

* lint

* mock `Canvas::draw_drrect` and `RRect::bounds`

* simplify border visibility check

Co-authored-by: Marc Espin <[email protected]>

---------

Co-authored-by: Marc Espin <[email protected]>
  • Loading branch information
Tropix126 and marc2332 authored Sep 28, 2024
1 parent edc1af2 commit b671d55
Show file tree
Hide file tree
Showing 7 changed files with 555 additions and 104 deletions.
Loading

0 comments on commit b671d55

Please sign in to comment.