broadfield-dev commited on
Commit
b9bd3a6
·
verified ·
1 Parent(s): 16a142b

Update gradio_keylock/component.py

Browse files
Files changed (1) hide show
  1. gradio_keylock/component.py +12 -7
gradio_keylock/component.py CHANGED
@@ -194,26 +194,25 @@ class KeylockDecoderComponent:
194
  font-size: 24px;
195
  font-weight: 600;
196
  margin: 0;
 
197
 
198
  }
199
  #image-upload-box {
200
- background-color: var(--primary-800) !important;
201
- color: var(--primary-100) !important;
202
- border-color: var(--primary-100) !important;
203
  border: 2px dashed #30363d !important;
204
  border-radius: 8px !important;
205
  min-height: 220px;
206
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
207
  }
208
  #image-upload-box:hover {
209
- background-color: var(--primary-100) !important;
210
- color: var(--primary-800) !important;
211
- border-color: var(--primary-800) !important;
212
  }
213
  #image-upload-box .!h-full.w-full > div:first-of-type {
214
  display: flex;
215
  align-items: center;
216
  justify-content: center;
 
217
  }
218
  #status-display {
219
  text-align: center;
@@ -221,6 +220,7 @@ class KeylockDecoderComponent:
221
  border-radius: 6px;
222
  margin-top: 1rem;
223
  min-height: 50px;
 
224
  border: 1px solid #30363d;
225
  transition: all 0.3s ease;
226
  }
@@ -231,16 +231,21 @@ class KeylockDecoderComponent:
231
  text-align: left;
232
  }
233
  #status-display li {
 
234
  padding: 0.5rem;
235
  margin-top: 0.5rem;
236
  border-radius: 4px;
237
  border: 1px solid #30363d;
238
  }
239
  .tool-accordion {
 
 
240
  border-radius: 8px !important;
241
  margin-top: 1.5rem;
242
  }
243
-
 
 
244
  """
245
 
246
  def _handle_login_attempt(self, image_input: Image.Image):
 
194
  font-size: 24px;
195
  font-weight: 600;
196
  margin: 0;
197
+ color: var(--primary-100);
198
 
199
  }
200
  #image-upload-box {
201
+ background-color: #0d1117 !important;
 
 
202
  border: 2px dashed #30363d !important;
203
  border-radius: 8px !important;
204
  min-height: 220px;
205
  transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
206
  }
207
  #image-upload-box:hover {
208
+ border-color: #58a6ff !important;
209
+ background-color: #161b22 !important;
 
210
  }
211
  #image-upload-box .!h-full.w-full > div:first-of-type {
212
  display: flex;
213
  align-items: center;
214
  justify-content: center;
215
+ color: #8b949e;
216
  }
217
  #status-display {
218
  text-align: center;
 
220
  border-radius: 6px;
221
  margin-top: 1rem;
222
  min-height: 50px;
223
+ background-color: #161b22;
224
  border: 1px solid #30363d;
225
  transition: all 0.3s ease;
226
  }
 
231
  text-align: left;
232
  }
233
  #status-display li {
234
+ background-color: #0d1117;
235
  padding: 0.5rem;
236
  margin-top: 0.5rem;
237
  border-radius: 4px;
238
  border: 1px solid #30363d;
239
  }
240
  .tool-accordion {
241
+ border-color: #30363d !important;
242
+ background-color: #0d1117 !important;
243
  border-radius: 8px !important;
244
  margin-top: 1.5rem;
245
  }
246
+ .tool-accordion > .label-wrap {
247
+ background-color: #161b22 !important;
248
+ }
249
  """
250
 
251
  def _handle_login_attempt(self, image_input: Image.Image):