From 96df85896134895b4538a6a24a9f96d8b3343343 Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Sun, 9 Feb 2020 05:36:45 +0300 Subject: [PATCH] On Wayland, fix color from `close_button_icon_color` not applying (#1444) --- CHANGELOG.md | 3 ++- src/platform/unix.rs | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c39ecdf..f5711e5a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/src/platform/unix.rs b/src/platform/unix.rs index 12711506..6ab2d7df 100644 --- a/src/platform/unix.rs +++ b/src/platform/unix.rs @@ -446,7 +446,8 @@ impl SCTKTheme for WaylandTheme { } 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] {