Improved the previous patch for showing the loading OSD bar when the
top-panel is hidden, by adding also an OSD text which shows the loading
percentage.
From 026e19994d8f55dc4e06e84b56559719b3aaf22f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marco=20Trevisan=20(Trevi=C3=B1o)?= <[email protected]>
Date: Tue, 30 Nov 2010 01:06:31 +0100
Subject: [PATCH 1/2] eve: theme fix the progress-bar OSD show program

---
 data/themes/default.edc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/data/themes/default.edc b/data/themes/default.edc
index 848ca5c..955b9f5 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -1348,9 +1348,9 @@ collections {
                     target: "progress-bar-mask";
                     transition: DECELERATE 0.5;
 
-                    action: STATE_SET "default" 0.0;
+                    action: STATE_SET "visible" 0.0;
                     target: "progress-bar-topmask";
-                    transition: ACCELERATE 0.5;
+                    transition: DECELERATE 0.5;
                 }
             }
         }
-- 
1.7.1

From 7740a17106ba21b28a45b177d3dc235a36705ebc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marco=20Trevisan=20(Trevi=C3=B1o)?= <[email protected]>
Date: Tue, 30 Nov 2010 01:07:42 +0100
Subject: [PATCH 2/2] eve: theme added progress-bar OSD text to show the loading percentage

---
 data/themes/default.edc |   50 +++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 50 insertions(+), 0 deletions(-)

diff --git a/data/themes/default.edc b/data/themes/default.edc
index 955b9f5..fcbef34 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -510,6 +510,14 @@ collections {
                     set_state_val(PART:"progress-bar-topmask", STATE_REL2, value, 1.0);
                     set_state(PART:"progress-bar-topmask", "custom", 0.0);
 
+                    new buf[20];
+                    custom_state(PART:"progress-bar-topmask-text", "visible", 0.0);
+                    set_state_val(PART:"progress-bar-topmask-text", STATE_REL2, value, 1.0);
+                    snprintf(buf, sizeof(buf), "%d%%", round(value*100));
+                    set_text(PART:"progress-bar-topmask-text", buf);
+                    set_state(PART:"progress-bar-topmask-text", "custom", 0.0);
+
+
                     run_program(PROGRAM:"stop-show");
                     run_program(PROGRAM:"reload-hide");
                 }
@@ -914,6 +922,40 @@ collections {
                     color: 255 255 255 255;
                 }
             }
+            part { name: "progress-bar-topmask-text";
+                type: TEXT;
+                effect: GLOW;
+                mouse_events: 0;
+                description { state: "default" 0.0;
+                    fixed: 1 1;
+                    visible: 0;
+                    min: 10 15;
+                    max: 99999 15;
+                    align: 0.0 0.0;
+                    rel1 {
+                        to: "progress-bar-topmask";
+                        relative: 0.0 0.0;
+                    }
+                    rel2 {
+                        to_y: "progress-bar-topmask";
+                        relative: 1.0 0.0;
+                    }
+                    text {
+                        font: "Sans:style=Oblique";
+                        size: 11;
+                        min: 0 1;
+                        align: 1.0 0.5;
+                        text: "Teeest";
+                    }
+                    color: 255 255 255 0;
+                    color2: 0 0 0 0;
+                }
+                description { state: "visible" 0.0;
+                    inherit: "default" 0.0;
+                    visible: 1;
+                    color: 0 0 0 255;
+                }
+            }
             part { name: "panel-top-triangle";
                 type: IMAGE;
                 description { state: "default" 0.0;
@@ -1342,6 +1384,10 @@ collections {
                     action: STATE_SET "default" 0.0;
                     target: "progress-bar-topmask";
                     transition: ACCELERATE 0.5;
+
+                    action: STATE_SET "default" 0.0;
+                    target: "progress-bar-topmask-text";
+                    transition: ACCELERATE 0.5;
                 }
                 program { name: "progress-bar-show";
                     action: STATE_SET "visible" 0.0;
@@ -1351,6 +1397,10 @@ collections {
                     action: STATE_SET "visible" 0.0;
                     target: "progress-bar-topmask";
                     transition: DECELERATE 0.5;
+
+                    action: STATE_SET "visible" 0.0;
+                    target: "progress-bar-topmask-text";
+                    transition: DECELERATE 0.5;
                 }
             }
         }
-- 
1.7.1

------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to