Spaces:
Runtime error
Runtime error
updated theme
Browse files- app.py +3 -0
- theme_upload.py +9 -11
app.py
CHANGED
@@ -6,6 +6,9 @@ from gradio.themes.utils.theme_dropdown import create_theme_dropdown
|
|
6 |
dropdown, js = create_theme_dropdown()
|
7 |
|
8 |
with gr.Blocks(theme='trimble/trimble_ai_theme') as demo:
|
|
|
|
|
|
|
9 |
with gr.Row(equal_height=True):
|
10 |
with gr.Column(scale=10):
|
11 |
gr.Markdown(
|
|
|
6 |
dropdown, js = create_theme_dropdown()
|
7 |
|
8 |
with gr.Blocks(theme='trimble/trimble_ai_theme') as demo:
|
9 |
+
|
10 |
+
gr.HTML("<img src=\"https://huggingface.co/spaces/trimble/trimble_ai_theme/resolve/main/images/logo.png\">")
|
11 |
+
|
12 |
with gr.Row(equal_height=True):
|
13 |
with gr.Column(scale=10):
|
14 |
gr.Markdown(
|
theme_upload.py
CHANGED
@@ -17,18 +17,16 @@ theme = gr.themes.Base(
|
|
17 |
).set(
|
18 |
button_secondary_background_fill="#0063a3",
|
19 |
button_secondary_background_fill_hover="#004f83",
|
20 |
-
button_secondary_text_color="#
|
21 |
button_secondary_background_fill_dark="#0063a3",
|
22 |
button_secondary_background_fill_hover_dark="#004f83",
|
23 |
-
button_secondary_text_color_dark="#
|
24 |
-
|
25 |
-
|
26 |
button_primary_background_fill="#fbad26",
|
27 |
button_primary_background_fill_hover="#e49325",
|
28 |
-
button_primary_text_color="#
|
29 |
button_primary_background_fill_dark="#fbad26",
|
30 |
button_primary_background_fill_hover_dark="#e49325",
|
31 |
-
button_primary_text_color_dark="#
|
32 |
checkbox_background_color_selected = "#0063a3",
|
33 |
checkbox_background_color_selected_dark = "#0063a3",
|
34 |
checkbox_border_color = "#0063a3",
|
@@ -39,11 +37,11 @@ theme = gr.themes.Base(
|
|
39 |
checkbox_border_color_hover_dark = "#0063a3",
|
40 |
checkbox_border_color_selected = "#0063a3",
|
41 |
checkbox_border_color_selected_dark = "#0063a3",
|
42 |
-
checkbox_label_background_fill = "#
|
43 |
checkbox_label_background_fill_dark = "#fbad26",
|
44 |
-
checkbox_label_background_fill_hover = "#
|
45 |
checkbox_label_background_fill_hover_dark = "#fbad26",
|
46 |
-
checkbox_label_background_fill_selected = "#
|
47 |
checkbox_label_background_fill_selected_dark = "#fbad26",
|
48 |
checkbox_label_text_color="#ffffff",
|
49 |
checkbox_label_text_color_dark="#ffffff",
|
@@ -55,8 +53,8 @@ theme = gr.themes.Base(
|
|
55 |
link_text_color_active_dark = "#217cbb",
|
56 |
link_text_color_hover = "#0063a3",
|
57 |
link_text_color_hover_dark = "#0063a3",
|
58 |
-
link_text_color_visited = "#
|
59 |
-
link_text_color_visited_dark = "#
|
60 |
)
|
61 |
|
62 |
theme.push_to_hub(
|
|
|
17 |
).set(
|
18 |
button_secondary_background_fill="#0063a3",
|
19 |
button_secondary_background_fill_hover="#004f83",
|
20 |
+
button_secondary_text_color="#252a2e",
|
21 |
button_secondary_background_fill_dark="#0063a3",
|
22 |
button_secondary_background_fill_hover_dark="#004f83",
|
23 |
+
button_secondary_text_color_dark="#252a2e",
|
|
|
|
|
24 |
button_primary_background_fill="#fbad26",
|
25 |
button_primary_background_fill_hover="#e49325",
|
26 |
+
button_primary_text_color="#252a2e",
|
27 |
button_primary_background_fill_dark="#fbad26",
|
28 |
button_primary_background_fill_hover_dark="#e49325",
|
29 |
+
button_primary_text_color_dark="#252a2e",
|
30 |
checkbox_background_color_selected = "#0063a3",
|
31 |
checkbox_background_color_selected_dark = "#0063a3",
|
32 |
checkbox_border_color = "#0063a3",
|
|
|
37 |
checkbox_border_color_hover_dark = "#0063a3",
|
38 |
checkbox_border_color_selected = "#0063a3",
|
39 |
checkbox_border_color_selected_dark = "#0063a3",
|
40 |
+
checkbox_label_background_fill = "#fbad26",
|
41 |
checkbox_label_background_fill_dark = "#fbad26",
|
42 |
+
checkbox_label_background_fill_hover = "#fbad26",
|
43 |
checkbox_label_background_fill_hover_dark = "#fbad26",
|
44 |
+
checkbox_label_background_fill_selected = "#fbad26",
|
45 |
checkbox_label_background_fill_selected_dark = "#fbad26",
|
46 |
checkbox_label_text_color="#ffffff",
|
47 |
checkbox_label_text_color_dark="#ffffff",
|
|
|
53 |
link_text_color_active_dark = "#217cbb",
|
54 |
link_text_color_hover = "#0063a3",
|
55 |
link_text_color_hover_dark = "#0063a3",
|
56 |
+
link_text_color_visited = "#217cbb",
|
57 |
+
link_text_color_visited_dark = "#217cbb"
|
58 |
)
|
59 |
|
60 |
theme.push_to_hub(
|