slint-ui / slint

Slint is a declarative GUI toolkit to build native user interfaces for Rust, C++, or JavaScript apps.
https://slint.dev
Other
16.95k stars 568 forks source link

Bad rectangle's border painting at 125% scaling factor #4830

Closed abique closed 1 week ago

abique commented 6 months ago

Steps:

  1. use skia backend
  2. draw a 1px rectangle border
  3. run at 125% scaling, I could repro using: SLINT_SCALE_FACTOR=1.25
  4. resize the window to make the rectangle move a bit

Screenshot from 2024-03-12 22-16-39 Screenshot from 2024-03-12 22-16-28

Versus SLINT_SCALE_FACTOR=1: Screenshot from 2024-03-12 22-19-19

Enyium commented 1 week ago

Related: https://github.com/slint-ui/slint/issues/5747#issuecomment-2286778190. There's pixel snapping involved.

tronical commented 1 week ago

Duplicate of #5747

Yeah, even though #5747 is newer, I'll close this in favor of #5747 . This is a very good test-case though.