The 'Flux' Derma skin, which Flux makes the default skin of all Derma panels: a flat, dark
skin that draws the stock controls (frames, buttons, text entries, lists, trees, menus,
sliders, tabs and tooltips) with rounded boxes and FontAwesome glyphs instead of the GWEN
texture atlas. Its colors are a palette of plain fields on the skin table, so that a theme can
recolor the whole of Derma: SKIN:apply_theme maps the semantic colors of the active theme
('surface', 'border', 'text', 'accent' and so on) onto those fields and is run by
Theme.set_derma_skin whenever a theme is loaded, after the skin table of the theme has
been copied over. The defaults below match the factory theme, so the skin looks right before
any theme has loaded.
Summary
Methods
Methods
Recolors the skin from the semantic colors of a theme. Every field of the palette and
every entry of Colours is set, so a theme only has to define its colors; it can still
override single fields through its skin table, which Theme.set_derma_skin copies over
before it calls this.
Parameters
- theme ThemeBase the theme that has been loaded
Paints the active tab of a property sheet, joined to the body below it with an accent line at its top.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the background of a button according to its state: filled with the accent color while it is pressed or selected, lighter while it is hovered and dimmed while it is disabled.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the 'down' button of a scroll bar.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the 'left' button of a scroll bar.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the 'right' button of a scroll bar.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the 'up' button of a scroll bar.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the background of a category button according to its state and line parity.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the background of a category list.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints a checkbox: an outlined box, filled with the accent color and a check mark while it is checked, dimmed while it is disabled.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints a collapsible category: a header band, and the frame of its contents while it is expanded.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the background of a combo box like a text field, with the accent border while its menu is open.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the drop-down arrow of a combo box according to the state of the combo box.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the chevron that expands or collapses a tree node.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints a window frame: a rounded card with a header band behind the title bar and a soft shadow, dimmed while the frame does not have focus.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the track of a horizontal scroll bar.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the background of a list box.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the background of a list view, if it has one.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the header of a list view column.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the background of a list view line that is selected, hovered or alternate.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the background of a menu: a rounded card with a border.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the background of a menu bar.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the highlight of a hovered menu option and the check mark of a checked one.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the arrow of a menu option that opens a submenu.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the separator line of a menu.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the 'down' arrow of a number entry.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the 'up' arrow of a number entry.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the track of a number slider and fills it up to the knob in the accent color.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the background of a panel, if it has one: a rounded box in its background color.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints a progress bar filled according to its fraction.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the body of a property sheet below its tabs.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints a radio button: an outlined circle with a dot while it is checked.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the grip of a scroll bar as a rounded pill that lights up while hovered.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints a selection highlight.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints a soft drop shadow around a panel.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the knob of a slider as a filled circle.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints a tab of a property sheet, depending on whether it is the active one.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints a text entry: a sunken field with a border that takes the accent color while the entry has focus, then draws its text.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the background of a tooltip.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the background of a tree view, if it has one.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the lines that connect a tree node to its parent, if the tree draws lines.
Parameters
- panel Panel the panel being painted
- _w Number width of the panel
- h Number height of the panel
Paints the selection highlight behind the label of a selected tree node.
Parameters
- panel Panel the panel being painted
- _w Number width of the panel
- h Number height of the panel
Paints the track of a vertical scroll bar.
Parameters
- _panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the close button of a window.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the maximize button of a window.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel
Paints the minimize button of a window.
Parameters
- panel Panel the panel being painted
- w Number width of the panel
- h Number height of the panel