forked from enlightenment/terminology
mild: make tag drag target more visible
This commit is contained in:
parent
d06ac1c262
commit
8e1b640453
|
@ -1019,12 +1019,16 @@ collections {
|
|||
target: "tabdrag";
|
||||
target: "drag_left_pulse";
|
||||
target: "drag_left_outline";
|
||||
target: "drag_left_rect";
|
||||
target: "drag_right_pulse";
|
||||
target: "drag_right_outline";
|
||||
target: "drag_right_rect";
|
||||
target: "drag_top_pulse";
|
||||
target: "drag_top_outline";
|
||||
target: "drag_top_rect";
|
||||
target: "drag_bottom_pulse";
|
||||
target: "drag_bottom_outline";
|
||||
target: "drag_bottom_rect";
|
||||
}
|
||||
program {
|
||||
signal: "hdrag,off"; source: "terminology";
|
||||
|
@ -1032,12 +1036,16 @@ collections {
|
|||
target: "tabdrag";
|
||||
target: "drag_left_pulse";
|
||||
target: "drag_left_outline";
|
||||
target: "drag_left_rect";
|
||||
target: "drag_right_pulse";
|
||||
target: "drag_right_outline";
|
||||
target: "drag_right_rect";
|
||||
target: "drag_top_pulse";
|
||||
target: "drag_top_outline";
|
||||
target: "drag_top_rect";
|
||||
target: "drag_bottom_pulse";
|
||||
target: "drag_bottom_outline";
|
||||
target: "drag_bottom_rect";
|
||||
}
|
||||
// left boundary of the active tab (dragable 0.0 -> 1.0)
|
||||
part { name: "terminology.tabl"; type: SPACER;
|
||||
|
@ -1505,6 +1513,19 @@ collections {
|
|||
////////////////////////////////////////////////////////////////////
|
||||
// Drag target areas {{{
|
||||
#define DRAG_TARGET(DIR, REL_ONE, REL_TWO) \
|
||||
part { name: "drag_"##DIR##"_rect"; \
|
||||
type: RECT; \
|
||||
description { state: "default" 0.0; \
|
||||
rel1.to: "drag_"##DIR##"_outline"; \
|
||||
rel2.to: "drag_"##DIR##"_outline"; \
|
||||
color: FG_COLOR_NO_ALPHA 40; \
|
||||
visible: 0; \
|
||||
} \
|
||||
description { state: "hdrag,off" 0.0; \
|
||||
inherit: "default" 0.0; \
|
||||
visible: 1; \
|
||||
} \
|
||||
} \
|
||||
part { name: "drag_"##DIR##"_pulse"; \
|
||||
mouse_events: 0; \
|
||||
description { state: "default" 0.0; \
|
||||
|
|
Loading…
Reference in New Issue