On Wayland, fix color from close_button_icon_color not applying (#1444)

This commit is contained in:
Kirill Chibisov
2020-02-09 05:36:45 +03:00
committed by GitHub
parent 4eddd1e5bc
commit 96df858961
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
# Unreleased
- On Wayland, fix coordinates in touch events when scale factor isn't 1
- On Wayland, fix coordinates in touch events when scale factor isn't 1.
- On Wayland, fix color from `close_button_icon_color` not applying.
# 0.21.0 (2020-02-04)

View File

@@ -446,7 +446,8 @@ impl<T: Theme> SCTKTheme for WaylandTheme<T> {
}
fn get_close_button_icon_color(&self, status: SCTKButtonState) -> [u8; 4] {
self.0.close_button_color(ButtonState::from_sctk(status))
self.0
.close_button_icon_color(ButtonState::from_sctk(status))
}
fn get_maximize_button_color(&self, status: SCTKButtonState) -> [u8; 4] {