HeaderPane
Main
Hide
Share Link
Print

Standard Controls

In dark mode the SftStyle component styles the forms and the standard controls of Windows Forms. The result is the same in both frameworks; the images show the same form on the .NET Framework in light and dark mode.

Standard controls, light

Standard controls, dark

Colors

Each control's BackColor and ForeColor follow one rule: a system color (SystemColors.Window, SystemColors.ControlText and the others, which the Visual Studio designer uses by default) is replaced by its dark counterpart, a color the application set itself stays, and a color the control takes from its parent follows the parent. A text box with BackColor Color.LightYellow therefore stays light yellow in dark mode; one with the default SystemColors.Window gets the dark window color. On a switch back to light every control gets its original colors.

Controls

ControlDark mode
FormDark title bar, dark background. Owned forms and dialogs as well; MDI child forms get a dark background (their frames stay light), and the MDI client area is dark.
Button, CheckBox, RadioButtonThe dark buttons, check boxes and radio buttons of Windows for FlatStyle.Standard and FlatStyle.System; dark colors for FlatStyle.Flat and FlatStyle.Popup.
Label, LinkLabelDark colors; a disabled label stays readable. Link colors that are readable on a dark background.
GroupBoxDark border and caption. A group box with FlatStyle.System gets FlatStyle.Standard while the forms are dark, since Windows would draw its caption in a dark color.
TextBox, MaskedTextBox, RichTextBoxDark field, dark scroll bars, and for TextBox and MaskedTextBox the dark edit menu.
ComboBoxDark field, drop-down button and list.
ListBox, CheckedListBoxDark list and scroll bars, dark check boxes.
ListViewDark list, column headers and scroll bars.
TreeViewDark tree, expand buttons and scroll bars.
TabControl, TabPageDark tabs and pages, also for pages added while the form is in dark mode. On the .NET Framework the tabs are dark with the Normal appearance at the top or bottom; tabs on the left or right, or with the Buttons or FlatButtons appearance, stay light, while their pages are dark.
NumericUpDown, DomainUpDownDark field, border and up-down buttons.
MonthCalendarDark colors.
DateTimePickerThe drop-down calendar is dark; the field stays light.
TrackBar, ScrollBar, ProgressBarDark channel, scroll bars and bar.
DataGridViewDark background, grid lines, cells and headers; check box and combo box columns dark, if the grid has them when it is styled.
PropertyGridDark grid, categories, help and command areas, and a dark toolbar. On the .NET Framework the toolbar keeps its icons, which are made for a light background.
Panel, FlowLayoutPanel, TableLayoutPanel, SplitContainer, UserControlDark background, dark scroll bars.
MenuStrip, ToolStrip, StatusStrip, ContextMenuStripDark colors for every strip that uses the strip renderer of the application (ToolStripRenderMode.ManagerRenderMode, the default). On the .NET Framework the component replaces ToolStripManager.Renderer while the forms are dark and puts the previous one back in light mode, so an application with a renderer of its own sets it as the strips' Renderer instead.
Native menusThe system menu and the edit menu of text boxes are dark.
ToolTipDark tooltips, also on .NET 10, whose own dark mode leaves them light.

What Stays Light

The field of the DateTimePicker control, the frames of MDI child forms, the Fixed3D border of labels and panels and the border of the MDI client area stay light in both frameworks, as they do in the dark mode of Windows Forms in .NET 10. On the .NET Framework the drop-down buttons of combo box columns in a DataGridView stay light as well. A control that draws itself (an owner-drawn list, a control of another vendor) is given the dark colors but draws what it draws.

A control the application wants to keep as it is, for example a preview that must show the printed colors, can be excluded with the Styling event.