Il giorno mer, 17/11/2010 alle 18.24 +0100, Marco Trevisan (Treviño) ha
scritto:
> This small patch to the the eve theme allows to show a small
> on-screen-display transparent progress-bar when loading a page also if
> the top-bar has been hidden.
> 
> The code maybe could be cleaner (to really hide it when it's not needed
> = when the top-bar is shown), but it should be enough for giving
> not-annoying load informations.

Ops, I forgot the attachment :P
From aa9395045bc229106e9b148e5e18e4235a52b220 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marco=20Trevisan=20(Trevi=C3=B1o)?= <[email protected]>
Date: Wed, 17 Nov 2010 18:18:10 +0100
Subject: [PATCH] eve: show small OSD top progress-bar on loading...

Add a small progress-bar top OSD when loading pages also when the
top panel has been hidden.
---
 data/themes/default.edc |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/data/themes/default.edc b/data/themes/default.edc
index 8c986b8..848ca5c 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -506,6 +506,10 @@ collections {
                     set_state_val(PART:"progress-bar-mask", STATE_REL2, value, 1.0);
                     set_state(PART:"progress-bar-mask", "custom", 0.0);
 
+                    custom_state(PART:"progress-bar-topmask", "visible", 0.0);
+                    set_state_val(PART:"progress-bar-topmask", STATE_REL2, value, 1.0);
+                    set_state(PART:"progress-bar-topmask", "custom", 0.0);
+
                     run_program(PROGRAM:"stop-show");
                     run_program(PROGRAM:"reload-hide");
                 }
@@ -887,6 +891,29 @@ collections {
                     }
                 }
             }
+            part { name: "progress-bar-topmask";
+                type: IMAGE;
+                description { state: "default" 0.0;
+                    fixed: 1 1;
+                    visible: 0;
+                    min: 10 15;
+                    max: 99999 15;
+                    align: 0.0 0.0;
+                    rel1 {
+                        relative: 0.0 0.0;
+                    }
+                    rel2 {
+                        relative: 1.0 0.0;
+                    }
+                    image.normal: "progress-bar-background.png";
+                    color: 255 255 255 0;
+                }
+                description { state: "visible" 0.0;
+                    inherit: "default" 0.0;
+                    visible: 1;
+                    color: 255 255 255 255;
+                }
+            }
             part { name: "panel-top-triangle";
                 type: IMAGE;
                 description { state: "default" 0.0;
@@ -1311,11 +1338,19 @@ collections {
                     action: STATE_SET "default" 0.0;
                     target: "progress-bar-mask";
                     transition: ACCELERATE 0.5;
+
+                    action: STATE_SET "default" 0.0;
+                    target: "progress-bar-topmask";
+                    transition: ACCELERATE 0.5;
                 }
                 program { name: "progress-bar-show";
                     action: STATE_SET "visible" 0.0;
                     target: "progress-bar-mask";
                     transition: DECELERATE 0.5;
+
+                    action: STATE_SET "default" 0.0;
+                    target: "progress-bar-topmask";
+                    transition: ACCELERATE 0.5;
                 }
             }
         }
-- 
1.7.1

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to