mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-24 15:26:46 -06:00
102e0a9839
- 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.
22 lines
506 B
Python
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
|