@@ -67,7 +67,7 @@ def prompt_input() -> rx.Component:
6767 color = rx .color ("gray" , 10 ),
6868 cursor = "pointer" ,
6969 _hover = {"opacity" : "0.8" },
70- on_click = OptionsState .setvar ( "prompt" , "" ),
70+ on_click = OptionsState .set_prompt ( "" ),
7171 ),
7272 ),
7373 rx .tooltip (
@@ -252,7 +252,7 @@ def _style_preview(style_preset: list) -> rx.Component:
252252 height = "auto" ,
253253 cursor = "pointer" ,
254254 background = rx .color ("accent" , 9 ),
255- on_click = OptionsState .setvar ( "selected_style" , "" ),
255+ on_click = OptionsState .set_selected_style ( "" ),
256256 ),
257257 content = style_preset [0 ],
258258 ),
@@ -270,7 +270,7 @@ def _style_preview(style_preset: list) -> rx.Component:
270270 height = "auto" ,
271271 cursor = "pointer" ,
272272 background = rx .color ("accent" , 9 ),
273- on_click = OptionsState .setvar ( "selected_style" , style_preset [0 ]),
273+ on_click = OptionsState .set_selected_style ( style_preset [0 ]),
274274 ),
275275 content = style_preset [0 ],
276276 ),
@@ -293,7 +293,7 @@ def style_selector() -> rx.Component:
293293 color = rx .color ("gray" , 10 ),
294294 cursor = "pointer" ,
295295 _hover = {"opacity" : "0.8" },
296- on_click = OptionsState .setvar ( "selected_style" , "" ),
296+ on_click = OptionsState .set_selected_style ( "" ),
297297 ),
298298 spacing = "4" ,
299299 align = "center" ,
@@ -345,7 +345,7 @@ def _negative_prompt() -> rx.Component:
345345 color = rx .color ("gray" , 10 ),
346346 cursor = "pointer" ,
347347 _hover = {"opacity" : "0.8" },
348- on_click = OptionsState .setvar ( "negative_prompt" , "" ),
348+ on_click = OptionsState .set_negative_prompt ( "" ),
349349 ),
350350 ),
351351 spacing = "4" ,
@@ -382,7 +382,7 @@ def _seed_input() -> rx.Component:
382382 color = rx .color ("gray" , 10 ),
383383 cursor = "pointer" ,
384384 _hover = {"opacity" : "0.8" },
385- on_click = OptionsState .setvar ( "seed" , 0 ),
385+ on_click = OptionsState .set_seed ( "0" ),
386386 ),
387387 ),
388388 spacing = "4" ,
@@ -545,7 +545,7 @@ def advanced_options() -> rx.Component:
545545 width = "100%" ,
546546 cursor = "pointer" ,
547547 _hover = {"opacity" : "0.8" },
548- on_click = OptionsState .setvar ( "advanced_options_open" , False ),
548+ on_click = OptionsState .set_advanced_options_open ( False ),
549549 ),
550550 rx .hstack (
551551 rx .icon (
@@ -559,7 +559,7 @@ def advanced_options() -> rx.Component:
559559 width = "100%" ,
560560 cursor = "pointer" ,
561561 _hover = {"opacity" : "0.8" },
562- on_click = OptionsState .setvar ( "advanced_options_open" , True ),
562+ on_click = OptionsState .set_advanced_options_open ( True ),
563563 ),
564564 ),
565565 rx .cond (
0 commit comments