observantdistressed commited on
Commit
bbcf29a
·
verified ·
1 Parent(s): 2f3b407

UI: expanded theme — fixed slider (data-testid selector), added secondary button, upload areas, accordion, file/video output, scrollbar, info text, lora preview

Browse files
Files changed (1) hide show
  1. app.py +87 -3
app.py CHANGED
@@ -716,15 +716,15 @@ CSS = """
716
  }
717
 
718
  /* ── DURATION SLIDER — gradient track ── */
719
- #duration-slider input[type="range"] {
720
  accent-color: #00d4aa !important;
721
  }
722
- #duration-slider input[type="range"]::-webkit-slider-runnable-track {
723
  background: linear-gradient(90deg, #00d4aa, #6c5ce7) !important;
724
  height: 6px !important;
725
  border-radius: 3px !important;
726
  }
727
- #duration-slider input[type="range"]::-webkit-slider-thumb {
728
  -webkit-appearance: none !important;
729
  width: 16px !important;
730
  height: 16px !important;
@@ -770,6 +770,90 @@ CSS = """
770
  .gradio-container .block {
771
  border-radius: 14px !important;
772
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
773
  """
774
 
775
 
 
716
  }
717
 
718
  /* ── DURATION SLIDER — gradient track ── */
719
+ #duration-slider [data-testid="range-input"] {
720
  accent-color: #00d4aa !important;
721
  }
722
+ #duration-slider [data-testid="range-input"]::-webkit-slider-runnable-track {
723
  background: linear-gradient(90deg, #00d4aa, #6c5ce7) !important;
724
  height: 6px !important;
725
  border-radius: 3px !important;
726
  }
727
+ #duration-slider [data-testid="range-input"]::-webkit-slider-thumb {
728
  -webkit-appearance: none !important;
729
  width: 16px !important;
730
  height: 16px !important;
 
770
  .gradio-container .block {
771
  border-radius: 14px !important;
772
  }
773
+
774
+ /* ── SECONDARY BUTTON — glass with purple hover ── */
775
+ .gradio-container button.secondary {
776
+ background: rgba(255, 255, 255, 0.06) !important;
777
+ backdrop-filter: blur(8px) !important;
778
+ border: 1px solid rgba(100, 180, 255, 0.2) !important;
779
+ color: #b8c8e0 !important;
780
+ border-radius: 10px !important;
781
+ font-weight: 600 !important;
782
+ transition: all 0.25s ease !important;
783
+ }
784
+ .gradio-container button.secondary:hover {
785
+ background: rgba(108, 92, 231, 0.15) !important;
786
+ border-color: rgba(108, 92, 231, 0.4) !important;
787
+ color: #e0e8f8 !important;
788
+ }
789
+
790
+ /* ── UPLOAD AREAS — dashed borders ── */
791
+ .gradio-container [data-testid="image"] {
792
+ background: rgba(255, 255, 255, 0.04) !important;
793
+ border: 2px dashed rgba(100, 200, 255, 0.3) !important;
794
+ border-radius: 12px !important;
795
+ transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
796
+ }
797
+ .gradio-container [data-testid="image"]:hover {
798
+ border-color: rgba(0, 229, 200, 0.6) !important;
799
+ box-shadow: 0 0 24px rgba(0, 229, 200, 0.12) !important;
800
+ }
801
+
802
+ /* ── ACCORDION — .label-wrap header ── */
803
+ .gradio-container .label-wrap {
804
+ background: rgba(255, 255, 255, 0.03) !important;
805
+ border: 1px solid rgba(100, 180, 255, 0.1) !important;
806
+ border-radius: 12px !important;
807
+ color: #c8d8e8 !important;
808
+ font-weight: 600 !important;
809
+ padding: 10px 14px !important;
810
+ cursor: pointer !important;
811
+ transition: color 0.2s ease !important;
812
+ }
813
+ .gradio-container .label-wrap:hover {
814
+ color: #00e5c8 !important;
815
+ }
816
+ .gradio-container .label-wrap.open {
817
+ color: #00e5c8 !important;
818
+ border-color: rgba(0, 229, 200, 0.35) !important;
819
+ border-radius: 12px 12px 0 0 !important;
820
+ }
821
+
822
+ /* ── FILE / VIDEO OUTPUT ── */
823
+ .gradio-container [data-testid="file"],
824
+ .gradio-container [data-testid="video"] {
825
+ background: rgba(10, 15, 40, 0.5) !important;
826
+ border: 1px solid rgba(100, 180, 255, 0.1) !important;
827
+ border-radius: 10px !important;
828
+ }
829
+
830
+ /* ── INFO TEXT ── */
831
+ .gradio-container .prose small,
832
+ .gradio-container small {
833
+ color: #7a8fa8 !important;
834
+ }
835
+
836
+ /* ── SCROLLBAR — themed ── */
837
+ .gradio-container ::-webkit-scrollbar {
838
+ width: 8px !important;
839
+ height: 8px !important;
840
+ }
841
+ .gradio-container ::-webkit-scrollbar-track {
842
+ background: rgba(10, 15, 40, 0.4) !important;
843
+ border-radius: 4px !important;
844
+ }
845
+ .gradio-container ::-webkit-scrollbar-thumb {
846
+ background: linear-gradient(180deg, #00b894, #6c5ce7) !important;
847
+ border-radius: 4px !important;
848
+ }
849
+
850
+ /* ── LORA PREVIEW ── */
851
+ #auto-lora-preview {
852
+ color: #b8d4e8 !important;
853
+ }
854
+ #auto-lora-preview b {
855
+ color: #00e5c8 !important;
856
+ }
857
  """
858
 
859