aboutsummaryrefslogtreecommitdiffstats
path: root/data
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-10-10 16:51:49 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2015-10-10 16:51:49 +0900
commitb4b380ce1f282ddb0c0f6c5279b5cb0f58e8d528 (patch)
tree448771a643c75335ca569b47f4fe82d1fe9a531d /data
parentrage - avoid htonl due to windows issues - makes things simpler (diff)
downloadrage-b4b380ce1f282ddb0c0f6c5279b5cb0f58e8d528.tar.gz
rage - add "browser" when run with no args - index ~/Videos
this adds a video browser that indexes everything in ~/Videos flattening subdirs into categories. It also will handle music and fetch album art. browser can be mouse or key controlled. makes rage almost media-centerey. not intended as a replacement tho, but just that it's handy to throw in.
Diffstat (limited to 'data')
-rw-r--r--data/themes/default.edc208
1 files changed, 208 insertions, 0 deletions
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 227ab8b..8ba5c1c 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -497,6 +497,41 @@ collections {
}
}
+ part { name: "rage.browser"; type: SWALLOW;
+ description { state: "default" 0.0;
+ rel1.relative: 1.0 0.0;
+ rel1.offset: 40 0;
+ rel2.relative: 2.0 0.0;
+ rel2.offset: -41 -1;
+ rel2.to_y: "controlbar";
+ fixed: 1 1;
+ visible: 0;
+ }
+ description { state: "visible" 0.0;
+ inherit: "default" 0.0;
+ rel1.relative: 0.0 0.0;
+ rel2.relative: 1.0 0.0;
+ color: 255 255 255 255;
+ visible: 1;
+ }
+ }
+ program {
+ signal: "browser,state,visible"; source: "rage";
+ action: STATE_SET "visible" 0.0;
+ transition: DECELERATE 0.3;
+ target: "rage.browser";
+ }
+ program {
+ signal: "browser,state,hidden"; source: "rage";
+ action: STATE_SET "default" 0.0;
+ transition: ACCELERATE 0.5;
+ target: "rage.browser";
+ after: "browser_hidden";
+ }
+ program { name: "browser_hidden";
+ action: SIGNAL_EMIT "browser,state,hidden,finished" "rage";
+ }
+
part { name: "rage.list"; type: SWALLOW;
description { state: "default" 0.0;
align: 0.0 0.5;
@@ -2073,4 +2108,177 @@ collections {
}
}
}
+
+
+
+
+
+
+
+ group { name: "rage/browser/entry";
+ parts {
+ part { name: "rage.title"; type: TEXT; mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.0 0.0;
+ rel1.offset: 0 40;
+ rel2.offset: -1 40;
+ rel2.relative: 1.0 0.0;
+ color: 255 255 255 255;
+ text { font: "Sans:style=Bold"; size: 20;
+ align: 0.0 0.0;
+ min: 0 1;
+ elipsis: 0;
+ }
+ }
+ }
+ part { name: "rage.content"; type: SWALLOW;
+ description { state: "default" 0.0;
+ rel1.to_y: "rage.title";
+ rel1.relative: 0.0 1.0;
+ rel1.offset: 0 40;
+ rel2.offset: -1 -41;
+ }
+ }
+ }
+ }
+
+ group { name: "rage/browser/item";
+ images.image: "win_shadow.png" COMP;
+ images.image: "win_glow.png" COMP;
+ images.image: "bg_shine.png" COMP;
+ images.image: "bg_glint.png" COMP;
+
+ parts {
+ part { name: "shadow"; mouse_events: 0;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ rel1.to: "clip";
+ rel2.to: "clip";
+ image.normal: "win_shadow.png";
+ image.border: 14 14 14 14;
+ image.middle: 0;
+ rel1.offset: -7 -3;
+ rel2.offset: 6 11;
+ fill.smooth: 0;
+ }
+ }
+ part { name: "base"; type: RECT; mouse_events: 0;
+ description { state: "default" 0.0;
+ color: 0 0 0 255;
+ rel1.to: "clip";
+ rel2.to: "clip";
+ }
+ }
+ part { name: "glow"; mouse_events: 0;
+ description { state: "default" 0.0;
+ image.normal: "win_glow.png";
+ image.border: 9 9 9 9;
+ image.middle: 0;
+ rel1.to: "clip";
+ rel1.offset: -5 -5;
+ rel2.to: "clip";
+ rel2.offset: 4 4;
+ fill.smooth: 0;
+ color: 255 255 255 0;
+ visible: 0;
+ }
+ description { state: "selected" 0.0;
+ inherit: "default" 0.0;
+ color: 255 255 255 255;
+ visible: 1;
+ }
+ }
+ program {
+ signal: "rage,state,selected"; source: "rage";
+ action: STATE_SET "selected" 0.0;
+ transition: SINUSOIDAL 0.1;
+ target: "glow";
+ }
+ program {
+ signal: "rage,state,unselected"; source: "rage";
+ action: STATE_SET "default" 0.0;
+ transition: SINUSOIDAL 0.3;
+ target: "glow";
+ }
+
+ part { name: "clip"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.offset: 4 4;
+ rel2.offset: -5 -5;
+ }
+ }
+ part { name: "glintclip"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.to: "clip";
+ rel2.to: "clip";
+ rel1.offset: 0 -10;
+ }
+ }
+ part { name: "rage.content"; type: SWALLOW;
+ clip_to: "clip";
+ description { state: "default" 0.0;
+ rel1.to: "clip";
+ rel2.to: "clip";
+ }
+ }
+ part { name: "shine"; mouse_events: 0;
+ clip_to: "clip";
+ description { state: "default" 0.0;
+ image.normal: "bg_shine.png";
+ fill.smooth: 0;
+ rel1.to: "clip";
+ rel2.to: "clip";
+ align: 0.5 0.0;
+ aspect: (255/120) (255/120);
+ aspect_preference: HORIZONTAL;
+ }
+ }
+ part { name: "glint"; mouse_events: 0;
+ clip_to: "glintclip";
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ min: 79 5;
+ max: 79 5;
+ rel1 {
+ relative: 0.0 0.0;
+ offset: 0 0;
+ to: "clip";
+ }
+ rel2 {
+ relative: 1.0 0.0;
+ offset: -1 0;
+ to: "clip";
+ }
+ image.normal: "bg_glint.png";
+ }
+ }
+ part { name: "rage.title"; type: TEXT; mouse_events: 0;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 1 1;
+ align: 0.0 1.0;
+ rel1.offset: 4 4;
+ rel2.offset: -5 -5;
+ color: 255 255 255 255;
+ text { font: "Sans"; size: 12;
+ align: 0.0 1.0;
+ min: 0 1;
+ elipsis: 0;
+ }
+ }
+ }
+ part { name: "event"; type: RECT;
+ ignore_flags: ON_HOLD;
+ description { state: "default" 0.0;
+ color: 0 0 0 0;
+ }
+ }
+ program {
+ signal: "mouse,clicked,1"; source: "event";
+ action: SIGNAL_EMIT "rage,selected" "rage";
+ }
+ }
+ }
}