Sebastiankay commited on
Commit
5cc378b
1 Parent(s): 37581ea

Sep 10, 2024, 6:27 PM

Browse files
Files changed (2) hide show
  1. _res/_custom.css +14 -0
  2. app.py +1 -1
_res/_custom.css CHANGED
@@ -256,6 +256,20 @@ span.has-info+div {
256
 
257
  }
258
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
259
  /* Hide Progress */
260
  .hide-progress:has(.wrap.default.full) {
261
  pointer-events: none;
 
256
 
257
  }
258
 
259
+ input[type=range].svelte-pc1gm4 {
260
+ background: var(--neutral-700);
261
+
262
+ & ::-webkit-slider-thumb {
263
+ border: solid .5px var(--primary-600);
264
+ background-color: var(--primary-600);
265
+ }
266
+
267
+ &::-webkit-slider-thumb:hover {
268
+ border: solid .5px var(--primary-700);
269
+ background-color: var(--primary-700);
270
+ }
271
+ }
272
+
273
  /* Hide Progress */
274
  .hide-progress:has(.wrap.default.full) {
275
  pointer-events: none;
app.py CHANGED
@@ -198,13 +198,13 @@ with gr.Blocks(theme=theme, head=custom_head, css=custom_css, js=custom_js, titl
198
  image_info_tb_height = gr.Textbox(label="Höhe", lines=1, max_lines=1, interactive=False, show_copy_button=True, elem_classes="image-info-tb-height")
199
  with gr.Row(elem_classes="img-seed-wrapper"):
200
  image_info_tb_seed = gr.Textbox(label="Seed", lines=1, max_lines=1, interactive=False, show_copy_button=True, elem_classes="image-info-tb-seed")
 
201
  # image_info_tb_prompt = gr.Textbox("Bild Prompt", lines=4, max_lines=8, interactive=False, show_copy_button=True, visible=True)
202
  image_download_button = gr.DownloadButton("Bild herunterladen", value=None, elem_classes="download-button", variant="primary", visible=False)
203
 
204
  output_url = gr.Textbox(label="Output URL", show_label=True, interactive=False, visible=False)
205
  outpu_image_comment = gr.Json(visible=False)
206
  output_dominant_image_color = gr.Textbox(show_label=False, elem_id="dominant_image_color", visible=True, elem_classes="output-dominant-image-color")
207
- image_info_tb_prompt = gr.Textbox("Bild Prompt", lines=4, max_lines=8, interactive=False, elem_classes="hide-progress", show_copy_button=True, visible=True)
208
 
209
  def switch_image_size_values(image_width, image_height):
210
  return image_height, image_width
 
198
  image_info_tb_height = gr.Textbox(label="Höhe", lines=1, max_lines=1, interactive=False, show_copy_button=True, elem_classes="image-info-tb-height")
199
  with gr.Row(elem_classes="img-seed-wrapper"):
200
  image_info_tb_seed = gr.Textbox(label="Seed", lines=1, max_lines=1, interactive=False, show_copy_button=True, elem_classes="image-info-tb-seed")
201
+ image_info_tb_prompt = gr.Textbox("Bild Prompt", lines=4, max_lines=8, interactive=False, elem_classes="hide-progress", show_copy_button=True, visible=False)
202
  # image_info_tb_prompt = gr.Textbox("Bild Prompt", lines=4, max_lines=8, interactive=False, show_copy_button=True, visible=True)
203
  image_download_button = gr.DownloadButton("Bild herunterladen", value=None, elem_classes="download-button", variant="primary", visible=False)
204
 
205
  output_url = gr.Textbox(label="Output URL", show_label=True, interactive=False, visible=False)
206
  outpu_image_comment = gr.Json(visible=False)
207
  output_dominant_image_color = gr.Textbox(show_label=False, elem_id="dominant_image_color", visible=True, elem_classes="output-dominant-image-color")
 
208
 
209
  def switch_image_size_values(image_width, image_height):
210
  return image_height, image_width