/weblaf-dark-material-skin

Dark material skin fo WebLaF

Primary LanguageJava

Dark Material skin for WebLaF

Dark Material skin based on built-in WebLaF DarkSkin.

Example

example

How to install

  1. Download and add WebLaF library to your project
  2. Download and add DarkMaterialSkin.jar library to your project
  3. Set style:
    • When installing WebLaF:
      WebLookAndFeel.install(DarkMaterialSkin.class);
    • Whenever you want:
      StyleManager.setSkin(DarkMaterialSkin.class);

Features

HiddenScrollPane

HiddenScrollPane uses transparent HiddenScrollPaneBar that minimized before you hover the mouse.

HiddenScrollPaneBar have default and hidden style. To change one of this style you need to call setDefaultStyle or setHoveredStyle.

When style isn't DarkMaterial, HiddenScrollPaneBar changes its style to StyleId.scrollbar. To change it you need to call setStyleForOtherSkin.

Default / Hovered state

scroll1 scroll2

DarkCollapsiblePane

DarkCollapsiblePane is a temporary solution to the problem with style.

DarkCollapsiblePane have default and hidden style. To change one of this style you need to call setDefaultStyle or setHiddenStyle.

When style isn't DarkMaterial, DarkCollapsiblePane changes its style to StyleId.collapsiblepane. To change it you need to call setStyleForOtherSkin.

Using WebCollapsiblePane

WebCollapsiblePane

Using DarkCollapsiblePane

DarkCollapsiblePane

Notes

Due to WebLaf problem, some components had to be done through a workaround. For correct work required to use DarkCollapsiblePane instead of default WebCollapsiblePane.

Styled components:

  • WebButton
  • WebCheckBox
  • WebCollapsiblePane (Check notes)
  • WebComboBox
  • WebDockableFrame
  • WebDockablePane
  • WebLabel
  • WebMenu
  • WebMenuBar
  • WebMenuItem
  • WebPanel
  • WebScrollBar
  • WebScrollPane
  • WebSeparator
  • WebTextField
  • WebToggleButon
  • WebToolBar