summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorDave Andreoli <dave@gurumeditation.it>2017-08-27 11:46:39 +0200
committerDave Andreoli <dave@gurumeditation.it>2017-08-27 11:46:39 +0200
commit39288d12c2f9a12fd9e55c4f676118be7915a2b1 (patch)
treef0d781c7ba277203cb8331d1f74a2e2456c7e80c /data
parent924a59d5db2915232b27be72b0aea2c9d92fb4eb (diff)
Netstatus gadget: a new decent design
I'm still not really happy with this design, because 2 arrows are not enough to understand it is "network"... but at least it looks good now :)
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/netstatus.edc64
-rw-r--r--data/elementary/themes/img/netstatus_base.pngbin1975 -> 3593 bytes
-rw-r--r--data/elementary/themes/img/netstatus_over.pngbin180 -> 2718 bytes
-rw-r--r--data/elementary/themes/img/netstatus_rx.pngbin1116 -> 1374 bytes
-rw-r--r--data/elementary/themes/img/netstatus_tx.pngbin1150 -> 1334 bytes
-rw-r--r--data/elementary/themes/orig/netstatus.xcf.gzbin0 -> 21877 bytes
6 files changed, 44 insertions, 20 deletions
diff --git a/data/elementary/themes/edc/netstatus.edc b/data/elementary/themes/edc/netstatus.edc
index 53eecc218d..c4157d4ba8 100644
--- a/data/elementary/themes/edc/netstatus.edc
+++ b/data/elementary/themes/edc/netstatus.edc
@@ -14,17 +14,15 @@ group { name: "e/gadget/netstatus/main";
14 new txper = getarg(6); 14 new txper = getarg(6);
15 // new txmax = getarg(7); 15 // new txmax = getarg(7);
16 16
17 new val = rxper + 155; 17 new Float:val = rxper / 100.0;
18 if (val == 155) val = 0; 18 custom_state(PART:"rx_clip", "default", 0.0);
19 custom_state(PART:"rx", "default", 0.0); 19 set_state_val(PART:"rx_clip", STATE_REL2, 1.0, val);
20 set_state_val(PART:"rx", STATE_COLOR, 255, 255, 255, val); 20 set_state(PART:"rx_clip", "custom", 0.0);
21 set_state(PART:"rx", "custom", 0.0);
22 21
23 val = txper + 155; 22 val = txper / 100.0;
24 if (val == 155) val = 0; 23 custom_state(PART:"tx_clip", "default", 0.0);
25 custom_state(PART:"tx", "default", 0.0); 24 set_state_val(PART:"tx_clip", STATE_REL1, 0.0, 1.0 - val);
26 set_state_val(PART:"tx", STATE_COLOR, 255, 255, 255, val); 25 set_state(PART:"tx_clip", "custom", 0.0);
27 set_state(PART:"tx", "custom", 0.0);
28 } 26 }
29 } 27 }
30 } 28 }
@@ -36,19 +34,45 @@ group { name: "e/gadget/netstatus/main";
36 image.normal: "netstatus_base.png"; 34 image.normal: "netstatus_base.png";
37 } 35 }
38 } 36 }
37 part { name: "rx_spacer"; type: SPACER;
38 description { state: "default" 0.0;
39 rel1.relative: 0.0 0.09;
40 rel2.relative: 1.0 0.91;
41 }
42 }
43 part { name: "rx_clip"; type: RECT;
44 description { state: "default" 0.0;
45 rel1.to: "rx_spacer";
46 rel2.to: "rx_spacer";
47 }
48 }
39 part { name: "rx"; type: IMAGE; 49 part { name: "rx"; type: IMAGE;
40 description { state: "default" 0.0; 50 clip_to: "rx_clip";
41 rel1.to: "base"; 51 description { state: "default" 0.0;
42 rel2.to: "base"; 52 rel1.to: "base";
43 image.normal: "netstatus_rx.png"; 53 rel2.to: "base";
44 } 54 image.normal: "netstatus_rx.png";
55 }
56 }
57 part { name: "tx_spacer"; type: SPACER;
58 description { state: "default" 0.0;
59 rel1.relative: 0.0 0.09;
60 rel2.relative: 1.0 0.91;
61 }
62 }
63 part { name: "tx_clip"; type: RECT;
64 description { state: "default" 0.0;
65 rel1.to: "tx_spacer";
66 rel2.to: "tx_spacer";
67 }
45 } 68 }
46 part { name: "tx"; type: IMAGE; 69 part { name: "tx"; type: IMAGE;
47 description { state: "default" 0.0; 70 clip_to: "tx_clip";
48 rel1.to: "base"; 71 description { state: "default" 0.0;
49 rel2.to: "base"; 72 rel1.to: "base";
50 image.normal: "netstatus_tx.png"; 73 rel2.to: "base";
51 } 74 image.normal: "netstatus_tx.png";
75 }
52 } 76 }
53 part { name: "over"; 77 part { name: "over";
54 description { state: "default" 0.0; 78 description { state: "default" 0.0;
diff --git a/data/elementary/themes/img/netstatus_base.png b/data/elementary/themes/img/netstatus_base.png
index cdc8e20137..44340cec9b 100644
--- a/data/elementary/themes/img/netstatus_base.png
+++ b/data/elementary/themes/img/netstatus_base.png
Binary files differ
diff --git a/data/elementary/themes/img/netstatus_over.png b/data/elementary/themes/img/netstatus_over.png
index fdd2f9d900..df208a662b 100644
--- a/data/elementary/themes/img/netstatus_over.png
+++ b/data/elementary/themes/img/netstatus_over.png
Binary files differ
diff --git a/data/elementary/themes/img/netstatus_rx.png b/data/elementary/themes/img/netstatus_rx.png
index 1fa2655a32..49df2cefb8 100644
--- a/data/elementary/themes/img/netstatus_rx.png
+++ b/data/elementary/themes/img/netstatus_rx.png
Binary files differ
diff --git a/data/elementary/themes/img/netstatus_tx.png b/data/elementary/themes/img/netstatus_tx.png
index ef23e11f35..cdc5254513 100644
--- a/data/elementary/themes/img/netstatus_tx.png
+++ b/data/elementary/themes/img/netstatus_tx.png
Binary files differ
diff --git a/data/elementary/themes/orig/netstatus.xcf.gz b/data/elementary/themes/orig/netstatus.xcf.gz
new file mode 100644
index 0000000000..94f3cd106d
--- /dev/null
+++ b/data/elementary/themes/orig/netstatus.xcf.gz
Binary files differ