summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorColomban Wendling <[email protected]>2019-06-27 11:53:52 +0200
committerraveit65 <[email protected]>2022-07-20 18:47:52 +0200
commit0c38e5b999da411b3b958c5fa141b08b40253f54 (patch)
tree70962460771b4cb0ddaf5ba9156a089d342bccba /data
parent5e5e66ca7b01405666c220bd3d80e85e75110dd3 (diff)
downloadcaja-0c38e5b999da411b3b958c5fa141b08b40253f54.tar.bz2
caja-0c38e5b999da411b3b958c5fa141b08b40253f54.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.
Diffstat (limited to 'data')
-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");