Skip to content

Commit

Permalink
fix: Use live mode instead of arg #67
Browse files Browse the repository at this point in the history
  • Loading branch information
lo5 committed Aug 8, 2022
1 parent 5e07fdb commit fc69ffe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/theming.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ sample_text = f'## {lorem()}\n### {lorem()}\n{lorem(5)}\n### {lorem()}\n{lorem(5
mode = modes[0]
while True:
mode = view(
box('Mode', mode='menu', options=modes, value=mode, live=True),
box('Mode', mode='live menu', options=modes, value=mode),
sample_text,
style='p-4'
)
Expand Down Expand Up @@ -201,7 +201,7 @@ dark_mode = False
while True:
response = view(
row(
box('Accent color', mode='menu', value=accent, options=accents, live=True),
box('Accent color', mode='live menu', value=accent, options=accents),
box('Dark Mode', mode='toggle', value=dark_mode),
style='items-end'
),
Expand Down
4 changes: 2 additions & 2 deletions py/pkg/docs/theming.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def theme_prose_modes(view: View): # height 5
mode = modes[0]
while True:
mode = view(
box('Mode', mode='menu', options=modes, value=mode, live=True),
box('Mode', mode='live menu', options=modes, value=mode),
sample_text,
style='p-4'
)
Expand Down Expand Up @@ -190,7 +190,7 @@ def theme_samples(view: View): # height 11
while True:
response = view(
row(
box('Accent color', mode='menu', value=accent, options=accents, live=True),
box('Accent color', mode='live menu', value=accent, options=accents),
box('Dark Mode', mode='toggle', value=dark_mode),
style='items-end'
),
Expand Down

0 comments on commit fc69ffe

Please sign in to comment.