Janec09 commited on
Commit
2dbc7dd
·
verified ·
1 Parent(s): 11c14b1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -20,19 +20,19 @@ with gr.Blocks(
20
  secondary_hue="fuchsia",
21
  neutral_hue="gray",
22
  text_size="lg"
23
- ).set(
24
- background_fill_primary='*neutral_500',
25
- background_fill_primary='*secondary_200',
26
- background_fill_secondary='neutral_100',
27
- background_fill_secondary_dark='neutral_200',
28
- border_color_accent='*secondary_400',
29
- border_color_accent_dark='*secondary_200',
30
- color_accent='*secondary_600',
31
- color_accent_soft='*secondary_200',
32
- color_accent_soft_dark='*neutral_800',
33
- button_primary_background_fill='*secondary_500',
34
- button_primary_background_fill_dark='*secondary_500'
35
- )
36
 
37
  ) as demo: # This is the correct place for 'as demo'
38
 
 
20
  secondary_hue="fuchsia",
21
  neutral_hue="gray",
22
  text_size="lg"
23
+ .set(
24
+ background_fill_primary='*neutral_200',
25
+ background_fill_primary_dark='gray', # 👈 This sets the background in dark mode to gray
26
+ background_fill_secondary='neutral_100',
27
+ background_fill_secondary_dark='gray', # 👈 Optional: also make containers gray in dark mode
28
+ border_color_accent='*secondary_400',
29
+ border_color_accent_dark='*secondary_800',
30
+ color_accent='*secondary_600',
31
+ color_accent_soft='*secondary_200',
32
+ color_accent_soft_dark='*secondary_400',
33
+ button_primary_background_fill='*secondary_500',
34
+ button_primary_background_fill_dark='*secondary_600'
35
+ )
36
 
37
  ) as demo: # This is the correct place for 'as demo'
38