Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -51,48 +51,41 @@ else: IMAGE_PROVIDERS["No Image Providers Configured"] = "none"; UI_DEFAULT_IMAG
|
|
51 |
# ... (other imports and initializations) ...
|
52 |
|
53 |
# --- Gradio UI Theme and CSS for DARK MODE ---
|
54 |
-
#
|
55 |
-
|
|
|
|
|
|
|
|
|
56 |
font=[gr.themes.GoogleFont("Lexend Deca"), "ui-sans-serif", "system-ui", "sans-serif"],
|
57 |
primary_hue=gr.themes.colors.purple,
|
58 |
secondary_hue=gr.themes.colors.pink,
|
59 |
-
neutral_hue=gr.themes.colors.slate
|
60 |
).set(
|
61 |
-
#
|
62 |
-
|
63 |
-
block_background_fill="#1A1A2E", # Darker panel background
|
64 |
block_border_width="1px",
|
65 |
-
block_border_color="#2A2A4A",
|
66 |
-
block_label_background_fill="#2A2A4A",
|
67 |
-
# block_label_text_color is usually inherited or set by primary/secondary text colors of the theme
|
68 |
|
69 |
-
input_background_fill="#2A2A4A",
|
70 |
-
input_border_color="#4A4A6A",
|
71 |
-
# input_text_color is often controlled by text_color_primary or inherited.
|
72 |
-
# We will control text colors more with CSS if needed.
|
73 |
|
74 |
button_primary_background_fill="linear-gradient(135deg, #7F00FF 0%, #E100FF 100%)",
|
75 |
-
button_primary_text_color="white",
|
76 |
button_secondary_background_fill="#4A4A6A",
|
77 |
-
button_secondary_text_color="#E0E0FF",
|
78 |
-
|
79 |
-
slider_color="#A020F0", # Color for the slider itself (track/thumb)
|
80 |
-
# slider_color_accent was likely an old or incorrect name. `slider_color` is more common.
|
81 |
|
82 |
-
#
|
83 |
-
# table_even_background_fill="#1A1A2E", # If these are valid, keep them
|
84 |
-
# table_odd_background_fill="#23233A",
|
85 |
-
# table_border_color="#2A2A4A",
|
86 |
|
87 |
-
#
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
text_color_ ሴትምስs="#A020F0", # For links or specific highlights
|
92 |
-
# panel_background_fill is often the same as block_background_fill
|
93 |
)
|
94 |
|
95 |
-
#
|
|
|
96 |
# on various components if the theme variables don't cover everything.
|
97 |
# Your existing omega_css already sets:
|
98 |
# body, .gradio-container { color: #D0D0E0 !important; }
|
|
|
51 |
# ... (other imports and initializations) ...
|
52 |
|
53 |
# --- Gradio UI Theme and CSS for DARK MODE ---
|
54 |
+
# algoforge_prime/app.py
|
55 |
+
|
56 |
+
# ... (other imports and initializations) ...
|
57 |
+
|
58 |
+
# --- Gradio UI Theme and CSS for DARK MODE ---
|
59 |
+
omega_theme = gr.themes.Base(
|
60 |
font=[gr.themes.GoogleFont("Lexend Deca"), "ui-sans-serif", "system-ui", "sans-serif"],
|
61 |
primary_hue=gr.themes.colors.purple,
|
62 |
secondary_hue=gr.themes.colors.pink,
|
63 |
+
neutral_hue=gr.themes.colors.slate
|
64 |
).set(
|
65 |
+
body_background_fill="#0F0F1A",
|
66 |
+
block_background_fill="#1A1A2E",
|
|
|
67 |
block_border_width="1px",
|
68 |
+
block_border_color="#2A2A4A",
|
69 |
+
block_label_background_fill="#2A2A4A",
|
|
|
70 |
|
71 |
+
input_background_fill="#2A2A4A",
|
72 |
+
input_border_color="#4A4A6A",
|
|
|
|
|
73 |
|
74 |
button_primary_background_fill="linear-gradient(135deg, #7F00FF 0%, #E100FF 100%)",
|
75 |
+
button_primary_text_color="white",
|
76 |
button_secondary_background_fill="#4A4A6A",
|
77 |
+
button_secondary_text_color="#E0E0FF",
|
|
|
|
|
|
|
78 |
|
79 |
+
slider_color="#A020F0",
|
|
|
|
|
|
|
80 |
|
81 |
+
text_color_primary="#E0E0FF",
|
82 |
+
text_color_secondary="#B0B0D0",
|
83 |
+
text_color_accent="#A020F0",
|
84 |
+
text_color_link="#A020F0", # CORRECTED: Was text_color_ ሴትምስs
|
|
|
|
|
85 |
)
|
86 |
|
87 |
+
# ... (rest of your omega_css definition) ...
|
88 |
+
# ... (rest of your app.py) ...
|
89 |
# on various components if the theme variables don't cover everything.
|
90 |
# Your existing omega_css already sets:
|
91 |
# body, .gradio-container { color: #D0D0E0 !important; }
|