Skip to content

Commit

Permalink
Rework network item status icons
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Mar 22, 2016
1 parent e8a7786 commit 764ee23
Showing 1 changed file with 34 additions and 13 deletions.
47 changes: 34 additions & 13 deletions glwskins/flat/items/list/network.view
Original file line number Diff line number Diff line change
Expand Up @@ -24,24 +24,45 @@ widget(container_z, {
style: "ListItemIcon";
});

widget(icon, {
color: select(isFocused(), 1.0, 0.6);
source: translate($self.metadata.state,
"",
"failure", "dataroot:https://res/svg/Alert.svg",
"association", "dataroot:https://res/svg/Radio.svg",
"configuration", "dataroot:https://res/svg/Trafic.svg",
"ready", "dataroot:https://res/svg/Link.svg",
"disconnect", "dataroot:https://res/svg/Out.svg",
"online", "dataroot:https://res/svg/Check.svg"
);
size: 2em;
widget(deck, {
space(1);
width: 3em;
widget(container_y, {
padding: [0, 0.25em];
widget(throbber, {
color: select(isFocused(), 1.0, 0.6);
});
});

widget(icon, {
color: select(isFocused(), 1.0, 0.6);
source: "skin:https://icons/ic_check_48px.svg";
});

widget(icon, {
color: select(isFocused(), 1.0, 0.6);
source: "skin:https://icons/ic_check_box_48px.svg";
});

widget(icon, {
color: select(isFocused(), 1.0, 0.6);
source: "skin:https://icons/ic_error_48px.svg";
});

page: translate($self.metadata.state,
0,
"failure", 4,
"association", 1,
"configuration", 1,
"ready", 2,
"disconnect", 4,
"online", 3
);
});

widget(label, {
filterConstraintX: true;
color: select(isFocused(), 1.0, 0.6);

caption: $self.metadata.title;
sizeScale: 1.2;
});
Expand Down

0 comments on commit 764ee23

Please sign in to comment.