Spaces:
Runtime error
Runtime error
Refactoring
Browse files
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(
|
| 20 |
-
config_theme_backgroundColor = st._config.get_option(
|
| 21 |
-
config_theme_secondaryBackgroundColor = st._config.get_option(
|
| 22 |
-
config_theme_textColor = st._config.get_option(
|
| 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,
|