diff options
author | Stephen 'Okra' Houston <smhouston88@gmail.com> | 2017-08-22 20:44:14 -0500 |
---|---|---|
committer | Stephen 'Okra' Houston <smhouston88@gmail.com> | 2017-08-22 20:44:53 -0500 |
commit | fa1842370be003a246fe0d9f09fe6aa560714f3a (patch) | |
tree | 33c8717e76fde176863ef22f3649c5a4b7a260fd /data/elementary | |
parent | a7649a7897218f3d66d72c15851aa566f00ca1f7 (diff) | |
download | efl-fa1842370be003a246fe0d9f09fe6aa560714f3a.tar.gz |
Netstatus: Use arrows for up and down net traffic indicators.
Diffstat (limited to 'data/elementary')
-rw-r--r-- | data/elementary/themes/edc/netstatus.edc | 44 | ||||
-rw-r--r-- | data/elementary/themes/img/netstatus_base.png | bin | 1339 -> 1975 bytes | |||
-rw-r--r-- | data/elementary/themes/img/netstatus_over.png | bin | 1101 -> 180 bytes | |||
-rw-r--r-- | data/elementary/themes/img/netstatus_rx.png | bin | 1196 -> 1116 bytes | |||
-rw-r--r-- | data/elementary/themes/img/netstatus_tx.png | bin | 1304 -> 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"; new txper = getarg(6); // new txmax = getarg(7); - new Float:val = rxper / 100.0; - custom_state(PART:"rx_clip", "default", 0.0); - set_state_val(PART:"rx_clip", STATE_REL1, 0.0, 1.0 - val); - set_state(PART:"rx_clip", "custom", 0.0); + new val = rxper + 155; + if (val == 155) val = 0; + custom_state(PART:"rx", "default", 0.0); + set_state_val(PART:"rx", STATE_COLOR, 255, 255, 255, val); + set_state(PART:"rx", "custom", 0.0); - val = txper / 100.0; - custom_state(PART:"tx_clip", "default", 0.0); - set_state_val(PART:"tx_clip", STATE_REL1, 0.0, 1.0 - val); - set_state(PART:"tx_clip", "custom", 0.0); + val = txper + 155; + if (val == 155) val = 0; + custom_state(PART:"tx", "default", 0.0); + set_state_val(PART:"tx", STATE_COLOR, 255, 255, 255, val); + set_state(PART:"tx", "custom", 0.0); } } } @@ -34,40 +36,14 @@ group { name: "e/gadget/netstatus/main"; image.normal: "netstatus_base.png"; } } - part { name: "rx_spacer"; type: SPACER; - description { state: "default" 0.0; - rel1.relative: 0.32 0.33; - rel2.relative: 0.98 0.78; - } - } - part { name: "rx_clip"; type: RECT; - description { state: "default" 0.0; - rel1.to: "rx_spacer"; - rel2.to: "rx_spacer"; - } - } part { name: "rx"; type: IMAGE; - clip_to: "rx_clip"; description { state: "default" 0.0; rel1.to: "base"; rel2.to: "base"; image.normal: "netstatus_rx.png"; } } - part { name: "tx_spacer"; type: SPACER; - description { state: "default" 0.0; - rel1.relative: 0.04 0.08; - rel2.relative: 0.68 0.50; - } - } - part { name: "tx_clip"; type: RECT; - description { state: "default" 0.0; - rel1.to: "tx_spacer"; - rel2.to: "tx_spacer"; - } - } part { name: "tx"; type: IMAGE; - clip_to: "tx_clip"; description { state: "default" 0.0; rel1.to: "base"; rel2.to: "base"; diff --git a/data/elementary/themes/img/netstatus_base.png b/data/elementary/themes/img/netstatus_base.png Binary files differindex 9c2c55f837..cdc8e20137 100644 --- a/data/elementary/themes/img/netstatus_base.png +++ b/data/elementary/themes/img/netstatus_base.png diff --git a/data/elementary/themes/img/netstatus_over.png b/data/elementary/themes/img/netstatus_over.png Binary files differindex 62d5dcf10c..fdd2f9d900 100644 --- a/data/elementary/themes/img/netstatus_over.png +++ b/data/elementary/themes/img/netstatus_over.png diff --git a/data/elementary/themes/img/netstatus_rx.png b/data/elementary/themes/img/netstatus_rx.png Binary files differindex 2877ff69af..1fa2655a32 100644 --- a/data/elementary/themes/img/netstatus_rx.png +++ b/data/elementary/themes/img/netstatus_rx.png diff --git a/data/elementary/themes/img/netstatus_tx.png b/data/elementary/themes/img/netstatus_tx.png Binary files differindex 1387226652..ef23e11f35 100644 --- a/data/elementary/themes/img/netstatus_tx.png +++ b/data/elementary/themes/img/netstatus_tx.png |