Skip to content

Commit

Permalink
skin: Use tenary operator in some places
Browse files Browse the repository at this point in the history
  • Loading branch information
andoma committed Apr 14, 2017
1 parent 5e4d83d commit 1d4fa03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion glwskins/flat/pages/home.view
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ widget(container_z, {
alpha: iir(select($clone.showSidebar, 0.3, 1), 4);

margin: [$ui.xmargin, 0em];
childTilesX: select($ui.aspect > 1, 5, 2);

childTilesX: $ui.aspect > 1 ? 5 : 2;
childTilesY: 4;

style(ListItem, {
Expand Down
2 changes: 1 addition & 1 deletion glwskins/flat/theme.view
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@
zbox({
filterConstraintX: true;
label({
hidden: select($view.searchQuery, true, false);
hidden: $view.searchQuery ? true : false;
caption: TEXT;
size: 1.2em;
font: "skin:https://fonts/RobotoCondensed-Regular.ttf";
Expand Down

0 comments on commit 1d4fa03

Please sign in to comment.