Skip to content
Version 2.11.0
↓ Get the launcher

IChromeStyle interface

User-selected global chrome control styles — the button + scrollbar look applied to every GlassMenu panel. Persisted with the theme; changing either fires the theme’s ActiveChanged so the renderer rebuilds its skin. A plugin may pin its own per-window button and scrollbar style via ButtonElement, which the user cannot override here.

public interface IChromeStyle
name description
ButtonStyle { get; } Currently active button visual style applied to all GlassMenu panels.
FontScale { get; } Global font scale (0.8–1.4). Same value as FontScale (the concrete theme implements both) — exposed here so the uGUI window renderer can scale its text without taking a second INamedTheme dependency.
ScrollbarStyle { get; } Currently active scrollbar visual style applied to all GlassMenu panels.
WindowOpacity { get; } Body opacity (0..1) of the native uGUI window chrome for the ACTIVE theme. Persisted per-preset so e.g. Default can stay translucent/frosted while Dark/Light read as near-opaque over bright in-world scenes. A custom theme inherits its base preset’s opacity.
SetButtonStyle(…) Changes the global button style and persists it with the active theme preset.
SetScrollbarStyle(…) Changes the global scrollbar style and persists it with the active theme preset.
SetWindowOpacity(…) Set WindowOpacity for the active theme’s preset (clamped to [0.3, 1]). Persists + fires ActiveChanged so the window chrome rebakes.