Openbravo Issue Tracking System - POS2
View Issue Details
0053345POS2POSpublic2023-08-31 11:322023-09-29 08:53
AugustoMauch 
meriem_azaf 
normalminorhave not tried
scheduledopen 
5
 
 
No
0053345: When there is no logged user, the UI mode should be the one from the OS
When the touchpoint type information is not yet available (i.e. on before first login after clearing cache), we should use the mode setting defined for the operative system.

This same behavior should also happen in the first few ms after refresing the browser, when now the light mode is always shown (and it should be the mode defined in the OS too)
Configure the SO to use light mode
Clean caché, open POS2
- Light theme should be used

Configure the SO to use dark mode
Clean caché, open POS2
- Dark theme should be used
No tags attached.
related to defect 0053550 closed AugustoMauch Proper style is not applield right after opening/refreshing POS2 in the browser 
related to feature request 0053352 closed Retail Update default dark/light mode, from dark to light 
Issue History
2023-08-31 11:32AugustoMauchNew Issue
2023-08-31 11:32AugustoMauchAssigned To => Retail
2023-08-31 11:32AugustoMauchTriggers an Emergency Pack => No
2023-08-31 11:37AugustoMauchDescription Updatedbug_revision_view_page.php?rev_id=26732#r26732
2023-08-31 11:37AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26734#r26734
2023-08-31 11:39dbazNote Added: 0154246
2023-08-31 15:15dbazNote Deleted: 0154246
2023-08-31 15:15dbazRelationship addedrelated to 0053352
2023-08-31 15:16dbazDescription Updatedbug_revision_view_page.php?rev_id=26739#r26739
2023-08-31 15:16dbazSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26740#r26740
2023-08-31 15:23dbazSummaryUpdate default dark/light mode, from dark to light => When there is no logged user, the UI mode should be the Light one
2023-08-31 15:23dbazDescription Updatedbug_revision_view_page.php?rev_id=26745#r26745
2023-08-31 15:23dbazSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=26746#r26746
2023-08-31 15:23dbazNote Added: 0154258
2023-08-31 15:24dbazSummaryWhen there is no logged user, the UI mode should be the Light one => When there is no logged user, the UI mode should be the one from the OS
2023-09-26 17:40dbazDescription Updatedbug_revision_view_page.php?rev_id=26904#r26904
2023-09-26 17:40dbazRelationship addedrelated to 0053550
2023-09-28 15:37AugustoMauchAssigned ToRetail => meriem_azaf
2023-09-28 15:37AugustoMauchStatusnew => scheduled
2023-09-29 08:53hgbotNote Added: 0155379

Notes
(0154258)
dbaz   
2023-08-31 15:23   
Help to Dev:

if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
    // the operating system is in dark mode
    console.log('Dark mode enabled');
} else {
    // the operating system is in light mode or not specified
    console.log('Light mode enabled or not specified');
}
(0155379)
hgbot   
2023-09-29 08:53   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1255 [^]