Richard commited on
Commit
c26e218
·
1 Parent(s): c17cea8

Update snackbar to dark mode

Browse files
Files changed (1) hide show
  1. components/snackbar.py +3 -3
components/snackbar.py CHANGED
@@ -54,7 +54,7 @@ def snackbar(
54
  with me.box(
55
  style=me.Style(
56
  align_items="center",
57
- background="#2f3033",
58
  border_radius=5,
59
  box_shadow=("0 3px 1px -2px #0003, 0 2px 2px #00000024, 0 1px 5px #0000001f"),
60
  display="flex",
@@ -67,10 +67,10 @@ def snackbar(
67
  width=300,
68
  )
69
  ):
70
- me.text(label, style=me.Style(color="#fcfcfc"))
71
  if action_label:
72
  me.button(
73
  action_label,
74
  on_click=on_click_action,
75
- style=me.Style(color="#d6e3fe"),
76
  )
 
54
  with me.box(
55
  style=me.Style(
56
  align_items="center",
57
+ background=me.theme_var("on-surface-variant"),
58
  border_radius=5,
59
  box_shadow=("0 3px 1px -2px #0003, 0 2px 2px #00000024, 0 1px 5px #0000001f"),
60
  display="flex",
 
67
  width=300,
68
  )
69
  ):
70
+ me.text(label, style=me.Style(color=me.theme_var("surface-container-lowest")))
71
  if action_label:
72
  me.button(
73
  action_label,
74
  on_click=on_click_action,
75
+ style=me.Style(color=me.theme_var("primary-container")),
76
  )