Lazarus commited on
Commit
b43a58a
1 Parent(s): 7eb6094

test theme change

Browse files
Files changed (2) hide show
  1. app.py +8 -2
  2. styles.css +7 -1
app.py CHANGED
@@ -68,8 +68,14 @@ def convert(file: _TemporaryFileWrapper, container_format: str, new_state: str):
68
  return [output_file, output_file, output_file, ffmpeg_wo.cmd, new_state]
69
 
70
 
 
 
 
 
 
 
71
  with gr.Blocks(
72
- css="./styles.css",
73
  theme=gr.themes.Soft(
74
  primary_hue=gr.themes.colors.green,
75
  secondary_hue=gr.themes.colors.amber,
@@ -78,7 +84,7 @@ with gr.Blocks(
78
  # font=["ui-sans-serif", "system-ui", "sans-serif"],
79
  ),
80
  ) as demo:
81
- with gr.Tabs(selected="format"):
82
  with gr.Tab("Format", id="format"):
83
  # Input Buttons
84
  with gr.Row():
 
68
  return [output_file, output_file, output_file, ffmpeg_wo.cmd, new_state]
69
 
70
 
71
+ css = """
72
+ body {
73
+ background: var(--body-background-fill);
74
+ }
75
+ """
76
+
77
  with gr.Blocks(
78
+ css=css,
79
  theme=gr.themes.Soft(
80
  primary_hue=gr.themes.colors.green,
81
  secondary_hue=gr.themes.colors.amber,
 
84
  # font=["ui-sans-serif", "system-ui", "sans-serif"],
85
  ),
86
  ) as demo:
87
+ with gr.Tabs(selected="format", elem_classes="tabs"):
88
  with gr.Tab("Format", id="format"):
89
  # Input Buttons
90
  with gr.Row():
styles.css CHANGED
@@ -1,9 +1,15 @@
1
  #outputtext {
2
  color: green;
3
  }
 
4
  #acontrast {
5
  width: 50%;
6
  }
7
- #button{
 
8
  width: 30%
 
 
 
 
9
  }
 
1
  #outputtext {
2
  color: green;
3
  }
4
+
5
  #acontrast {
6
  width: 50%;
7
  }
8
+
9
+ #button {
10
  width: 30%
11
+ }
12
+
13
+ body {
14
+ background: var(--body-background-fill);
15
  }