mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
1) Further styling tweaks for Dark Theme.
2) Theme related code changes are removed from config.py and moved to miscellaneous under a new package - "themes".
This commit is contained in:
committed by
Akshay Joshi
parent
7282e15ee2
commit
c1c682402a
@@ -487,25 +487,6 @@ try:
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
THEMES = {
|
||||
"standard": {
|
||||
"disp_name": "Standard",
|
||||
"cssfile": "pgadmin",
|
||||
"preview_img": "standard_preview.png"
|
||||
}
|
||||
}
|
||||
|
||||
OTHER_THEMES = {}
|
||||
try:
|
||||
extra_themes = json.load(open('pgadmin.themes.json'))
|
||||
OTHER_THEMES.update(extra_themes)
|
||||
except Exception:
|
||||
pass
|
||||
|
||||
# Set OTHER_THEMES to None here to disable all other themes
|
||||
|
||||
if OTHER_THEMES is not None:
|
||||
THEMES.update(OTHER_THEMES)
|
||||
|
||||
# SUPPORT_SSH_TUNNEL can be override in local config file and if that
|
||||
# setting is False in local config then we should not check the Python version.
|
||||
|
||||
Reference in New Issue
Block a user