From 3a5b7499c8b60f91fc48f63670b9a7cdfdb5e2ae Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Thu, 9 Apr 2020 22:17:07 +0200 Subject: [PATCH] mild.edc: add tabclose --- data/themes/mild.edc | 52 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/data/themes/mild.edc b/data/themes/mild.edc index 960bfe3b..f4b831c9 100644 --- a/data/themes/mild.edc +++ b/data/themes/mild.edc @@ -57,6 +57,10 @@ collections { image: "cr_glow.png" COMP; image: "cr_pulse.png" COMP; } + set { name: "tab_close"; + image { image: "tab_close_8.png" COMP; size: 0 0 8 8; } + image { image: "tab_close_16.png" COMP; size: 8 8 99999 99999; } + } sounds { sample { name: "bell" LOSSY 64; source: "bell.wav"; @@ -737,6 +741,7 @@ collections { target: "tab_bevel_bg3"; target: "tab_bevel_bg4"; target: "tabtitle"; + target: "tabclose"; } program { signal: "tabbar,off"; source: "terminology"; @@ -750,6 +755,7 @@ collections { target: "tab_bevel_bg3"; target: "tab_bevel_bg4"; target: "tabtitle"; + target: "tabclose"; } program { @@ -1226,6 +1232,52 @@ collections { visible: 1; } } + part { name: "tabclose"; type: IMAGE; + scale: 1; + description { state: "default" 0.0; + aspect: 1.0 1.0; aspect_preference: BOTH; + align: 1.0 0.5; + image.normal: "tab_close"; + rel1 { + to_y: "tabmiddle"; + to_x: "tab_bevel_bg3"; + relative: 0.0 0.3; + } + rel2 { + to_y: "tabmiddle"; + to_x: "tab_bevel_bg3"; + relative: 0.0 0.7; + } + min: 8 8; + max: 16 16; + fixed: 1 1; + visible: 0; + } + description { state: "tab" 0.0; + inherit: "default" 0.0; + color: FG_COLOR_NO_ALPHA 80; + visible: 1; + } + description { state: "over" 0.0; + inherit: "default" 0.0; + color: FG_COLOR_NO_ALPHA 255; + visible: 1; + } + } + program { + signal: "mouse,in"; source: "tabclose"; + action: STATE_SET "over" 0.0; + target: "tabclose"; + } + program { + signal: "mouse,out"; source: "tabclose"; + action: STATE_SET "tab" 0.0; + target: "tabclose"; + } + program { + signal: "mouse,clicked,1"; source: "tabclose"; + action: SIGNAL_EMIT "tab,close" "terminology"; + } //////////////////////////////////////////////////////////////////// // a place terminology will place an entry box for internal commands