Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -538,35 +538,20 @@ with gr.Blocks(title="D-REX Studio") as app:
|
|
| 538 |
theme_selector = gr.HTML("""
|
| 539 |
<div id="theme-bar">
|
| 540 |
<span style="font-size:10px;font-family:monospace;color:#524e4a;margin-right:4px">THEME</span>
|
| 541 |
-
|
| 542 |
-
<span class="theme-dot" style="background:#
|
| 543 |
-
|
| 544 |
-
<span class="theme-dot" style="background:#
|
| 545 |
-
|
| 546 |
-
<span class="theme-dot" style="background:#
|
| 547 |
-
onclick="applyTheme('#0369a1')"></span>
|
| 548 |
-
<span class="theme-dot" style="background:#047857" title="Emerald"
|
| 549 |
-
onclick="applyTheme('#047857')"></span>
|
| 550 |
-
<span class="theme-dot" style="background:#be185d" title="Rose"
|
| 551 |
-
onclick="applyTheme('#be185d')"></span>
|
| 552 |
-
<span class="theme-dot" style="background:#b45309" title="Amber"
|
| 553 |
-
onclick="applyTheme('#b45309')"></span>
|
| 554 |
-
|
| 555 |
<span style="font-size:10px;font-family:monospace;color:#524e4a;margin-left:8px">CUSTOM</span>
|
| 556 |
</div>
|
| 557 |
-
|
| 558 |
<div style="display:flex;justify-content:center;gap:8px;margin-bottom:12px">
|
| 559 |
-
<input id="custom-theme-hex" type="text" maxlength="7" placeholder="#hex color"
|
| 560 |
-
|
| 561 |
-
padding:4px 8px;font-size:11px;font-family:monospace;color:#f0ebe5;outline:none"/>
|
| 562 |
-
<button onclick="applyTheme(document.getElementById('custom-theme-hex').value.trim())"
|
| 563 |
-
style="background:#1a1816;border:1px solid #272422;border-radius:5px;
|
| 564 |
-
padding:4px 12px;font-size:11px;font-family:monospace;color:#9a9088;cursor:pointer">
|
| 565 |
-
apply
|
| 566 |
-
</button>
|
| 567 |
</div>
|
| 568 |
""")
|
| 569 |
-
|
| 570 |
# ββ MAIN ββ
|
| 571 |
with gr.Row():
|
| 572 |
|
|
|
|
| 538 |
theme_selector = gr.HTML("""
|
| 539 |
<div id="theme-bar">
|
| 540 |
<span style="font-size:10px;font-family:monospace;color:#524e4a;margin-right:4px">THEME</span>
|
| 541 |
+
<span class="theme-dot" style="background:#c2410c" title="Orange Red" onclick="applyTheme('#c2410c')"></span>
|
| 542 |
+
<span class="theme-dot" style="background:#7c3aed" title="Violet" onclick="applyTheme('#7c3aed')"></span>
|
| 543 |
+
<span class="theme-dot" style="background:#0369a1" title="Ocean" onclick="applyTheme('#0369a1')"></span>
|
| 544 |
+
<span class="theme-dot" style="background:#047857" title="Emerald" onclick="applyTheme('#047857')"></span>
|
| 545 |
+
<span class="theme-dot" style="background:#be185d" title="Rose" onclick="applyTheme('#be185d')"></span>
|
| 546 |
+
<span class="theme-dot" style="background:#b45309" title="Amber" onclick="applyTheme('#b45309')"></span>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 547 |
<span style="font-size:10px;font-family:monospace;color:#524e4a;margin-left:8px">CUSTOM</span>
|
| 548 |
</div>
|
|
|
|
| 549 |
<div style="display:flex;justify-content:center;gap:8px;margin-bottom:12px">
|
| 550 |
+
<input id="custom-theme-hex" type="text" maxlength="7" placeholder="#hex color" style="width:100px;background:#1a1816;border:1px solid #272422;border-radius:5px;padding:4px 8px;font-size:11px;font-family:monospace;color:#f0ebe5;outline:none"/>
|
| 551 |
+
<button onclick="applyTheme(document.getElementById('custom-theme-hex').value.trim())" style="background:#1a1816;border:1px solid #272422;border-radius:5px;padding:4px 12px;font-size:11px;font-family:monospace;color:#9a9088;cursor:pointer">apply</button>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 552 |
</div>
|
| 553 |
""")
|
| 554 |
+
|
| 555 |
# ββ MAIN ββ
|
| 556 |
with gr.Row():
|
| 557 |
|