From 14f7d68760cf65791c65edbe2ed58915df980566 Mon Sep 17 00:00:00 2001 From: Horst3180 Date: Mon, 28 Mar 2016 10:06:21 +0200 Subject: [PATCH] active switches are now :checked (fix #441) --- common/gtk-3.0/3.20/gtk-dark.css | 20 ++++++++++---------- common/gtk-3.0/3.20/gtk-darker.css | 20 ++++++++++---------- common/gtk-3.0/3.20/gtk-solid-dark.css | 20 ++++++++++---------- common/gtk-3.0/3.20/gtk-solid-darker.css | 20 ++++++++++---------- common/gtk-3.0/3.20/gtk-solid.css | 20 ++++++++++---------- common/gtk-3.0/3.20/gtk.css | 20 ++++++++++---------- common/gtk-3.0/3.20/sass/_common.scss | 4 ++-- 7 files changed, 62 insertions(+), 62 deletions(-) diff --git a/common/gtk-3.0/3.20/gtk-dark.css b/common/gtk-3.0/3.20/gtk-dark.css index 076740f..2aa077e 100644 --- a/common/gtk-3.0/3.20/gtk-dark.css +++ b/common/gtk-3.0/3.20/gtk-dark.css @@ -1813,15 +1813,15 @@ headerbar switch, .primary-toolbar switch { background-image: -gtk-scaled(url("assets/switch-header-dark.png"), url("assets/switch-header-dark@2.png")); } -switch:active { +switch:checked { background-image: -gtk-scaled(url("assets/switch-active-dark.png"), url("assets/switch-active-dark@2.png")); } -row:selected switch:active, -infobar switch:active { +row:selected switch:checked, +infobar switch:checked { background-image: -gtk-scaled(url("assets/switch-active-selected.png"), url("assets/switch-active-selected@2.png")); } -headerbar switch:active, -.primary-toolbar switch:active { +headerbar switch:checked, +.primary-toolbar switch:checked { background-image: -gtk-scaled(url("assets/switch-active-header-dark.png"), url("assets/switch-active-header-dark@2.png")); } switch:disabled { @@ -1835,15 +1835,15 @@ headerbar switch:disabled, .primary-toolbar switch:disabled { background-image: -gtk-scaled(url("assets/switch-insensitive-header-dark.png"), url("assets/switch-insensitive-header-dark@2.png")); } -switch:active:disabled { +switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-dark.png"), url("assets/switch-active-insensitive-dark@2.png")); } -row:selected switch:active:disabled, -infobar switch:active:disabled { +row:selected switch:checked:disabled, +infobar switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-selected.png"), url("assets/switch-active-insensitive-selected@2.png")); } -headerbar switch:active:disabled, -.primary-toolbar switch:active:disabled { +headerbar switch:checked:disabled, +.primary-toolbar switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-header-dark.png"), url("assets/switch-active-insensitive-header-dark@2.png")); } check, diff --git a/common/gtk-3.0/3.20/gtk-darker.css b/common/gtk-3.0/3.20/gtk-darker.css index 6b46e5c..0372c48 100644 --- a/common/gtk-3.0/3.20/gtk-darker.css +++ b/common/gtk-3.0/3.20/gtk-darker.css @@ -1812,15 +1812,15 @@ headerbar switch, .primary-toolbar switch { background-image: -gtk-scaled(url("assets/switch-header-dark.png"), url("assets/switch-header-dark@2.png")); } -switch:active { +switch:checked { background-image: -gtk-scaled(url("assets/switch-active.png"), url("assets/switch-active@2.png")); } -row:selected switch:active, -infobar switch:active { +row:selected switch:checked, +infobar switch:checked { background-image: -gtk-scaled(url("assets/switch-active-selected.png"), url("assets/switch-active-selected@2.png")); } -headerbar switch:active, -.primary-toolbar switch:active { +headerbar switch:checked, +.primary-toolbar switch:checked { background-image: -gtk-scaled(url("assets/switch-active-header-dark.png"), url("assets/switch-active-header-dark@2.png")); } switch:disabled { @@ -1834,15 +1834,15 @@ headerbar switch:disabled, .primary-toolbar switch:disabled { background-image: -gtk-scaled(url("assets/switch-insensitive-header-dark.png"), url("assets/switch-insensitive-header-dark@2.png")); } -switch:active:disabled { +switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive.png"), url("assets/switch-active-insensitive@2.png")); } -row:selected switch:active:disabled, -infobar switch:active:disabled { +row:selected switch:checked:disabled, +infobar switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-selected.png"), url("assets/switch-active-insensitive-selected@2.png")); } -headerbar switch:active:disabled, -.primary-toolbar switch:active:disabled { +headerbar switch:checked:disabled, +.primary-toolbar switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-header-dark.png"), url("assets/switch-active-insensitive-header-dark@2.png")); } check, diff --git a/common/gtk-3.0/3.20/gtk-solid-dark.css b/common/gtk-3.0/3.20/gtk-solid-dark.css index 8f5cc27..67b41ae 100644 --- a/common/gtk-3.0/3.20/gtk-solid-dark.css +++ b/common/gtk-3.0/3.20/gtk-solid-dark.css @@ -1813,15 +1813,15 @@ headerbar switch, .primary-toolbar switch { background-image: -gtk-scaled(url("assets/switch-header-dark.png"), url("assets/switch-header-dark@2.png")); } -switch:active { +switch:checked { background-image: -gtk-scaled(url("assets/switch-active-dark.png"), url("assets/switch-active-dark@2.png")); } -row:selected switch:active, -infobar switch:active { +row:selected switch:checked, +infobar switch:checked { background-image: -gtk-scaled(url("assets/switch-active-selected.png"), url("assets/switch-active-selected@2.png")); } -headerbar switch:active, -.primary-toolbar switch:active { +headerbar switch:checked, +.primary-toolbar switch:checked { background-image: -gtk-scaled(url("assets/switch-active-header-dark.png"), url("assets/switch-active-header-dark@2.png")); } switch:disabled { @@ -1835,15 +1835,15 @@ headerbar switch:disabled, .primary-toolbar switch:disabled { background-image: -gtk-scaled(url("assets/switch-insensitive-header-dark.png"), url("assets/switch-insensitive-header-dark@2.png")); } -switch:active:disabled { +switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-dark.png"), url("assets/switch-active-insensitive-dark@2.png")); } -row:selected switch:active:disabled, -infobar switch:active:disabled { +row:selected switch:checked:disabled, +infobar switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-selected.png"), url("assets/switch-active-insensitive-selected@2.png")); } -headerbar switch:active:disabled, -.primary-toolbar switch:active:disabled { +headerbar switch:checked:disabled, +.primary-toolbar switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-header-dark.png"), url("assets/switch-active-insensitive-header-dark@2.png")); } check, diff --git a/common/gtk-3.0/3.20/gtk-solid-darker.css b/common/gtk-3.0/3.20/gtk-solid-darker.css index 94f7780..1401f88 100644 --- a/common/gtk-3.0/3.20/gtk-solid-darker.css +++ b/common/gtk-3.0/3.20/gtk-solid-darker.css @@ -1812,15 +1812,15 @@ headerbar switch, .primary-toolbar switch { background-image: -gtk-scaled(url("assets/switch-header-dark.png"), url("assets/switch-header-dark@2.png")); } -switch:active { +switch:checked { background-image: -gtk-scaled(url("assets/switch-active.png"), url("assets/switch-active@2.png")); } -row:selected switch:active, -infobar switch:active { +row:selected switch:checked, +infobar switch:checked { background-image: -gtk-scaled(url("assets/switch-active-selected.png"), url("assets/switch-active-selected@2.png")); } -headerbar switch:active, -.primary-toolbar switch:active { +headerbar switch:checked, +.primary-toolbar switch:checked { background-image: -gtk-scaled(url("assets/switch-active-header-dark.png"), url("assets/switch-active-header-dark@2.png")); } switch:disabled { @@ -1834,15 +1834,15 @@ headerbar switch:disabled, .primary-toolbar switch:disabled { background-image: -gtk-scaled(url("assets/switch-insensitive-header-dark.png"), url("assets/switch-insensitive-header-dark@2.png")); } -switch:active:disabled { +switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive.png"), url("assets/switch-active-insensitive@2.png")); } -row:selected switch:active:disabled, -infobar switch:active:disabled { +row:selected switch:checked:disabled, +infobar switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-selected.png"), url("assets/switch-active-insensitive-selected@2.png")); } -headerbar switch:active:disabled, -.primary-toolbar switch:active:disabled { +headerbar switch:checked:disabled, +.primary-toolbar switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-header-dark.png"), url("assets/switch-active-insensitive-header-dark@2.png")); } check, diff --git a/common/gtk-3.0/3.20/gtk-solid.css b/common/gtk-3.0/3.20/gtk-solid.css index 397e0a3..94b9461 100644 --- a/common/gtk-3.0/3.20/gtk-solid.css +++ b/common/gtk-3.0/3.20/gtk-solid.css @@ -1816,15 +1816,15 @@ headerbar switch, .primary-toolbar switch { background-image: -gtk-scaled(url("assets/switch-header.png"), url("assets/switch-header@2.png")); } -switch:active { +switch:checked { background-image: -gtk-scaled(url("assets/switch-active.png"), url("assets/switch-active@2.png")); } -row:selected switch:active, -infobar switch:active { +row:selected switch:checked, +infobar switch:checked { background-image: -gtk-scaled(url("assets/switch-active-selected.png"), url("assets/switch-active-selected@2.png")); } -headerbar switch:active, -.primary-toolbar switch:active { +headerbar switch:checked, +.primary-toolbar switch:checked { background-image: -gtk-scaled(url("assets/switch-active-header.png"), url("assets/switch-active-header@2.png")); } switch:disabled { @@ -1838,15 +1838,15 @@ headerbar switch:disabled, .primary-toolbar switch:disabled { background-image: -gtk-scaled(url("assets/switch-insensitive-header.png"), url("assets/switch-insensitive-header@2.png")); } -switch:active:disabled { +switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive.png"), url("assets/switch-active-insensitive@2.png")); } -row:selected switch:active:disabled, -infobar switch:active:disabled { +row:selected switch:checked:disabled, +infobar switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-selected.png"), url("assets/switch-active-insensitive-selected@2.png")); } -headerbar switch:active:disabled, -.primary-toolbar switch:active:disabled { +headerbar switch:checked:disabled, +.primary-toolbar switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-header.png"), url("assets/switch-active-insensitive-header@2.png")); } check, diff --git a/common/gtk-3.0/3.20/gtk.css b/common/gtk-3.0/3.20/gtk.css index 72220e8..0628542 100644 --- a/common/gtk-3.0/3.20/gtk.css +++ b/common/gtk-3.0/3.20/gtk.css @@ -1816,15 +1816,15 @@ headerbar switch, .primary-toolbar switch { background-image: -gtk-scaled(url("assets/switch-header.png"), url("assets/switch-header@2.png")); } -switch:active { +switch:checked { background-image: -gtk-scaled(url("assets/switch-active.png"), url("assets/switch-active@2.png")); } -row:selected switch:active, -infobar switch:active { +row:selected switch:checked, +infobar switch:checked { background-image: -gtk-scaled(url("assets/switch-active-selected.png"), url("assets/switch-active-selected@2.png")); } -headerbar switch:active, -.primary-toolbar switch:active { +headerbar switch:checked, +.primary-toolbar switch:checked { background-image: -gtk-scaled(url("assets/switch-active-header.png"), url("assets/switch-active-header@2.png")); } switch:disabled { @@ -1838,15 +1838,15 @@ headerbar switch:disabled, .primary-toolbar switch:disabled { background-image: -gtk-scaled(url("assets/switch-insensitive-header.png"), url("assets/switch-insensitive-header@2.png")); } -switch:active:disabled { +switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive.png"), url("assets/switch-active-insensitive@2.png")); } -row:selected switch:active:disabled, -infobar switch:active:disabled { +row:selected switch:checked:disabled, +infobar switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-selected.png"), url("assets/switch-active-insensitive-selected@2.png")); } -headerbar switch:active:disabled, -.primary-toolbar switch:active:disabled { +headerbar switch:checked:disabled, +.primary-toolbar switch:checked:disabled { background-image: -gtk-scaled(url("assets/switch-active-insensitive-header.png"), url("assets/switch-active-insensitive-header@2.png")); } check, diff --git a/common/gtk-3.0/3.20/sass/_common.scss b/common/gtk-3.0/3.20/sass/_common.scss index ac14b93..ccd5cb8 100644 --- a/common/gtk-3.0/3.20/sass/_common.scss +++ b/common/gtk-3.0/3.20/sass/_common.scss @@ -1957,9 +1957,9 @@ switch { } @each $k,$l in ('',''), - (':active','-active'), + (':checked','-active'), (':disabled','-insensitive'), - (':active:disabled','-active-insensitive') { + (':checked:disabled','-active-insensitive') { // load switch troughs from .png files in assets directory