summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2019-06-27 11:53:52 +0200
committerlukefromdc <[email protected]>2019-07-08 23:30:28 +0000
commit384a8ae61631068e19ba9e0b4ea07aa63087ce93 (patch)
tree9428cba05b544ed6fbbc28e8f72a2db10092b11d
parent4604796114c4680c3b17c0a54530c1d4b81887cc (diff)
downloadcaja-384a8ae61631068e19ba9e0b4ea07aa63087ce93.tar.bz2
caja-384a8ae61631068e19ba9e0b4ea07aa63087ce93.tar.xz
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.
-rw-r--r--data/Makefile.am3
-rw-r--r--data/a11y-caja-desktop-base.css18
-rw-r--r--data/caja-desktop-HighContrast.css1
-rw-r--r--data/caja-desktop-HighContrastInverse.css1
4 files changed, 23 insertions, 0 deletions
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");