Closed kchibisov closed 4 years ago
Ok so, interestingly, this reproduces on v0.6.x
but not on master
.
For reference, I modified the themed_frame.rs
example to use these colors:
let scaled_bg = [0xFF, 0x10, 0x10, 0x10];
let vscaled_bg = [0xFF, 0x10, 0x10, 0x10];
window.set_theme(WaylandTheme {
primary_active: scaled_bg,
primary_inactive: vscaled_bg,
secondary_active: [0xFF, 0xFF, 0xFF, 0xFF],
secondary_inactive: [0xFF, 0xFF, 0xFF, 0xFF],
close_button_hovered: [0xFF, 0x10, 0x10, 0x10],
close_button: [0xFF, 0x10, 0x10, 0x10],
close_button_icon_hovered: [0xFF, 0x10, 0x10, 0x10],
close_button_icon: [0xFF, 0xff, 0xff, 0xff],
maximize_button_hovered: [0xFF, 0x10, 0x10, 0x10],
maximize_button: [0xFF, 0x10, 0x10, 0x10],
minimize_button_hovered: [0xFF, 0x10, 0x10, 0x10],
minimize_button: [0xFF, 0x10, 0x10, 0x10],
});
I have some "good" news for you @kchibisov : this graphical glitch was introduced by #95 :sweat_smile:
Not really, you can take a look on a picture before my patch and notice 1 blue dot and one white dot. You can disable anti-alias in line drawing for them to make them appear.
Ah right. This is subtle.
Format of colors is ARGB.
Close button has strange colors due to winit bug, but maximize and minimize buttons should reflect current SCTK behavior.