Mercurial > dwib
changeset 344:2532434a7209
Check for DW_DARK_MODE environment variable to enable full dark mode.
This perhaps should be a command line option, but this is easier for the moment.
author | Brian Smith <brian@dbsoft.org> |
---|---|
date | Sun, 13 Dec 2020 07:10:12 -0600 |
parents | 5e3b880dd2fc |
children | 2ed43f483e9d |
files | dwib.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dwib.c Sun Nov 29 16:22:18 2020 -0600 +++ b/dwib.c Sun Dec 13 07:10:12 2020 -0600 @@ -7750,7 +7750,8 @@ int main(int argc, char *argv[]) { /* Enable full dark mode on platforms that support it */ - dw_feature_set(DW_FEATURE_DARK_MODE, DW_DARK_MODE_FULL); + if(getenv("DW_DARK_MODE")) + dw_feature_set(DW_FEATURE_DARK_MODE, DW_DARK_MODE_FULL); /* Set the Application ID to enable features like notifications */ dw_app_id_set("org.dbsoft.dwindows.dwib", "Dynamic Windows Application Builder");