|
|
|
### Current support of dark mode in SOHViewer
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
Currently, most parts of SOHViewer can be viewed without loss of clarity. There are some text lines that use a background color that makes reading the default text color in dark mode (white) difficult, but they are few enough in number and easy enough to change that it is not a major problem.
|
|
|
|
|
|
|
|
However, there are some parts of SOHViewer that do not support dark mode. They do not hinder usage of the program, however, so they are not a major concern. An example of this are the dropdowns in the database editor, which do not change their background and text color with dark mode.
|
|
|
|
|
|
|
|
### Development guideline
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
#### Color Palette
|
|
|
|
|
|
|
|
One of the major points to consider for supporting dark mode is the choice of colors. In many cases a color works great in light mode, but makes the text harder to read in dark mode, and vice versa. There are two ways to solve this issue: switch colors when the display mode is switched, or choosing colors that works well in both dark and light mode. For ease of development, the second option is preferable. To facilitate the process of choosing color, pre-designed palettes that support both modes, such as Solarized, can be used.
|
|
|
|
|
|
|
|
#### Icons/Images
|
|
|
|
|
|
|
|
One problem that was encountered with supporting dark mode is icons/images with transparent background. This was reported in https://git.passcal.nmt.edu/software_public/passoft/nexus/-/issues/58. This problem was fixed in https://git.passcal.nmt.edu/software_public/passoft/nexus/-/merge_requests/23. |
|
|
\ No newline at end of file |