Class DarkScrollBarUI

All Implemented Interfaces:
LayoutManager, SwingConstants

public class DarkScrollBarUI extends BasicScrollBarUI
Dark Scrollbar UI for the embedded Swing editor widgets (RSyntaxTextArea).

Swing uses the current look & feel for scrollbars and, embedded in JavaFX, that is the light Metal look - which clashes with the dark editor theme (cfg/edit.xml). This UI paints a dark track and a flat grey thumb and hides the arrow buttons, as a modern code editor does. It is applied by DefaultCodeEditorView.createScrollPane(RSyntaxTextArea) to both scrollbars of the editor's RTextScrollPane.

The colours match the editor theme: track = editor background, thumb = a grey derived from the gutter divider.