mild: make tag drag target more visible

This commit is contained in:
Boris Faure 2020-04-17 23:16:56 +02:00
parent d06ac1c262
commit 8e1b640453
Signed by untrusted user who does not match committer: borisfaure
GPG Key ID: 35C0410516166BE8
1 changed files with 21 additions and 0 deletions

View File

@ -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; \