Spaces:
Running
Running
ChenyuRabbitLove
commited on
Commit
•
6b407f4
1
Parent(s):
e8d9e23
fix: test bg loading
Browse files
app.py
CHANGED
@@ -101,9 +101,6 @@ with gr.Blocks(theme=seafoam, css=get_content("css/style.css")) as demo:
|
|
101 |
"http://id.junyiacademy.org/d6317d299321450191dd5da599a48b3d", visible=False
|
102 |
)
|
103 |
player_info_query_btn = gr.Button("Query")
|
104 |
-
image = gr.Image(
|
105 |
-
"medias/background.png",
|
106 |
-
)
|
107 |
|
108 |
# actions when player login
|
109 |
player_info_query_btn.click(get_player_info, player_backend_id, player_info).then(
|
|
|
101 |
"http://id.junyiacademy.org/d6317d299321450191dd5da599a48b3d", visible=False
|
102 |
)
|
103 |
player_info_query_btn = gr.Button("Query")
|
|
|
|
|
|
|
104 |
|
105 |
# actions when player login
|
106 |
player_info_query_btn.click(get_player_info, player_backend_id, player_info).then(
|
theme.py
CHANGED
@@ -33,8 +33,8 @@ class Seafoam(Base):
|
|
33 |
font_mono=font_mono,
|
34 |
)
|
35 |
super().set(
|
36 |
-
body_background_fill="url('
|
37 |
-
body_background_fill_dark="url('
|
38 |
body_text_color_dark="#333",
|
39 |
background_fill_primary_dark="rgba(255, 255, 255, 1)",
|
40 |
background_fill_secondary_dark="rgba(255, 255, 255, 0)",
|
|
|
33 |
font_mono=font_mono,
|
34 |
)
|
35 |
super().set(
|
36 |
+
body_background_fill="url('medias/background.png') no-repeat center center / cover",
|
37 |
+
body_background_fill_dark="url('medias/background.png') no-repeat center center / cover",
|
38 |
body_text_color_dark="#333",
|
39 |
background_fill_primary_dark="rgba(255, 255, 255, 1)",
|
40 |
background_fill_secondary_dark="rgba(255, 255, 255, 0)",
|