Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,39 +83,6 @@ apple_theme = AppleStyleTheme()
|
|
| 83 |
# 2. CUSTOM CSS FOR DARK MODE FIXES
|
| 84 |
# This CSS targets the HTML elements specifically when Gradio is in "dark" mode.
|
| 85 |
custom_css = """
|
| 86 |
-
.gradio-container {
|
| 87 |
-
max-width: 1120px !important;
|
| 88 |
-
margin: 0 auto !important;
|
| 89 |
-
}
|
| 90 |
-
|
| 91 |
-
body {
|
| 92 |
-
background-color: #F5F5F7;
|
| 93 |
-
}
|
| 94 |
-
|
| 95 |
-
.dark body,
|
| 96 |
-
.dark .gradio-container {
|
| 97 |
-
background-color: #000000 !important;
|
| 98 |
-
}
|
| 99 |
-
|
| 100 |
-
.dark .block,
|
| 101 |
-
.dark .panel,
|
| 102 |
-
.dark .gradio-block,
|
| 103 |
-
.dark .gr-box,
|
| 104 |
-
.dark .gr-panel {
|
| 105 |
-
background-color: #1C1C1E !important;
|
| 106 |
-
border-color: #2C2C2E !important;
|
| 107 |
-
box-shadow: none !important;
|
| 108 |
-
}
|
| 109 |
-
|
| 110 |
-
.dark input,
|
| 111 |
-
.dark textarea,
|
| 112 |
-
.dark .gr-input,
|
| 113 |
-
.dark .gradio-textbox,
|
| 114 |
-
.dark .gradio-dropdown {
|
| 115 |
-
background-color: #2C2C2E !important;
|
| 116 |
-
color: #F5F5F7 !important;
|
| 117 |
-
border-color: #3A3A3C !important;
|
| 118 |
-
}
|
| 119 |
|
| 120 |
.dark #app-title {
|
| 121 |
color: #F5F5F7 !important;
|
|
@@ -123,18 +90,18 @@ body {
|
|
| 123 |
.dark #app-subtitle {
|
| 124 |
color: #A1A1A6 !important;
|
| 125 |
}
|
| 126 |
-
.dark label,
|
| 127 |
-
.dark .gradio-label,
|
| 128 |
-
.dark .gradio-markdown {
|
| 129 |
-
color: #F5F5F7 !important;
|
| 130 |
-
}
|
| 131 |
|
| 132 |
-
|
| 133 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 134 |
}
|
|
|
|
|
|
|
| 135 |
|
| 136 |
-
.dark button {
|
| 137 |
-
border-radius: 999px !important;
|
| 138 |
}
|
| 139 |
|
| 140 |
"""
|
|
|
|
| 83 |
# 2. CUSTOM CSS FOR DARK MODE FIXES
|
| 84 |
# This CSS targets the HTML elements specifically when Gradio is in "dark" mode.
|
| 85 |
custom_css = """
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
.dark #app-title {
|
| 88 |
color: #F5F5F7 !important;
|
|
|
|
| 90 |
.dark #app-subtitle {
|
| 91 |
color: #A1A1A6 !important;
|
| 92 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
+
/* Dark mode adjustments for the custom theme colors */
|
| 95 |
+
.dark .gradio-container {
|
| 96 |
+
background-color: #000000 !important;
|
| 97 |
+
}
|
| 98 |
+
.dark .block.panel {
|
| 99 |
+
background-color: #1C1C1E !important; /* Apple Dark Mode Gray */
|
| 100 |
+
border-color: #2C2C2E !important;
|
| 101 |
}
|
| 102 |
+
.dark input, .dark textarea, .dark .gr-input {
|
| 103 |
+
background-color: #2C2C2E !important;
|
| 104 |
|
|
|
|
|
|
|
| 105 |
}
|
| 106 |
|
| 107 |
"""
|