From 5316a28e6c2a56642b8ef5c993ae2546ab7b2135 Mon Sep 17 00:00:00 2001 From: Aditya Toshniwal Date: Wed, 20 Nov 2019 15:05:20 +0530 Subject: [PATCH] Fixed issue where Dark Theme is unavailable in python wheel distro. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- web/pgadmin/misc/themes/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/web/pgadmin/misc/themes/__init__.py b/web/pgadmin/misc/themes/__init__.py index 301f0f665..37559da16 100644 --- a/web/pgadmin/misc/themes/__init__.py +++ b/web/pgadmin/misc/themes/__init__.py @@ -4,8 +4,10 @@ from pgadmin.utils.preferences import Preferences def get_all_themes(): + # Themes file is copied in generated directory theme_file_path = os.path.join( os.path.dirname(os.path.realpath(__file__)), + '../../static/js/generated', 'pgadmin.themes.json' )