add blurred filter for album art when paused

This commit is contained in:
Carsten Haitzler 2020-04-09 14:41:46 +01:00
parent cf2b383f0c
commit 0c1fe57057
1 changed files with 24 additions and 0 deletions

View File

@ -489,6 +489,30 @@ collections {
target: "art_clip3";
}
snapshot { "art_filter";
clip_to: "art_clip";
desc { state: "default" 0.0;
rel.to: "art_clip";
filter.code: "padding_set { 0 } blur { state.pos * 50, color = '#ffff' }";
visible: 0;
}
desc { state: "visible" 0.0;
inherit: "default" 0.0;
filter.code: "padding_set { 0 } blur { (1.0 - state.pos) * 50, color = '#ffff' }";
visible: 1;
}
}
program { signal: "action,play"; source: "rage";
action: STATE_SET "default" 0.0;
transition: SINUSOIDAL 0.2;
target: "art_filter";
}
program { signal: "action,pause"; source: "rage";
action: STATE_SET "visible" 0.0;
transition: SINUSOIDAL 0.4;
target: "art_filter";
}
part { name: "rage.gesture"; type: SWALLOW;
description { state: "default" 0.0;
rel2.to_y: "controlbar";