aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2015-10-10 19:39:16 +0200
committerBoris Faure <billiob@gmail.com>2015-11-07 15:59:55 +0100
commit88c4ce46b04459a0fb849b8123fc844010d5aad5 (patch)
treee42400373a1d2b0ee4fca3dd96fca03e1c94c636 /data
parentTheme smyck: Fix blue and white. (diff)
downloadterminology-88c4ce46b04459a0fb849b8123fc844010d5aad5.tar.gz
add (ugly) cross to close tabs
Diffstat (limited to 'data')
-rw-r--r--data/themes/default.edc53
-rw-r--r--data/themes/images/tab_close.pngbin0 -> 214 bytes
2 files changed, 52 insertions, 1 deletions
diff --git a/data/themes/default.edc b/data/themes/default.edc
index a675c9a..bd07305 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -226,6 +226,7 @@ collections {
image: "tab_shad_r1.png" COMP;
image: "media_busy_knob.png" COMP;
image: "media_busy_spinner.png" COMP;
+ image: "tab_close.png" COMP;
}
set { name: "bg_shadow";
image { image: "bg_shadow.png" COMP; size: 0 0 200 150; }
@@ -1016,6 +1017,7 @@ collections {
target: "tab_bevel_shad3";
target: "tab_bevel_shad4";
target: "tabtitle";
+ target: "tabclose";
}
program {
signal: "tabbar,off"; source: "terminology";
@@ -1041,6 +1043,7 @@ collections {
target: "tab_bevel_shad3";
target: "tab_bevel_shad4";
target: "tabtitle";
+ target: "tabclose";
}
part { name: "terminology.tab"; type: SWALLOW;
@@ -1055,7 +1058,7 @@ collections {
fixed: 1 1;
}
}
- // some slot for dragable parts to stayt in along top edge of bg
+ // some slot for dragable parts to stay in along top edge of bg
part { name: "tabdrag"; type: SPACER;
description { state: "default" 0.0;
rel2.relative: 1.0 0.0;
@@ -1185,6 +1188,32 @@ collections {
visible: 1;
}
}
+ part { name: "tabclose"; type: IMAGE;
+ description { state: "default" 0.0;
+ image {
+ normal: "tab_close.png";
+ };
+ rel1 {
+ to: "tabmiddle";
+ relative: 1.0 0.5;
+ offset: -20 -8;
+ }
+ rel2 {
+ to: "tabmiddle";
+ relative: 1.0 0.5;
+ offset: -2 8;
+ }
+ visible: 0;
+ }
+ description { state: "tab" 0.0;
+ inherit: "default" 0.0;
+ visible: 1;
+ }
+ }
+ program {
+ signal: "mouse,clicked,1"; source: "tabclose";
+ action: SIGNAL_EMIT "tab,close" "terminology";
+ }
////////////////////////////////////////////////////////////////////
// visual bell - spinning red siren light
@@ -1709,6 +1738,7 @@ collections {
image: "tab_other_r.png" COMP;
image: "tab_shad_l2.png" COMP;
image: "tab_shad_r2.png" COMP;
+ image: "tab_close.png" COMP;
}
parts {
part { name: "tab_bevel_shad1";
@@ -1822,6 +1852,27 @@ collections {
rel2.to: "tab_bevel_top2";
}
}
+ part { name: "tabclose"; type: IMAGE;
+ description { state: "default" 0.0;
+ image {
+ normal: "tab_close.png";
+ };
+ rel1 {
+ to: "tab_bevel_top2";
+ relative: 1.0 0.5;
+ offset: -20 -8;
+ }
+ rel2 {
+ to: "tab_bevel_top2";
+ relative: 1.0 0.5;
+ offset: -2 8;
+ }
+ }
+ }
+ program {
+ signal: "mouse,clicked,1"; source: "tabclose";
+ action: SIGNAL_EMIT "tab,close" "terminology";
+ }
part { name: "clip"; type: RECT;
description { state: "default" 0.0;
rel2.offset: -1 -2;
diff --git a/data/themes/images/tab_close.png b/data/themes/images/tab_close.png
new file mode 100644
index 0000000..4872dc4
--- /dev/null
+++ b/data/themes/images/tab_close.png
Binary files differ