summaryrefslogtreecommitdiff
path: root/data/themes
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-04 17:15:30 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-08-04 17:15:30 +0900
commit706e4948d7d607d11f13f63c655a26d8c57dff73 (patch)
tree0268f24be8f19672a5cddf9014e7dd7e4c6959f1 /data/themes
parent848b3af260a8c5adfa2288d605dd9f32577f6c64 (diff)
add video thumbnails on timeline/dragable/seeker at the bottom
these thumbnails are generated in the bg by rage_thumb and will appear once generated (or already found cached). it'll generate new thumbs if modified dates are equal or newer on tthe src vs the thumbnail cache. the caches store 160xN thumbs (keep aspect) with 70% lossy jpeg quality in an eet file with one thumb per 10 second interval. so it has limited accuracy.
Diffstat (limited to 'data/themes')
-rw-r--r--data/themes/default.edc211
1 files changed, 211 insertions, 0 deletions
diff --git a/data/themes/default.edc b/data/themes/default.edc
index f3ea3e6..5aaa1dc 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -35,6 +35,10 @@ collections {
35 images.image: "horizontal_separated_bar_small_glow.png" COMP; 35 images.image: "horizontal_separated_bar_small_glow.png" COMP;
36 images.image: "vgrad_shadow_bi.png" COMP; 36 images.image: "vgrad_shadow_bi.png" COMP;
37 37
38 images.image: "win_shadow.png" COMP;
39 images.image: "bg_shine.png" COMP;
40 images.image: "bg_glint.png" COMP;
41
38 set { name: "pos_indicator"; 42 set { name: "pos_indicator";
39 image { image: "pos_indicator_big.png" COMP; size: 32 28 99999 99999; } 43 image { image: "pos_indicator_big.png" COMP; size: 32 28 99999 99999; }
40 image { image: "pos_indicator.png" COMP; size: 0 0 31 27; } 44 image { image: "pos_indicator.png" COMP; size: 0 0 31 27; }
@@ -61,6 +65,7 @@ collections {
61 script { 65 script {
62 public pos_visible; 66 public pos_visible;
63 public pos_timer; 67 public pos_timer;
68 public drag_is_down;
64 69
65 public pos_timeout(val) { 70 public pos_timeout(val) {
66 set_int(pos_visible, 0); 71 set_int(pos_visible, 0);
@@ -1261,6 +1266,212 @@ collections {
1261 } 1266 }
1262 } 1267 }
1263 1268
1269 part { name: "dragover_master"; type: RECT;
1270 clip_to: "posclip";
1271 description { state: "default" 0.0;
1272 visible: 1;
1273 }
1274 description { state: "novideo" 0.0;
1275 visible: 0;
1276 }
1277 }
1278 program {
1279 signal: "state,novideo"; source: "rage";
1280 action: STATE_SET "novideo" 0.0;
1281 target: "dragover_master";
1282 }
1283 program {
1284 signal: "state,video"; source: "rage";
1285 action: STATE_SET "default" 0.0;
1286 target: "dragover_master";
1287 }
1288 part { name: "dragover_active"; type: RECT;
1289 clip_to: "dragover_master";
1290 description { state: "default" 0.0;
1291 color: 255 255 255 0;
1292 visible: 0;
1293 }
1294 description { state: "visible" 0.0;
1295 visible: 1;
1296 color: 255 255 255 255;
1297 }
1298 }
1299 part { name: "dragover_event"; type: RECT; repeat_events: 1;
1300 clip_to: "posclip";
1301 description { state: "default" 0.0;
1302 rel1.to_x: "bar_bg";
1303 rel1.to_y: "posevent";
1304 rel2.to_x: "bar_bg";
1305 color: 0 0 0 0;
1306 fixed: 1 1;
1307 }
1308 }
1309 program {
1310 signal: "mouse,in"; source: "dragover_event";
1311 action: STATE_SET "visible" 0.0;
1312 transition: SINUSOIDAL 0.5;
1313 target: "dragover_active";
1314 }
1315 program {
1316 signal: "mouse,out"; source: "dragover_event";
1317 action: STATE_SET "default" 0.0;
1318 transition: SINUSOIDAL 1.0;
1319 target: "dragover_active";
1320 }
1321 part { name: "dragover"; type: SPACER;
1322 description { state: "default" 0.0;
1323 rel1.to: "dragover_event";
1324 rel1.relative: 0.5 0.0;
1325 rel2.to: "dragover_event";
1326 rel2.relative: 0.5 0.0;
1327 fixed: 1 1;
1328 }
1329 }
1330 part { name: "dragshadow"; mouse_events: 0;
1331 clip_to: "dragover_active";
1332 description { state: "default" 0.0;
1333 fixed: 1 1;
1334 rel1.to: "rage.dragable.content";
1335 rel2.to: "rage.dragable.content";
1336 image.normal: "win_shadow.png";
1337 image.border: 14 14 14 14;
1338 image.middle: 0;
1339 rel1.offset: -7 -3;
1340 rel2.offset: 6 11;
1341 fill.smooth: 0;
1342 }
1343 }
1344 part { name: "dragover_fill"; mouse_events: 0;
1345 clip_to: "dragover_active";
1346 description { state: "default" 0.0;
1347 fixed: 1 1;
1348 image.normal: "pm_fill.png";
1349 fill {
1350 size.relative: 0.0 0.0;
1351 size.offset: 64 64;
1352 }
1353 rel1.to: "rage.dragable.content";
1354 rel2.to: "rage.dragable.content";
1355 }
1356 }
1357 part { name: "rage.dragable.content"; type: SWALLOW;
1358 clip_to: "dragover_active";
1359 description { state: "default" 0.0;
1360 rel1.to: "dragover";
1361 rel2.to: "dragover";
1362 align: 0.5 1.0;
1363 fixed: 1 1;
1364 }
1365 }
1366 part { name: "dragover_clip"; type: RECT;
1367 clip_to: "dragover_active";
1368 description { state: "default" 0.0;
1369 rel1.to: "rage.dragable.content";
1370 rel2.to: "rage.dragable.content";
1371 fixed: 1 1;
1372 }
1373 }
1374 part { name: "dragover_glintclip"; type: RECT;
1375 clip_to: "dragover_active";
1376 description { state: "default" 0.0;
1377 rel1.to: "dragover_clip";
1378 rel2.to: "dragover_clip";
1379 rel1.offset: 0 -10;
1380 }
1381 }
1382 part { name: "shine"; mouse_events: 0;
1383 clip_to: "dragover_clip";
1384 description { state: "default" 0.0;
1385 image.normal: "bg_shine.png";
1386 fill.smooth: 0;
1387 rel1.to: "dragover_clip";
1388 rel2.to: "dragover_clip";
1389 align: 0.5 0.0;
1390 aspect: (255/120) (255/120);
1391 aspect_preference: HORIZONTAL;
1392 }
1393 }
1394 part { name: "glint"; mouse_events: 0;
1395 clip_to: "dragover_glintclip";
1396 description { state: "default" 0.0;
1397 fixed: 1 1;
1398 min: 79 5;
1399 max: 79 5;
1400 rel1 {
1401 relative: 0.0 0.0;
1402 offset: 0 0;
1403 to: "dragover_clip";
1404 }
1405 rel2 {
1406 relative: 1.0 0.0;
1407 offset: -1 0;
1408 to: "dragover_clip";
1409 }
1410 image.normal: "bg_glint.png";
1411 }
1412 }
1413 part { name: "dragover_bevel2";
1414 clip_to: "dragover_active";
1415 description { state: "default" 0.0;
1416 image.normal: "bg_bevel.png";
1417 image.border: 1 1 1 1;
1418 image.middle: 0;
1419 fill.smooth: 0;
1420 rel1.to: "rage.dragable.content";
1421 rel2.to: "rage.dragable.content";
1422 }
1423 }
1424 program { name: "dragmove";
1425 signal: "mouse,move"; source: "dragover_event";
1426 script {
1427 new mx, my, x, y, w, h;
1428 new Float:pos, Float:px, Float:pw;
1429
1430 get_mouse(mx, my);
1431 get_geometry(PART:"dragover_event", x, y, w, h);
1432 x = mx - x;
1433 y = my - y;
1434 px = x;
1435 pw = w;
1436 if (w > 0) pos = px / pw;
1437 else pos = 0.5;
1438 custom_state(PART:"dragover", "default", 0.0);
1439 set_state_val(PART:"dragover", STATE_REL1, pos, 0.0);
1440 set_state_val(PART:"dragover", STATE_REL2, pos, 0.0);
1441 set_state(PART:"dragover", "custom", 0.0);
1442 send_message(MSG_FLOAT, 13, pos);
1443 if (get_int(drag_is_down) == 1)
1444 send_message(MSG_FLOAT, 10, pos);
1445 }
1446 }
1447 program { name: "dragdown";
1448 signal: "mouse,down,1"; source: "dragover_event";
1449 script {
1450 new mx, my, x, y, w, h;
1451 new Float:pos, Float:px, Float:pw;
1452
1453 set_int(drag_is_down, 1);
1454 get_mouse(mx, my);
1455 get_geometry(PART:"dragover_event", x, y, w, h);
1456 x = mx - x;
1457 y = my - y;
1458 px = x;
1459 pw = w;
1460 if (w > 0) pos = px / pw;
1461 else pos = 0.5;
1462 custom_state(PART:"dragover", "default", 0.0);
1463 set_state_val(PART:"dragover", STATE_REL1, pos, 0.0);
1464 set_state_val(PART:"dragover", STATE_REL2, pos, 0.0);
1465 set_state(PART:"dragover", "custom", 0.0);
1466 send_message(MSG_FLOAT, 10, pos);
1467 }
1468 }
1469 program { name: "dragup";
1470 signal: "mouse,up,1"; source: "dragover_event";
1471 script {
1472 set_int(drag_is_down, 0);
1473 }
1474 }
1264 part { name: "event"; type: RECT; repeat_events: 1; 1475 part { name: "event"; type: RECT; repeat_events: 1;
1265 description { state: "default" 0.0; 1476 description { state: "default" 0.0;
1266 color: 0 0 0 0; 1477 color: 0 0 0 0;