Changes between Version 48 and Version 49 of Docs/825gen2/Dev/DeveloperNews


Ignore:
Timestamp:
04/11/25 15:48:23 (8 days ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/825gen2/Dev/DeveloperNews

    v48 v49  
    33== 2025-04-11 Dark Mode for new style apps ==
    44
    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.
     5The 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.
    66
    77To 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.
     
    1111export DARKMODE=1
    1212./myapp
     13}}}
     14
     15Buttons 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{{{
     17const char* bitmapFile;
     18if(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
    1324}}}
    1425