Erstie_Chatbot / theme.py
WellItsPaul's picture
Fixed secondary button
5859ac6
raw
history blame
2.43 kB
from gradio.themes.soft import Soft
class CustomTheme(Soft):
def __init__(self):
super().__init__()
white = "#FFFFFF"
purple = "#571DF9"
red_light = "#e36464"
red = "#d44242"
red_dark = "rgb(74, 10, 11)"
grau_light = "#313131"
grau = "#1C1C1C"
grau_dark = "#171717"
red_gradient = "linear-gradient(90deg, rgb(250, 85, 88), rgb(74, 10, 11))"
super().set(
body_background_fill_dark=grau_light,
body_background_fill=grau_light,
button_primary_background_fill= red,
button_primary_background_fill_dark= red,
button_primary_background_fill_hover=red_light,
button_primary_background_fill_hover_dark=red_light,
button_primary_text_color=white,
button_secondary_background_fill=grau_light,
button_secondary_background_fill_dark=grau,
button_secondary_background_fill_hover=red,
button_secondary_background_fill_hover_dark=red,
button_secondary_text_color=white,
button_secondary_border_color=white,
block_background_fill=grau,
block_background_fill_dark=grau,
block_border_color="rgba(0,0,0,0.9)",
color_accent_soft="rgb(72, 160, 203)",
border_color_accent_subdued="rgb(72, 160, 203)",
panel_background_fill=grau_dark,
panel_background_fill_dark=grau_dark,
panel_border_color=grau_dark,
panel_border_color_dark=grau_dark,
input_background_fill=grau,
input_background_fill_dark=grau,
input_border_color=grau_dark,
block_label_background_fill=red,
block_label_background_fill_dark=red,
block_label_border_color=red,
block_label_border_color_dark=red,
block_label_text_color=white,
block_label_text_color_dark=white,
block_title_text_color=red,
block_title_background_fill_dark=red,
body_text_color=white,
body_text_color_dark=white,
border_color_primary=red,
border_color_primary_dark=red,
color_accent = grau_light,
color_accent_soft_dark= grau_light,
background_fill_secondary=grau_dark,
background_fill_secondary_dark=grau_dark
)