feat: changing theme first draft
Browse files- app/main.py +3 -2
- app/theme.py +6 -0
app/main.py
CHANGED
|
@@ -5,14 +5,15 @@ from wounded import show_section_wounded
|
|
| 5 |
from dropdowns import *
|
| 6 |
from maps import get_location
|
| 7 |
from style import *
|
|
|
|
| 8 |
|
| 9 |
-
with gr.Blocks() as demo:
|
| 10 |
# ---------------------------------------------------------
|
| 11 |
# Intro Text
|
| 12 |
with gr.Row():
|
| 13 |
with gr.Column(scale=1):
|
| 14 |
title = gr.Markdown("# Welcome to Digiwild", label="Title")
|
| 15 |
-
description = gr.Markdown("
|
| 16 |
|
| 17 |
# ---------------------------------------------------------
|
| 18 |
# Camera
|
|
|
|
| 5 |
from dropdowns import *
|
| 6 |
from maps import get_location
|
| 7 |
from style import *
|
| 8 |
+
from theme import theme, css
|
| 9 |
|
| 10 |
+
with gr.Blocks(theme=theme, css=css) as demo:
|
| 11 |
# ---------------------------------------------------------
|
| 12 |
# Intro Text
|
| 13 |
with gr.Row():
|
| 14 |
with gr.Column(scale=1):
|
| 15 |
title = gr.Markdown("# Welcome to Digiwild", label="Title")
|
| 16 |
+
description = gr.Markdown("Please record your wildlife observations here !", label="description")
|
| 17 |
|
| 18 |
# ---------------------------------------------------------
|
| 19 |
# Camera
|
app/theme.py
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
css = ".gradio-container {background: url(https://openclipart.org/image/2000px/279687)}"
|
| 4 |
+
|
| 5 |
+
theme = gr.themes.Soft(primary_hue="teal", secondary_hue="teal", neutral_hue="emerald",
|
| 6 |
+
font=[gr.themes.GoogleFont("Inconsolata"), "Arial", "sans-serif"])
|