From 8bcf89ba001709aa33cdffba7c5b6deb313b85aa Mon Sep 17 00:00:00 2001 From: kramo Date: Mon, 11 Nov 2024 15:16:47 +0000 Subject: [PATCH] image: Update colors' hues to match that of libadwaita --- src/widgets/image.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/widgets/image.rs b/src/widgets/image.rs index fa229c3..34af016 100644 --- a/src/widgets/image.rs +++ b/src/widgets/image.rs @@ -57,17 +57,17 @@ use crate::metadata::Metadata; use crate::util::Gesture; /// Default background color around images and behind transparent images -/// `#242424` -const BACKGROUND_COLOR_DEFAULT: gdk::RGBA = gdk::RGBA::new(36. / 255., 36. / 255., 36. / 255., 1.); +/// `#222226` +const BACKGROUND_COLOR_DEFAULT: gdk::RGBA = gdk::RGBA::new(34. / 255., 34. / 255., 38. / 255., 1.); /// Background color if the default does not give enough contrast for -/// transparent images `#e8e7e6` +/// transparent images `#e8e8ea` const BACKGROUND_COLOR_ALTERNATE: gdk::RGBA = - gdk::RGBA::new(232. / 255., 231. / 255., 230. / 255., 1.); + gdk::RGBA::new(232. / 255., 232. / 255., 234. / 255., 1.); const BACKGROUND_COLOR_DEFAULT_LIGHT_MODE: gdk::RGBA = - gdk::RGBA::new(250. / 255., 250. / 255., 250. / 255., 1.); + gdk::RGBA::new(250. / 255., 250. / 255., 251. / 255., 1.); const BACKGROUND_COLOR_ALTERNATE_LIGHT_MODE: gdk::RGBA = - gdk::RGBA::new(103. / 255., 101. / 255., 110. / 255., 1.); + gdk::RGBA::new(101. / 255., 101. / 255., 105. / 255., 1.); /// Consider 3.5:1 contrast and worse to be bad contrast for a pixel static BACKGROUND_GUESS_LOW_CONTRAST_RATIO: f32 = 3.5;