rocioadlc commited on
Commit
1542555
Β·
verified Β·
1 Parent(s): 97aad4b

Update theme.py

Browse files
Files changed (1) hide show
  1. theme.py +4 -2
theme.py CHANGED
@@ -5,7 +5,6 @@ from typing import Iterable
5
  from gradio.themes.base import Base
6
  from gradio.themes.utils import colors, fonts, sizes
7
 
8
-
9
  class Theme(Base):
10
  def __init__(
11
  self,
@@ -28,6 +27,7 @@ class Theme(Base):
28
  "Consolas",
29
  "monospace",
30
  ),
 
31
  ):
32
  super().__init__(
33
  primary_hue=primary_hue,
@@ -38,8 +38,10 @@ class Theme(Base):
38
  text_size=text_size,
39
  font=font,
40
  font_mono=font_mono,
 
41
  )
42
  self.name = "theme"
 
43
  super().set(
44
  # Colors
45
  slider_color="*neutral_900",
@@ -52,7 +54,7 @@ class Theme(Base):
52
  background_fill_primary='*primary_600',
53
  background_fill_primary_dark='*primary_900',
54
  background_fill_secondary_dark='*primary_900',
55
- block_background_fill='rgb(173, 255, 47)',
56
  block_background_fill_dark="*neutral_800",
57
  input_background_fill_dark="*neutral_700",
58
  # Button Colors
 
5
  from gradio.themes.base import Base
6
  from gradio.themes.utils import colors, fonts, sizes
7
 
 
8
  class Theme(Base):
9
  def __init__(
10
  self,
 
27
  "Consolas",
28
  "monospace",
29
  ),
30
+ body_background_fill: str = "url('front.jpg')"
31
  ):
32
  super().__init__(
33
  primary_hue=primary_hue,
 
38
  text_size=text_size,
39
  font=font,
40
  font_mono=font_mono,
41
+ body_background_fill=body_background_fill
42
  )
43
  self.name = "theme"
44
+
45
  super().set(
46
  # Colors
47
  slider_color="*neutral_900",
 
54
  background_fill_primary='*primary_600',
55
  background_fill_primary_dark='*primary_900',
56
  background_fill_secondary_dark='*primary_900',
57
+ block_background_fill='rgb(53,66,48)',
58
  block_background_fill_dark="*neutral_800",
59
  input_background_fill_dark="*neutral_700",
60
  # Button Colors