Changes between Version 48 and Version 49 of Docs/825gen2/Dev/DeveloperNews
- Timestamp:
- 04/11/25 15:48:23 (8 days ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Docs/825gen2/Dev/DeveloperNews
v48 v49 3 3 == 2025-04-11 Dark Mode for new style apps == 4 4 5 arm825beta lib825ev is updated to allow new style apps to run in dark mode (light text on black background). Previously legacy recompiled apps used dark mode, but new style apps used a white background. A new patch will be coming soon that updates the startup preferences settings to have a dark mode selection.5 The arm825beta lib825ev is updated to allow new style apps to run in dark mode (light text on black background). Previously legacy recompiled apps used dark mode, but new style apps used a white background. A new patch will be coming soon that updates the startup preferences settings to have a dark mode selection. 6 6 7 7 To insure apps work properly in dark mode apps should not be coded with fixed colors. For example, //SetBkColor(nColorWhite);// should be changed to //SetBkColor(COLOR_BKGND)//. //SetCurColor(nColorBlack);// should be changed to //SetCurColor(COLOR_INFO);// or some other non-fixed color identifier. … … 11 11 export DARKMODE=1 12 12 ./myapp 13 }}} 14 15 Buttons that have bitmap images included may not appear properly in dark mode. Most of the standard app button images // /usr/images/icon_app_btn_zeroX.bmp// such as the zero button image are black, white, gray will appear very good when the colors are inverted. However, bitmaps with color pixels may not appear as well. Specific bitmaps may be used in this case for dark mode. 16 {{{ 17 const char* bitmapFile; 18 if(dspMain.GetDarkMode()) { 19 bitmapFile = “/usr/images/mydarkbitmap.bmp”; 20 } else { 21 bitmapFile = “/usr/images/mybitmap.bmp”; 22 } 23 // Then bitmapFile can be used in FORM_ADD_BUTTON2 be sure to OR the flag FORM_BUTTON_BITMAP_NO_INVERT 13 24 }}} 14 25