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

Recolors the skin from the semantic colors of a theme.
Paints the active tab of a property sheet, joined to the body below it with an accent line at its top.
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.
Paints the 'down' button of a scroll bar.
Paints the 'left' button of a scroll bar.
Paints the 'right' button of a scroll bar.
Paints the 'up' button of a scroll bar.
Paints the background of a category button according to its state and line parity.
Paints the background of a category list.
Paints a checkbox: an outlined box, filled with the accent color and a check mark while it is checked, dimmed while it is disabled.
Paints a collapsible category: a header band, and the frame of its contents while it is expanded.
Paints the background of a combo box like a text field, with the accent border while its menu is open.
Paints the drop-down arrow of a combo box according to the state of the combo box.
Paints the chevron that expands or collapses a tree node.
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.
Paints the track of a horizontal scroll bar.
Paints the background of a list box.
Paints the background of a list view, if it has one.
Paints the header of a list view column.
Paints the background of a list view line that is selected, hovered or alternate.
Paints the background of a menu: a rounded card with a border.
Paints the background of a menu bar.
Paints the highlight of a hovered menu option and the check mark of a checked one.
Paints the arrow of a menu option that opens a submenu.
Paints the separator line of a menu.
Paints the 'down' arrow of a number entry.
Paints the 'up' arrow of a number entry.
Paints the track of a number slider and fills it up to the knob in the accent color.
Paints the background of a panel, if it has one: a rounded box in its background color.
Paints a progress bar filled according to its fraction.
Paints the body of a property sheet below its tabs.
Paints a radio button: an outlined circle with a dot while it is checked.
Paints the grip of a scroll bar as a rounded pill that lights up while hovered.
Paints a selection highlight.
Paints a soft drop shadow around a panel.
Paints the knob of a slider as a filled circle.
Paints a tab of a property sheet, depending on whether it is the active one.
Paints a text entry: a sunken field with a border that takes the accent color while the entry has focus, then draws its text.
Paints the background of a tooltip.
Paints the background of a tree view, if it has one.
Paints the lines that connect a tree node to its parent, if the tree draws lines.
Paints the selection highlight behind the label of a selected tree node.
Paints the track of a vertical scroll bar.
Paints the close button of a window.
Paints the maximize button of a window.
Paints the minimize button of a window.

Methods

SKIN:apply_theme(theme)

client packages/active_ui/lib/cl_skin.lua:231

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

SKIN:PaintActiveTab(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:615

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

SKIN:PaintButton(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:416

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

SKIN:PaintButtonDown(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:741

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

SKIN:PaintButtonLeft(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:757

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

SKIN:PaintButtonRight(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:765

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

SKIN:PaintButtonUp(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:749

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

SKIN:PaintCategoryButton(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:976

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

SKIN:PaintCategoryList(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:968

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

SKIN:PaintCheckBox(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:451

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

SKIN:PaintCollapsibleCategory(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:950

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

SKIN:PaintComboBox(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:793

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

SKIN:PaintComboDownArrow(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:773

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

SKIN:PaintExpandButton(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:500

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

SKIN:PaintFrame(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:393

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

SKIN:PaintHScrollBar(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:684

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

SKIN:PaintListBox(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:813

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

SKIN:PaintListView(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:1012

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

SKIN:PaintListViewColumn(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:1022

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

SKIN:PaintListViewLine(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:994

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

SKIN:PaintMenu(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:531

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

SKIN:PaintMenuBar(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:1043

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

SKIN:PaintMenuOption(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:550

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

SKIN:PaintMenuRightArrow(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:568

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

SKIN:PaintMenuSpacer(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:539

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

SKIN:PaintNumberDown(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:829

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

SKIN:PaintNumberUp(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:821

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

SKIN:PaintNumSlider(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:896

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

SKIN:PaintPanel(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:369

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

SKIN:PaintProgress(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:931

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

SKIN:PaintPropertySheet(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:576

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

SKIN:PaintRadioButton(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:476

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

SKIN:PaintScrollBarGrip(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:694

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

SKIN:PaintSelection(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:864

Paints a selection highlight.

Parameters

  • _panel Panel the panel being painted
  • w Number width of the panel
  • h Number height of the panel

SKIN:PaintShadow(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:379

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

SKIN:PaintSliderKnob(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:872

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

SKIN:PaintTab(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:589

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

SKIN:PaintTextEntry(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:509

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

SKIN:PaintTooltip(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:1035

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

SKIN:PaintTree(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:440

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

SKIN:PaintTreeNode(panel, _w, h)

client packages/active_ui/lib/cl_skin.lua:837

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

SKIN:PaintTreeNodeButton(panel, _w, h)

client packages/active_ui/lib/cl_skin.lua:852

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

SKIN:PaintVScrollBar(_panel, w, h)

client packages/active_ui/lib/cl_skin.lua:674

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

SKIN:PaintWindowCloseButton(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:650

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

SKIN:PaintWindowMaximizeButton(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:666

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

SKIN:PaintWindowMinimizeButton(panel, w, h)

client packages/active_ui/lib/cl_skin.lua:658

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

Defined in