Difference between revisions of "Talk:DarkMode.cs"

From DanIT
Jump to navigation Jump to search
(Created page with "==Components== With any control, you can easily change the default Dark-Mode appearance.<br> === TabControl === '''Note:''' A custom DrawItem has been added to <code>DarkMode...")
 
m
 
Line 24: Line 24:
  
 
=== ContextMenuStrip ===
 
=== ContextMenuStrip ===
'''Note:''' <br>
+
'''Note:''' Because ContextMenuStrips could also be created outside of Form.Controls via the Designer, function DesignerControls additionally checks for this.<br>
  
 
=== ToolStripItem ===
 
=== ToolStripItem ===
 
'''Note:''' <br>
 
'''Note:''' <br>

Latest revision as of 20:02, 11 May 2026

Components

With any control, you can easily change the default Dark-Mode appearance.

TabControl

Note: A custom DrawItem has been added to DarkMode.TabControl, because there is no appearance property for the Tabs back and fore color.

Label

Note: No changes needed, inherits back and fore color automatically.

CheckBox

Note: No changes needed, inherits back and fore color automatically.

RadioButton

Note: No changes needed, inherits back and fore color automatically.

ListView

Issue: Using ListView with View 'Details', the Column Header (when used) appearance remains light-mode.
Cause: There is no appearance property for this.
Advice: Either replace the ListView with DataGridView (which is also more advanced), or use DarkMode.ListView to draw your own style.

Issue: Using ListView, the Groups (when used) header appearance remains light-mode (dark blue).
Cause: There is no appearance property for this.
Advice: Use DarkMode.ListView to draw your own style.

ContextMenuStrip

Note: Because ContextMenuStrips could also be created outside of Form.Controls via the Designer, function DesignerControls additionally checks for this.

ToolStripItem

Note: