From 04705b92d42b6705e94ed84dbd386a220d59c721 Mon Sep 17 00:00:00 2001 From: Leif Middelschulte Date: Fri, 16 Dec 2011 14:19:30 +0000 Subject: [PATCH] Make disabled outputs appear gray not, translucent SVN revision: 66288 --- .../conf_randr/e-module-conf_randr.edc | 28 +++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/src/modules/conf_randr/e-module-conf_randr.edc b/src/modules/conf_randr/e-module-conf_randr.edc index 433fc737b..5d62c8355 100644 --- a/src/modules/conf_randr/e-module-conf_randr.edc +++ b/src/modules/conf_randr/e-module-conf_randr.edc @@ -84,6 +84,30 @@ collections { } } + description { + state: "disabled" 0.0; + inherit: "default" 0.0; + color: 128 128 128 255; + } + } + + part { + name: "state_layer"; + type: RECT; // Overlay for gray-out in case of disabled outputs + + description { + state: "default" 0.0; + color: 255 255 255 0; + rel1 { + to: "e.swallow.content"; + relative: 0.0 0.0; + } + rel2 { + to: "e.swallow.content"; + relative: 1.0 1.0; + } + } + description { state: "disabled" 0.0; inherit: "default" 0.0; @@ -424,7 +448,7 @@ collections { signal: "disabled"; source: "e"; action: STATE_SET "disabled" 0.0; - target: "e.swallow.content"; + target: "state_layer"; } program { @@ -432,7 +456,7 @@ collections { signal: "enabled"; source: "e"; action: STATE_SET "default" 0.0; - target: "e.swallow.content"; + target: "state_layer"; } program {