colooors
Browse files
app.py
CHANGED
|
@@ -68,57 +68,49 @@ def create_ui():
|
|
| 68 |
# Validation results
|
| 69 |
validation_results = gr.HTML(visible=False)
|
| 70 |
|
| 71 |
-
# Define CSS for the validation UI
|
| 72 |
gr.HTML("""
|
| 73 |
<style>
|
| 74 |
-
/*
|
| 75 |
.gradio-container *,
|
| 76 |
.gradio-container *::before,
|
| 77 |
.gradio-container *::after {
|
| 78 |
-
background-color:
|
| 79 |
}
|
| 80 |
|
| 81 |
-
/*
|
| 82 |
-
.
|
| 83 |
-
|
| 84 |
-
|
| 85 |
-
|
| 86 |
-
background-color: var(--background-fill-secondary, #f5f5f5) !important;
|
| 87 |
}
|
| 88 |
|
| 89 |
-
/*
|
| 90 |
-
.
|
| 91 |
-
background-color:
|
| 92 |
-
}
|
| 93 |
-
.dark .step-details {
|
| 94 |
-
background-color: var(--background-fill-primary, #1f1f1f) !important;
|
| 95 |
}
|
| 96 |
-
|
| 97 |
-
|
|
|
|
|
|
|
|
|
|
| 98 |
}
|
|
|
|
|
|
|
| 99 |
.status-success {
|
| 100 |
background-color: #4caf50 !important;
|
|
|
|
| 101 |
}
|
| 102 |
.status-error {
|
| 103 |
background-color: #f44336 !important;
|
|
|
|
| 104 |
}
|
| 105 |
.status-waiting {
|
| 106 |
background-color: #9e9e9e !important;
|
|
|
|
| 107 |
}
|
| 108 |
|
| 109 |
-
/*
|
| 110 |
-
.tabitem,
|
| 111 |
-
.tab-panel,
|
| 112 |
-
[data-testid="tabitem"],
|
| 113 |
-
[data-testid="tab-panel"] {
|
| 114 |
-
background-color: transparent !important;
|
| 115 |
-
}
|
| 116 |
-
|
| 117 |
-
/* Keep original styling for other elements */
|
| 118 |
-
.gradio-container {
|
| 119 |
-
max-width: 800px;
|
| 120 |
-
margin: 0 auto;
|
| 121 |
-
}
|
| 122 |
.validation-step {
|
| 123 |
margin-bottom: 15px;
|
| 124 |
border: 1px solid var(--border-color-primary, #e0e0e0);
|
|
@@ -127,6 +119,7 @@ def create_ui():
|
|
| 127 |
}
|
| 128 |
.step-header {
|
| 129 |
padding: 10px 15px;
|
|
|
|
| 130 |
display: flex;
|
| 131 |
align-items: center;
|
| 132 |
cursor: pointer;
|
|
@@ -145,26 +138,33 @@ def create_ui():
|
|
| 145 |
align-items: center;
|
| 146 |
justify-content: center;
|
| 147 |
font-weight: bold;
|
| 148 |
-
color: white !important;
|
| 149 |
font-size: 16px;
|
| 150 |
text-shadow: 0px 0px 1px rgba(0,0,0,0.5);
|
| 151 |
}
|
| 152 |
-
|
|
|
|
| 153 |
.progress-container {
|
| 154 |
min-height: 65px;
|
| 155 |
padding: 12px;
|
| 156 |
display: flex;
|
| 157 |
align-items: center;
|
| 158 |
margin-bottom: 10px;
|
|
|
|
|
|
|
|
|
|
| 159 |
}
|
| 160 |
.progress-status {
|
| 161 |
font-style: italic;
|
| 162 |
width: 100%;
|
| 163 |
}
|
| 164 |
-
|
| 165 |
-
|
| 166 |
-
|
| 167 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 168 |
}
|
| 169 |
.arrow-indicator {
|
| 170 |
margin-left: 10px;
|
|
@@ -174,9 +174,6 @@ def create_ui():
|
|
| 174 |
.arrow-down {
|
| 175 |
transform: rotate(90deg);
|
| 176 |
}
|
| 177 |
-
.step-details {
|
| 178 |
-
padding: 10px 15px;
|
| 179 |
-
}
|
| 180 |
</style>
|
| 181 |
""")
|
| 182 |
|
|
|
|
| 68 |
# Validation results
|
| 69 |
validation_results = gr.HTML(visible=False)
|
| 70 |
|
| 71 |
+
# Define CSS for the validation UI with better borders and readability
|
| 72 |
gr.HTML("""
|
| 73 |
<style>
|
| 74 |
+
/* Reset the overly aggressive transparency */
|
| 75 |
.gradio-container *,
|
| 76 |
.gradio-container *::before,
|
| 77 |
.gradio-container *::after {
|
| 78 |
+
background-color: initial; /* Remove the blanket transparency */
|
| 79 |
}
|
| 80 |
|
| 81 |
+
/* Make just the group containers transparent instead */
|
| 82 |
+
.gr-group {
|
| 83 |
+
background-color: transparent !important;
|
| 84 |
+
border: none !important;
|
| 85 |
+
box-shadow: none !important;
|
|
|
|
| 86 |
}
|
| 87 |
|
| 88 |
+
/* Fix tab container backgrounds */
|
| 89 |
+
.tabs > .tab-nav {
|
| 90 |
+
background-color: transparent !important;
|
|
|
|
|
|
|
|
|
|
| 91 |
}
|
| 92 |
+
|
| 93 |
+
/* Ensure buttons have proper backgrounds and text contrast */
|
| 94 |
+
.primary-button, [variant="primary"], button.primary {
|
| 95 |
+
background-color: var(--primary-500) !important;
|
| 96 |
+
color: white !important;
|
| 97 |
}
|
| 98 |
+
|
| 99 |
+
/* Status indicator styles */
|
| 100 |
.status-success {
|
| 101 |
background-color: #4caf50 !important;
|
| 102 |
+
color: white !important;
|
| 103 |
}
|
| 104 |
.status-error {
|
| 105 |
background-color: #f44336 !important;
|
| 106 |
+
color: white !important;
|
| 107 |
}
|
| 108 |
.status-waiting {
|
| 109 |
background-color: #9e9e9e !important;
|
| 110 |
+
color: white !important;
|
| 111 |
}
|
| 112 |
|
| 113 |
+
/* Validation section styling */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
.validation-step {
|
| 115 |
margin-bottom: 15px;
|
| 116 |
border: 1px solid var(--border-color-primary, #e0e0e0);
|
|
|
|
| 119 |
}
|
| 120 |
.step-header {
|
| 121 |
padding: 10px 15px;
|
| 122 |
+
background-color: var(--background-fill-secondary, #f5f5f5) !important;
|
| 123 |
display: flex;
|
| 124 |
align-items: center;
|
| 125 |
cursor: pointer;
|
|
|
|
| 138 |
align-items: center;
|
| 139 |
justify-content: center;
|
| 140 |
font-weight: bold;
|
|
|
|
| 141 |
font-size: 16px;
|
| 142 |
text-shadow: 0px 0px 1px rgba(0,0,0,0.5);
|
| 143 |
}
|
| 144 |
+
|
| 145 |
+
/* Progress status container with border */
|
| 146 |
.progress-container {
|
| 147 |
min-height: 65px;
|
| 148 |
padding: 12px;
|
| 149 |
display: flex;
|
| 150 |
align-items: center;
|
| 151 |
margin-bottom: 10px;
|
| 152 |
+
border: 1px solid var(--border-color-primary, #e0e0e0);
|
| 153 |
+
border-radius: 8px;
|
| 154 |
+
background-color: var(--background-fill-primary) !important;
|
| 155 |
}
|
| 156 |
.progress-status {
|
| 157 |
font-style: italic;
|
| 158 |
width: 100%;
|
| 159 |
}
|
| 160 |
+
|
| 161 |
+
/* Fix other UI elements */
|
| 162 |
+
.dark .step-header {
|
| 163 |
+
background-color: var(--background-fill-secondary, #2e2e2e) !important;
|
| 164 |
+
}
|
| 165 |
+
.step-details {
|
| 166 |
+
padding: 10px 15px;
|
| 167 |
+
background-color: var(--background-fill-primary) !important;
|
| 168 |
}
|
| 169 |
.arrow-indicator {
|
| 170 |
margin-left: 10px;
|
|
|
|
| 174 |
.arrow-down {
|
| 175 |
transform: rotate(90deg);
|
| 176 |
}
|
|
|
|
|
|
|
|
|
|
| 177 |
</style>
|
| 178 |
""")
|
| 179 |
|