whitphx HF staff commited on
Commit
7213dbb
1 Parent(s): 3e87437

Refactoring

Browse files
Files changed (1) hide show
  1. util.py +4 -4
util.py CHANGED
@@ -16,10 +16,10 @@ class ThemeColor(NamedTuple):
16
 
17
  @st.cache_resource
18
  def get_config_theme_color():
19
- config_theme_primaryColor = st._config.get_option(f'theme.primaryColor')
20
- config_theme_backgroundColor = st._config.get_option(f'theme.backgroundColor')
21
- config_theme_secondaryBackgroundColor = st._config.get_option(f'theme.secondaryBackgroundColor')
22
- config_theme_textColor = st._config.get_option(f'theme.textColor')
23
  if config_theme_primaryColor and config_theme_backgroundColor and config_theme_secondaryBackgroundColor and config_theme_textColor:
24
  return ThemeColor(
25
  primaryColor=config_theme_primaryColor,
 
16
 
17
  @st.cache_resource
18
  def get_config_theme_color():
19
+ config_theme_primaryColor = st._config.get_option('theme.primaryColor')
20
+ config_theme_backgroundColor = st._config.get_option('theme.backgroundColor')
21
+ config_theme_secondaryBackgroundColor = st._config.get_option('theme.secondaryBackgroundColor')
22
+ config_theme_textColor = st._config.get_option('theme.textColor')
23
  if config_theme_primaryColor and config_theme_backgroundColor and config_theme_secondaryBackgroundColor and config_theme_textColor:
24
  return ThemeColor(
25
  primaryColor=config_theme_primaryColor,