From 0c38e5b999da411b3b958c5fa141b08b40253f54 Mon Sep 17 00:00:00 2001 From: Colomban Wendling Date: Thu, 27 Jun 2019 11:53:52 +0200 Subject: desktop: Add specific CSS for HighContrast and HighContrastInverse Those themes should provide highly contrasted display, so make sure to have a background on the desktop items labels and use the theme's colors. --- data/Makefile.am | 3 +++ data/a11y-caja-desktop-base.css | 18 ++++++++++++++++++ data/caja-desktop-HighContrast.css | 1 + data/caja-desktop-HighContrastInverse.css | 1 + 4 files changed, 23 insertions(+) create mode 100644 data/a11y-caja-desktop-base.css create mode 100644 data/caja-desktop-HighContrast.css create mode 100644 data/caja-desktop-HighContrastInverse.css diff --git a/data/Makefile.am b/data/Makefile.am index 09dc2509..72c43799 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -38,6 +38,9 @@ cajadata_DATA = \ caja-suggested.placeholder \ caja.css \ caja-desktop.css \ + a11y-caja-desktop-base.css \ + caja-desktop-HighContrast.css \ + caja-desktop-HighContrastInverse.css \ $(NULL) # app data file diff --git a/data/a11y-caja-desktop-base.css b/data/a11y-caja-desktop-base.css new file mode 100644 index 00000000..62721afb --- /dev/null +++ b/data/a11y-caja-desktop-base.css @@ -0,0 +1,18 @@ +/* base rules for highly contrasted desktop items */ + +.caja-desktop.caja-canvas-item { + text-shadow: none; +} + +.caja-desktop.caja-canvas-item { + color: @theme_fg_color; + background: @theme_bg_color; +} + +.caja-desktop.caja-canvas-item:selected { + color: @theme_selected_fg_color; + background: @theme_selected_bg_color; +} +.caja-desktop.caja-canvas-item:selected:backdrop { + background: mix(@theme_selected_bg_color, @theme_selected_fg_color, 0.3); +} diff --git a/data/caja-desktop-HighContrast.css b/data/caja-desktop-HighContrast.css new file mode 100644 index 00000000..a826ef86 --- /dev/null +++ b/data/caja-desktop-HighContrast.css @@ -0,0 +1 @@ +@import url("a11y-caja-desktop-base.css"); diff --git a/data/caja-desktop-HighContrastInverse.css b/data/caja-desktop-HighContrastInverse.css new file mode 100644 index 00000000..a826ef86 --- /dev/null +++ b/data/caja-desktop-HighContrastInverse.css @@ -0,0 +1 @@ +@import url("a11y-caja-desktop-base.css"); -- cgit v1.2.1