summaryrefslogtreecommitdiff
path: root/data/themes
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/themes
parent1d492a68475d9d3c387691445dbeaacafd92a384 (diff)
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/themes')
-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 {
497 } 497 }
498 } 498 }
499 499
500 part { name: "rage.browser"; type: SWALLOW;
501 description { state: "default" 0.0;
502 rel1.relative: 1.0 0.0;
503 rel1.offset: 40 0;
504 rel2.relative: 2.0 0.0;
505 rel2.offset: -41 -1;
506 rel2.to_y: "controlbar";
507 fixed: 1 1;
508 visible: 0;
509 }
510 description { state: "visible" 0.0;
511 inherit: "default" 0.0;
512 rel1.relative: 0.0 0.0;
513 rel2.relative: 1.0 0.0;
514 color: 255 255 255 255;
515 visible: 1;
516 }
517 }
518 program {
519 signal: "browser,state,visible"; source: "rage";
520 action: STATE_SET "visible" 0.0;
521 transition: DECELERATE 0.3;
522 target: "rage.browser";
523 }
524 program {
525 signal: "browser,state,hidden"; source: "rage";
526 action: STATE_SET "default" 0.0;
527 transition: ACCELERATE 0.5;
528 target: "rage.browser";
529 after: "browser_hidden";
530 }
531 program { name: "browser_hidden";
532 action: SIGNAL_EMIT "browser,state,hidden,finished" "rage";
533 }
534
500 part { name: "rage.list"; type: SWALLOW; 535 part { name: "rage.list"; type: SWALLOW;
501 description { state: "default" 0.0; 536 description { state: "default" 0.0;
502 align: 0.0 0.5; 537 align: 0.0 0.5;
@@ -2073,4 +2108,177 @@ collections {
2073 } 2108 }
2074 } 2109 }
2075 } 2110 }
2111
2112
2113
2114
2115
2116
2117
2118 group { name: "rage/browser/entry";
2119 parts {
2120 part { name: "rage.title"; type: TEXT; mouse_events: 0;
2121 scale: 1;
2122 description { state: "default" 0.0;
2123 fixed: 0 1;
2124 align: 0.0 0.0;
2125 rel1.offset: 0 40;
2126 rel2.offset: -1 40;
2127 rel2.relative: 1.0 0.0;
2128 color: 255 255 255 255;
2129 text { font: "Sans:style=Bold"; size: 20;
2130 align: 0.0 0.0;
2131 min: 0 1;
2132 elipsis: 0;
2133 }
2134 }
2135 }
2136 part { name: "rage.content"; type: SWALLOW;
2137 description { state: "default" 0.0;
2138 rel1.to_y: "rage.title";
2139 rel1.relative: 0.0 1.0;
2140 rel1.offset: 0 40;
2141 rel2.offset: -1 -41;
2142 }
2143 }
2144 }
2145 }
2146
2147 group { name: "rage/browser/item";
2148 images.image: "win_shadow.png" COMP;
2149 images.image: "win_glow.png" COMP;
2150 images.image: "bg_shine.png" COMP;
2151 images.image: "bg_glint.png" COMP;
2152
2153 parts {
2154 part { name: "shadow"; mouse_events: 0;
2155 description { state: "default" 0.0;
2156 fixed: 1 1;
2157 rel1.to: "clip";
2158 rel2.to: "clip";
2159 image.normal: "win_shadow.png";
2160 image.border: 14 14 14 14;
2161 image.middle: 0;
2162 rel1.offset: -7 -3;
2163 rel2.offset: 6 11;
2164 fill.smooth: 0;
2165 }
2166 }
2167 part { name: "base"; type: RECT; mouse_events: 0;
2168 description { state: "default" 0.0;
2169 color: 0 0 0 255;
2170 rel1.to: "clip";
2171 rel2.to: "clip";
2172 }
2173 }
2174 part { name: "glow"; mouse_events: 0;
2175 description { state: "default" 0.0;
2176 image.normal: "win_glow.png";
2177 image.border: 9 9 9 9;
2178 image.middle: 0;
2179 rel1.to: "clip";
2180 rel1.offset: -5 -5;
2181 rel2.to: "clip";
2182 rel2.offset: 4 4;
2183 fill.smooth: 0;
2184 color: 255 255 255 0;
2185 visible: 0;
2186 }
2187 description { state: "selected" 0.0;
2188 inherit: "default" 0.0;
2189 color: 255 255 255 255;
2190 visible: 1;
2191 }
2192 }
2193 program {
2194 signal: "rage,state,selected"; source: "rage";
2195 action: STATE_SET "selected" 0.0;
2196 transition: SINUSOIDAL 0.1;
2197 target: "glow";
2198 }
2199 program {
2200 signal: "rage,state,unselected"; source: "rage";
2201 action: STATE_SET "default" 0.0;
2202 transition: SINUSOIDAL 0.3;
2203 target: "glow";
2204 }
2205
2206 part { name: "clip"; type: RECT;
2207 description { state: "default" 0.0;
2208 rel1.offset: 4 4;
2209 rel2.offset: -5 -5;
2210 }
2211 }
2212 part { name: "glintclip"; type: RECT;
2213 description { state: "default" 0.0;
2214 rel1.to: "clip";
2215 rel2.to: "clip";
2216 rel1.offset: 0 -10;
2217 }
2218 }
2219 part { name: "rage.content"; type: SWALLOW;
2220 clip_to: "clip";
2221 description { state: "default" 0.0;
2222 rel1.to: "clip";
2223 rel2.to: "clip";
2224 }
2225 }
2226 part { name: "shine"; mouse_events: 0;
2227 clip_to: "clip";
2228 description { state: "default" 0.0;
2229 image.normal: "bg_shine.png";
2230 fill.smooth: 0;
2231 rel1.to: "clip";
2232 rel2.to: "clip";
2233 align: 0.5 0.0;
2234 aspect: (255/120) (255/120);
2235 aspect_preference: HORIZONTAL;
2236 }
2237 }
2238 part { name: "glint"; mouse_events: 0;
2239 clip_to: "glintclip";
2240 description { state: "default" 0.0;
2241 fixed: 1 1;
2242 min: 79 5;
2243 max: 79 5;
2244 rel1 {
2245 relative: 0.0 0.0;
2246 offset: 0 0;
2247 to: "clip";
2248 }
2249 rel2 {
2250 relative: 1.0 0.0;
2251 offset: -1 0;
2252 to: "clip";
2253 }
2254 image.normal: "bg_glint.png";
2255 }
2256 }
2257 part { name: "rage.title"; type: TEXT; mouse_events: 0;
2258 scale: 1;
2259 description { state: "default" 0.0;
2260 fixed: 1 1;
2261 align: 0.0 1.0;
2262 rel1.offset: 4 4;
2263 rel2.offset: -5 -5;
2264 color: 255 255 255 255;
2265 text { font: "Sans"; size: 12;
2266 align: 0.0 1.0;
2267 min: 0 1;
2268 elipsis: 0;
2269 }
2270 }
2271 }
2272 part { name: "event"; type: RECT;
2273 ignore_flags: ON_HOLD;
2274 description { state: "default" 0.0;
2275 color: 0 0 0 0;
2276 }
2277 }
2278 program {
2279 signal: "mouse,clicked,1"; source: "event";
2280 action: SIGNAL_EMIT "rage,selected" "rage";
2281 }
2282 }
2283 }
2076} 2284}