Mercurial > dwindows
comparison win/dw.c @ 2461:7c716b48e5b5
Win: Dark mode change to match up with the iOS and Mac changes.
If you want to know if your interface is dark or light...
Check for dark: dw_feature_get(DW_FEATURE_DARK_MODE) > DW_DARK_MODE_BASIC
Check for light: dw_feature_get(DW_FEATURE_DARK_MODE> < DW_DARK_MODE_FULL
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 14 Apr 2021 02:56:17 +0000 |
parents | 0286ac44d347 |
children | 4aadd15e3a59 |
comparison
equal
deleted
inserted
replaced
2460:5b401a5cfa90 | 2461:7c716b48e5b5 |
---|---|
13872 return DW_FEATURE_DISABLED; | 13872 return DW_FEATURE_DISABLED; |
13873 } | 13873 } |
13874 case DW_FEATURE_DARK_MODE: | 13874 case DW_FEATURE_DARK_MODE: |
13875 { | 13875 { |
13876 if(_DW_DARK_MODE_SUPPORTED) | 13876 if(_DW_DARK_MODE_SUPPORTED) |
13877 { | |
13878 /* Special case for Full dark mode setting... return DW_DARK_MODE_BASIC | |
13879 * with DW_DARK_MODE_FULL requested but the system is in light mode. | |
13880 */ | |
13881 if(_DW_DARK_MODE_ALLOWED == DW_DARK_MODE_FULL && !_DW_DARK_MODE_ENABLED) | |
13882 return DW_DARK_MODE_BASIC; | |
13877 return _DW_DARK_MODE_ALLOWED; | 13883 return _DW_DARK_MODE_ALLOWED; |
13884 } | |
13878 return DW_FEATURE_UNSUPPORTED; | 13885 return DW_FEATURE_UNSUPPORTED; |
13879 } | 13886 } |
13880 #endif | 13887 #endif |
13881 #ifdef RICHEDIT | 13888 #ifdef RICHEDIT |
13882 /* Word wrap support on Windows is tied to Rich Edit, | 13889 /* Word wrap support on Windows is tied to Rich Edit, |