pgadmin4/web/pgadmin/misc/themes/__init__.py
Yogesh Mahajan 102e0a9839
- Update MUI v4 to v5
- Remove the SCSS dependency completely and use MUI for theming.
- Update - date-fns, @date-io, notistack. Remove - popper.js, sass-loader.
- Cleanup webpack config.
- Port PSQL tool to use MUI themes instead of SCSS theme.
- Theme change will reflect realtime without refreshing pgAdmin.
2024-04-09 08:21:14 +05:30

22 lines
506 B
Python

import os
import json
from pgadmin.utils.preferences import Preferences
def get_all_themes():
all_themes = {
"standard": {
"disp_name": "Standard",
"preview_img": "standard_preview.png"
},
"dark": {
"disp_name": "dark",
"preview_img": "dark_preview.png"
},
"high_contrast": {
"disp_name": "high_contrast",
"preview_img": "high_contrast_preview.png"
},
}
return all_themes