DarkMode » History » Revision 2
Revision 1 (Per Amundsen, 03/06/2023 05:19 PM) → Revision 2/4 (Per Amundsen, 07/09/2023 05:19 PM)
h1. Dark Mode
In 4.4 most controls are now either custom drawn, massively hacked or written from scratch to support custom colors and/or borders.
Toggling dark mode changes the colors for all controls which does not have a color option and Titlebars in all open dialogs, in real time.
Dark mode is enabled by default if windows dark mode is enabled, it can be toggled Automatic/On/Off in [[Options_Dialog|Options]] -> [[Colors_Options|Colors]].
h2. Notes
[[Channeledit_Dialog|Channel Editor]] Topic preview uses the [[Topicbox_Control|Topicbox]] background and text color to simulate how the topic with colors will look.
[[Channellist_Dialog|Channel List]] uses the message area background and text color to accurately show topic with colors.
[[Themes_Dialog|Theme Manager]] theme preview uses the colors from the theme to accurately show the preview.
The current dark mode colors are set to make things looks apart and reduce brightness, they will be tweaked based on feedback.
It is not possible to change the selection color of textboxes and possibly other controls.
It is not possible to change the colors of scrollbars, a custom scrollbar can be made from scratch, but it would only be useable by controls created from scratch.
It does not seem to be possible to change or draw the datetime picker dropdown, a custom one could be made, but seems unnecessary for just one single use case (Create client SSL/TLS certificate).
Save/open/browse folder/file dialogs are controlled by windows and will only be dark when windows have dark mode enabled.
Titlebars are only dark when dark mode in windows is enabled. AdiIRC will change them automatically when dark mode is enabled in both windows and AdiIRC.
It is currently "not possible":https://github.com/dotnet/winforms/issues/3691 to change the colors of Titlebars for MDI windows.
[[/dialog|Scripted Dialogs]] are currently excluded from dark mode, except the Titlebar.
h2. TODO
Figure out a reasonable color to use for link controls and installed dictionaries in "Add Dictionaries" dialog.
Add option to set a custom font for all controls which does not currently have a font option.
Change the individual control colors based on feedback.
Checkboxes are hard to read when disabled.
h2. Maybe?
Look into whether it's possible to custom draw or use a image for up/down arrows on numeric uo/down to something with more light grayish colors?
Look into whether it's possible to custom draw or use a image for down arrow on dropdowns to something with more light grayish colors?
Look into whether it's possible to custom draw the check mark on checkboxes/radiobuttons to a more light grayish color?
Options to change the dark mode colors to something custom?
Some controls can be custom drawn with a custom selection color, not sure if it's worth it?
Custom scrollbars for custom created controls?
Apply dark mode to scripted dialogs?