Update app.py
Browse files
app.py
CHANGED
|
@@ -360,20 +360,23 @@ def apply_update(
|
|
| 360 |
preview = json.dumps(get_student(student_id) or {}, ensure_ascii=False, indent=2)
|
| 361 |
return msg, preview
|
| 362 |
|
| 363 |
-
|
| 364 |
# -----------------------------
|
| 365 |
-
# UI
|
| 366 |
# -----------------------------
|
| 367 |
-
THEME = gr.themes.Soft(
|
| 368 |
-
|
| 369 |
-
|
| 370 |
-
|
| 371 |
-
block_title_text_color="#e8eaf6",
|
| 372 |
body_background_fill="#0b0e1a",
|
| 373 |
body_text_color="#e0e0e0",
|
|
|
|
|
|
|
|
|
|
| 374 |
input_background_fill="#14182b",
|
| 375 |
input_border_color="#2a2f4a",
|
| 376 |
input_text_color="#e0e0e0",
|
|
|
|
|
|
|
| 377 |
)
|
| 378 |
|
| 379 |
with gr.Blocks(theme=THEME, css="""
|
|
|
|
| 360 |
preview = json.dumps(get_student(student_id) or {}, ensure_ascii=False, indent=2)
|
| 361 |
return msg, preview
|
| 362 |
|
|
|
|
| 363 |
# -----------------------------
|
| 364 |
+
# UI Theme
|
| 365 |
# -----------------------------
|
| 366 |
+
THEME = gr.themes.Soft(
|
| 367 |
+
primary_hue="indigo",
|
| 368 |
+
secondary_hue="cyan"
|
| 369 |
+
).set(
|
|
|
|
| 370 |
body_background_fill="#0b0e1a",
|
| 371 |
body_text_color="#e0e0e0",
|
| 372 |
+
block_background_fill="#0f1220",
|
| 373 |
+
block_border_color="#2a2f4a",
|
| 374 |
+
block_label_text_color="#e8eaf6",
|
| 375 |
input_background_fill="#14182b",
|
| 376 |
input_border_color="#2a2f4a",
|
| 377 |
input_text_color="#e0e0e0",
|
| 378 |
+
button_primary_background_fill="linear-gradient(90deg, #6C63FF, #00BCD4)",
|
| 379 |
+
button_primary_text_color="#ffffff",
|
| 380 |
)
|
| 381 |
|
| 382 |
with gr.Blocks(theme=THEME, css="""
|