Project:
View Revisions: Issue #53176 | [ All Revisions ] [ Back to Issue ] | ||
Summary | 0053176: Support themeMode as a Setting | ||
Revision | 2023-08-08 14:07 by AugustoMauch | ||
Description | The themeMode (light/dark) is going to be managed as a setting. This requires some changes in org.openbravo.core2: - We need to create a new component for SettingItems that instead of containing a checkbox, renders multiple buttons, allowing the user to select one of them (see attached image). This can be done by creating a wrapper over [2] BaseButtonGroup - We need to update ThemeProvider [1] so that it retrieves the theme mode from the Setting model, instead of from the session context - We will create a Setting.setSettingValue action that will be convenient to manage settings that are not booleans [1] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blob/master/web-jspack/org.openbravo.core2/src/components/ThemeProvider/ThemeProvider.jsx#L22 [^] [2] https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/blob/master/web-jspack/org.openbravo.core2/src/components/BaseButtonGroup/BaseButtonGroup.jsx [^] |
||
Revision | 2023-08-08 14:04 by AugustoMauch | ||
Description | The themeMode (light/dark) is going to be managed as a setting. This requires two changes in org.openbravo.core2: - We need to create a new component for SettingItems that instead of containing a checkbox, renders multiple buttons, allowing the user to select one of them (see attached image). |
||
Revision | 2023-08-08 09:28 by AugustoMauch | ||
Description | TBD |
Copyright © 2000 - 2009 MantisBT Group |