Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -800,8 +800,6 @@ footer, .footer, #footer, .gradio-footer {
|
|
| 800 |
border: 1px solid rgba(255, 255, 255, 0.3) !important;
|
| 801 |
border-radius: 50px !important;
|
| 802 |
padding: 12px 24px !important;
|
| 803 |
-
color: white !important;
|
| 804 |
-
font-weight: 600 !important;
|
| 805 |
cursor: pointer;
|
| 806 |
transition: all var(--transition-fast) !important;
|
| 807 |
display: flex;
|
|
@@ -809,6 +807,19 @@ footer, .footer, #footer, .gradio-footer {
|
|
| 809 |
gap: 8px;
|
| 810 |
}
|
| 811 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 812 |
#theme-toggle-btn:hover {
|
| 813 |
background: rgba(255, 255, 255, 0.3) !important;
|
| 814 |
transform: scale(1.05);
|
|
@@ -1123,16 +1134,24 @@ footer, .footer, #footer, .gradio-footer {
|
|
| 1123 |
align-items: flex-start;
|
| 1124 |
gap: 12px;
|
| 1125 |
font-size: 13px;
|
| 1126 |
-
color: var(--text-secondary);
|
| 1127 |
line-height: 1.5;
|
| 1128 |
}
|
| 1129 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1130 |
.disclaimer svg {
|
| 1131 |
-
color: var(--accent-primary);
|
| 1132 |
flex-shrink: 0;
|
| 1133 |
margin-top: 2px;
|
| 1134 |
}
|
| 1135 |
|
|
|
|
| 1136 |
/* ========== BATCH RESULTS ========== */
|
| 1137 |
.batch-results {
|
| 1138 |
background: var(--bg-secondary);
|
|
@@ -1407,6 +1426,17 @@ footer, .footer, #footer, .gradio-footer {
|
|
| 1407 |
font-weight: 700;
|
| 1408 |
}
|
| 1409 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1410 |
/* ========== RESPONSIVE ========== */
|
| 1411 |
@media (max-width: 768px) {
|
| 1412 |
.header-top {
|
|
@@ -1472,6 +1502,17 @@ footer, .footer, #footer, .gradio-footer {
|
|
| 1472 |
background: var(--bg-secondary) !important;
|
| 1473 |
border-color: var(--border-color) !important;
|
| 1474 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1475 |
"""
|
| 1476 |
|
| 1477 |
JS = r"""
|
|
|
|
| 800 |
border: 1px solid rgba(255, 255, 255, 0.3) !important;
|
| 801 |
border-radius: 50px !important;
|
| 802 |
padding: 12px 24px !important;
|
|
|
|
|
|
|
| 803 |
cursor: pointer;
|
| 804 |
transition: all var(--transition-fast) !important;
|
| 805 |
display: flex;
|
|
|
|
| 807 |
gap: 8px;
|
| 808 |
}
|
| 809 |
|
| 810 |
+
/* Light theme: black text */
|
| 811 |
+
:root #theme-toggle-btn,
|
| 812 |
+
:root #theme-toggle-btn button {
|
| 813 |
+
color: #0f172a !important;
|
| 814 |
+
}
|
| 815 |
+
|
| 816 |
+
/* Dark theme: white text */
|
| 817 |
+
[data-theme="dark"] #theme-toggle-btn,
|
| 818 |
+
[data-theme="dark"] #theme-toggle-btn button {
|
| 819 |
+
color: #ffffff !important;
|
| 820 |
+
}
|
| 821 |
+
|
| 822 |
+
|
| 823 |
#theme-toggle-btn:hover {
|
| 824 |
background: rgba(255, 255, 255, 0.3) !important;
|
| 825 |
transform: scale(1.05);
|
|
|
|
| 1134 |
align-items: flex-start;
|
| 1135 |
gap: 12px;
|
| 1136 |
font-size: 13px;
|
| 1137 |
+
color: var(--text-secondary) !important;
|
| 1138 |
line-height: 1.5;
|
| 1139 |
}
|
| 1140 |
|
| 1141 |
+
/* Force disclaimer text to follow theme */
|
| 1142 |
+
[data-theme="dark"] .disclaimer,
|
| 1143 |
+
[data-theme="dark"] .disclaimer span {
|
| 1144 |
+
color: var(--text-secondary) !important;
|
| 1145 |
+
}
|
| 1146 |
+
|
| 1147 |
+
/* Keep icon accent color (don’t override in dark mode) */
|
| 1148 |
.disclaimer svg {
|
| 1149 |
+
color: var(--accent-primary) !important;
|
| 1150 |
flex-shrink: 0;
|
| 1151 |
margin-top: 2px;
|
| 1152 |
}
|
| 1153 |
|
| 1154 |
+
|
| 1155 |
/* ========== BATCH RESULTS ========== */
|
| 1156 |
.batch-results {
|
| 1157 |
background: var(--bg-secondary);
|
|
|
|
| 1426 |
font-weight: 700;
|
| 1427 |
}
|
| 1428 |
|
| 1429 |
+
/* Ensure info-box text follows theme */
|
| 1430 |
+
.info-box,
|
| 1431 |
+
.info-box * {
|
| 1432 |
+
color: var(--text-secondary) !important;
|
| 1433 |
+
}
|
| 1434 |
+
|
| 1435 |
+
/* Keep strong highlighted */
|
| 1436 |
+
.info-box strong {
|
| 1437 |
+
color: var(--accent-secondary) !important;
|
| 1438 |
+
}
|
| 1439 |
+
|
| 1440 |
/* ========== RESPONSIVE ========== */
|
| 1441 |
@media (max-width: 768px) {
|
| 1442 |
.header-top {
|
|
|
|
| 1502 |
background: var(--bg-secondary) !important;
|
| 1503 |
border-color: var(--border-color) !important;
|
| 1504 |
}
|
| 1505 |
+
|
| 1506 |
+
/* ==============================
|
| 1507 |
+
FORCE BUTTON TEXT COLORS
|
| 1508 |
+
============================== */
|
| 1509 |
+
#predict-btn button,
|
| 1510 |
+
#batch-btn button,
|
| 1511 |
+
#predict-btn button * ,
|
| 1512 |
+
#batch-btn button * {
|
| 1513 |
+
color: #ffffff !important;
|
| 1514 |
+
}
|
| 1515 |
+
|
| 1516 |
"""
|
| 1517 |
|
| 1518 |
JS = r"""
|