summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorStephen 'Okra' Houston <smhouston88@gmail.com>2017-08-22 20:44:14 -0500
committerStephen 'Okra' Houston <smhouston88@gmail.com>2017-08-22 20:44:53 -0500
commitfa1842370be003a246fe0d9f09fe6aa560714f3a (patch)
tree33c8717e76fde176863ef22f3649c5a4b7a260fd /data
parenta7649a7897218f3d66d72c15851aa566f00ca1f7 (diff)
Netstatus: Use arrows for up and down net traffic indicators.
Diffstat (limited to 'data')
-rw-r--r--data/elementary/themes/edc/netstatus.edc44
-rw-r--r--data/elementary/themes/img/netstatus_base.pngbin1339 -> 1975 bytes
-rw-r--r--data/elementary/themes/img/netstatus_over.pngbin1101 -> 180 bytes
-rw-r--r--data/elementary/themes/img/netstatus_rx.pngbin1196 -> 1116 bytes
-rw-r--r--data/elementary/themes/img/netstatus_tx.pngbin1304 -> 1150 bytes
5 files changed, 10 insertions, 34 deletions
diff --git a/data/elementary/themes/edc/netstatus.edc b/data/elementary/themes/edc/netstatus.edc
index 88d8040bc7..53eecc218d 100644
--- a/data/elementary/themes/edc/netstatus.edc
+++ b/data/elementary/themes/edc/netstatus.edc
@@ -14,15 +14,17 @@ 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 Float:val = rxper / 100.0; 17 new val = rxper + 155;
18 custom_state(PART:"rx_clip", "default", 0.0); 18 if (val == 155) val = 0;
19 set_state_val(PART:"rx_clip", STATE_REL1, 0.0, 1.0 - val); 19 custom_state(PART:"rx", "default", 0.0);
20 set_state(PART:"rx_clip", "custom", 0.0); 20 set_state_val(PART:"rx", STATE_COLOR, 255, 255, 255, val);
21 set_state(PART:"rx", "custom", 0.0);
21 22
22 val = txper / 100.0; 23 val = txper + 155;
23 custom_state(PART:"tx_clip", "default", 0.0); 24 if (val == 155) val = 0;
24 set_state_val(PART:"tx_clip", STATE_REL1, 0.0, 1.0 - val); 25 custom_state(PART:"tx", "default", 0.0);
25 set_state(PART:"tx_clip", "custom", 0.0); 26 set_state_val(PART:"tx", STATE_COLOR, 255, 255, 255, val);
27 set_state(PART:"tx", "custom", 0.0);
26 } 28 }
27 } 29 }
28 } 30 }
@@ -34,40 +36,14 @@ group { name: "e/gadget/netstatus/main";
34 image.normal: "netstatus_base.png"; 36 image.normal: "netstatus_base.png";
35 } 37 }
36 } 38 }
37 part { name: "rx_spacer"; type: SPACER;
38 description { state: "default" 0.0;
39 rel1.relative: 0.32 0.33;
40 rel2.relative: 0.98 0.78;
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 }
49 part { name: "rx"; type: IMAGE; 39 part { name: "rx"; type: IMAGE;
50 clip_to: "rx_clip";
51 description { state: "default" 0.0; 40 description { state: "default" 0.0;
52 rel1.to: "base"; 41 rel1.to: "base";
53 rel2.to: "base"; 42 rel2.to: "base";
54 image.normal: "netstatus_rx.png"; 43 image.normal: "netstatus_rx.png";
55 } 44 }
56 } 45 }
57 part { name: "tx_spacer"; type: SPACER;
58 description { state: "default" 0.0;
59 rel1.relative: 0.04 0.08;
60 rel2.relative: 0.68 0.50;
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 }
68 }
69 part { name: "tx"; type: IMAGE; 46 part { name: "tx"; type: IMAGE;
70 clip_to: "tx_clip";
71 description { state: "default" 0.0; 47 description { state: "default" 0.0;
72 rel1.to: "base"; 48 rel1.to: "base";
73 rel2.to: "base"; 49 rel2.to: "base";
diff --git a/data/elementary/themes/img/netstatus_base.png b/data/elementary/themes/img/netstatus_base.png
index 9c2c55f837..cdc8e20137 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 62d5dcf10c..fdd2f9d900 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 2877ff69af..1fa2655a32 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 1387226652..ef23e11f35 100644
--- a/data/elementary/themes/img/netstatus_tx.png
+++ b/data/elementary/themes/img/netstatus_tx.png
Binary files differ