Table of Contents

Class ScrollbarPaletteResolver

Namespace
SharpConsoleUI.Helpers.Scrollbar
Assembly
SharpConsoleUI.dll

Resolves a scrollbar's thumb and track colours the same way for every control, so that theme-driven scrollbar colours are no longer a per-control accident.

public static class ScrollbarPaletteResolver
Inheritance
ScrollbarPaletteResolver
Inherited Members

Remarks

The cascade, in order: an explicit override wins outright; otherwise a focus-aware theme colour; otherwise a hardcoded fallback. IsEnabled dims a disabled bar to its unfocused colours — the library has no separate "disabled scrollbar" theme colour, so this is the same treatment every other control-level disabled state falls back to when no dedicated colour exists.

Methods

Resolve(ScrollbarPaletteRequest)

Resolves the thumb and track colours for one scrollbar paint.

public static ScrollbarPalette Resolve(ScrollbarPaletteRequest request)

Parameters

request ScrollbarPaletteRequest

The override, theme, focus, enabled and background inputs to resolve from.

Returns

ScrollbarPalette

The resolved ScrollbarPalette.