From 9204209bc5b4aab14b5d870e472825ea7bcf2508 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 18 Jan 2023 11:16:45 +0000 Subject: [PATCH] theme - new experiment - change zoom + wobble with zooming blue box --- data/elementary/themes/edc/comp.edc | 72 ++++++++++++++++++++++++----- 1 file changed, 60 insertions(+), 12 deletions(-) diff --git a/data/elementary/themes/edc/comp.edc b/data/elementary/themes/edc/comp.edc index 3e57c8d19f..f7ea59437f 100644 --- a/data/elementary/themes/edc/comp.edc +++ b/data/elementary/themes/edc/comp.edc @@ -267,17 +267,65 @@ group { name: "e/comp/frame/default"; color_class: "/bg/selected/comp/win"; } } +#define FOCUSGLOWSZ 20 + part { name: "focusglow"; type: RECT; + description { state: "default" 0.0; + rel.to: "e.swallow.content"; + } + description { state: "active" 0.0; + inherit: "default" 0.0; + offscale; + rel1.offset: (0-FOCUSGLOWSZ) (0-FOCUSGLOWSZ); + rel2.offset: (FOCUSGLOWSZ-1) (FOCUSGLOWSZ-1); + color: 255 255 255 0; // no cc + } + } + part { name: "focusglow1"; type: RECT; + description { state: "default" 0.0; + clip_to: "focusglow"; + offscale; + rel2.relative: 1.0 0.0; + rel1.offset: (0-FOCUSGLOWSZ) (0-FOCUSGLOWSZ); + rel2.offset: (FOCUSGLOWSZ-1) -1; + color_class: "/bg/selected/comp/focusglow"; + } + } + part { name: "focusglow2"; type: RECT; + description { state: "default" 0.0; + clip_to: "focusglow"; + offscale; + rel1.relative: 0.0 1.0; + rel1.offset: (0-FOCUSGLOWSZ) 0; + rel2.offset: (FOCUSGLOWSZ-1) (FOCUSGLOWSZ-1); + color_class: "/bg/selected/comp/focusglow"; + } + } + part { name: "focusglow3"; type: RECT; + description { state: "default" 0.0; + clip_to: "focusglow"; + offscale; + rel2.relative: 0.0 1.0; + rel1.offset: (0-FOCUSGLOWSZ) 0; + rel2.offset: -1 -1; + color_class: "/bg/selected/comp/focusglow"; + } + } + part { name: "focusglow4"; type: RECT; + description { state: "default" 0.0; + clip_to: "focusglow"; + offscale; + rel1.relative: 1.0 0.0; + rel1.offset: 0 0; + rel2.offset: (FOCUSGLOWSZ-1) -1; + color_class: "/bg/selected/comp/focusglow"; + } + } +#undef FOCUSGLOWSZ part { name: "e.swallow.content"; type: SWALLOW; clip_to: "focus-clipper"; description { state: "default" 0.0; rel.to: "shower"; } - description { state: "active" 0.0; - inherit: "default" 0.0; - offscale; - rel1.offset: -5 -5; - rel2.offset: 4 4; - } } spacer { "gspacer"; desc { @@ -334,18 +382,18 @@ group { name: "e/comp/frame/default"; } program { name: "focusbounce"; signal: "e,state,focused"; source: "e"; - action: STATE_SET "active" 0.0; - target: "e.swallow.content"; + action: STATE_SET "default" 0.0; + target: "focusglow"; sequence { - action: STATE_SET "default" 0.0; - target: "e.swallow.content"; - transition: SPRING 0.3 0.2 3 USE_DURATION_FACTOR 1; + action: STATE_SET "active" 0.0; + target: "focusglow"; + transition: DECELERATE 0.3 USE_DURATION_FACTOR 1; } } program { name: "focusbounceoff"; signal: "e,state,unfocused"; source: "e"; action: STATE_SET "default" 0.0; - target: "e.swallow.content"; + target: "focusglow"; } /* program { name: "urgent1";