AlexanderSvarfdal commited on
Commit
aba8231
·
1 Parent(s): 55d2bae

added icons

Browse files
Files changed (1) hide show
  1. app/app.py +12 -12
app/app.py CHANGED
@@ -75,42 +75,42 @@ with ui.layout_columns(col_widths=[8, 4]):
75
 
76
  with ui.layout_column_wrap(width="450px"):
77
  with ui.layout_columns(col_widths=(6, 6)):
78
- with ui.value_box(theme="bg-gradient-red-yellow"):
79
  "Red line"
80
  @render.text
81
  def render_line_score():
82
- return str(lineScore().get("red", 0))
83
 
84
- with ui.value_box(theme="bg-gradient-blue-cyan"):
85
 
86
  "Blue line"
87
  @render.text
88
  def render_line_score1():
89
- return str(lineScore().get("blue", 0))
90
 
91
- with ui.value_box(theme="bg-gradient-orange-yellow"):
92
  "Orange line"
93
  @render.text
94
  def render_line_score2():
95
- return str(lineScore().get("orange", 0))
96
 
97
- with ui.value_box(theme="bg-gradient-indigo-purple"):
98
  "Purple line"
99
  @render.text
100
  def render_line_score3():
101
- return str(lineScore().get("purple", 0))
102
 
103
- with ui.value_box(theme="bg-gradient-green-teal"):
104
  "Green line"
105
  @render.text
106
  def render_line_score4():
107
- return str(lineScore().get("green", 0))
108
 
109
  with ui.value_box():
110
  "Total score"
111
  @render.text
112
  def render_line_score5():
113
- return str(sum(lineScore().get(color, 0) for color in ["red", "blue", "orange", "purple", "green"]))
114
 
115
 
116
  with ui.card(min_height="600px"):
@@ -332,7 +332,7 @@ def _():
332
  circle.radius = rad - smallerRad
333
  circle.color = c
334
  circle.fill_opacity = 0.1
335
- circle.name = i
336
  circles.append(circle)
337
  smallerRad =+ 50
338
  else:
 
75
 
76
  with ui.layout_column_wrap(width="450px"):
77
  with ui.layout_columns(col_widths=(6, 6)):
78
+ with ui.value_box(theme="bg-gradient-red-yellow", showcase=fa.icon_svg("bus", width="50px"),):
79
  "Red line"
80
  @render.text
81
  def render_line_score():
82
+ return str(int(lineScore().get("red", 0)))
83
 
84
+ with ui.value_box(theme="bg-gradient-blue-cyan",showcase=fa.icon_svg("bus", width="50px"),):
85
 
86
  "Blue line"
87
  @render.text
88
  def render_line_score1():
89
+ return str(int(lineScore().get("blue", 0)))
90
 
91
+ with ui.value_box(theme="bg-gradient-orange-yellow",showcase=fa.icon_svg("bus", width="50px"),):
92
  "Orange line"
93
  @render.text
94
  def render_line_score2():
95
+ return str(int(lineScore().get("orange", 0)))
96
 
97
+ with ui.value_box(theme="bg-gradient-indigo-purple",showcase=fa.icon_svg("bus", width="50px"),):
98
  "Purple line"
99
  @render.text
100
  def render_line_score3():
101
+ return str(int(lineScore().get("purple", 0)))
102
 
103
+ with ui.value_box(theme="bg-gradient-green-teal",showcase=fa.icon_svg("bus", width="50px"),):
104
  "Green line"
105
  @render.text
106
  def render_line_score4():
107
+ return str(int(lineScore().get("green", 0)))
108
 
109
  with ui.value_box():
110
  "Total score"
111
  @render.text
112
  def render_line_score5():
113
+ return str(int(sum(lineScore().get(color, 0) for color in ["red", "blue", "orange", "purple", "green"])))
114
 
115
 
116
  with ui.card(min_height="600px"):
 
332
  circle.radius = rad - smallerRad
333
  circle.color = c
334
  circle.fill_opacity = 0.1
335
+ circle.name = str(i)
336
  circles.append(circle)
337
  smallerRad =+ 50
338
  else: