mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-03 20:20:46 -06:00
Fixed issue where Dark Theme is unavailable in python wheel distro.
pgAdmin wheel distro is not having pgadmin.themes.json file in 'web/pgadmin/misc/themes' directory, so it's better to refer this file from the generated directory.
This commit is contained in:
parent
bb845817d6
commit
5316a28e6c
@ -4,8 +4,10 @@ from pgadmin.utils.preferences import Preferences
|
|||||||
|
|
||||||
|
|
||||||
def get_all_themes():
|
def get_all_themes():
|
||||||
|
# Themes file is copied in generated directory
|
||||||
theme_file_path = os.path.join(
|
theme_file_path = os.path.join(
|
||||||
os.path.dirname(os.path.realpath(__file__)),
|
os.path.dirname(os.path.realpath(__file__)),
|
||||||
|
'../../static/js/generated',
|
||||||
'pgadmin.themes.json'
|
'pgadmin.themes.json'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user