CanleyColourPickerTheme
Namespace: Canley.Utility.ColourPicker
Base Class: MonoBehaviour
Overview
CanleyColourPickerTheme acts as a global style sheet for the Colour Picker suite. It allows developers to centralize UI aesthetics—such as fonts, colors, and font sizes—ensuring that updates to the visual style are applied instantly across all picker components.
The script utilizes [ExecuteAlways] to provide real-time visual feedback directly within the Unity Editor as settings are adjusted in the Inspector.
Method Reference
Each method is documented in its own dedicated file within the CanleyColourPickerTheme subfolder.
| Class | Method (Syntax) | Description |
|---|---|---|
| CanleyColourPickerTheme | ApplyTheme() | Forces a manual refresh of all UI component visuals (Fonts, Sizes, Button Colors) based on current Inspector settings. |
Key Settings
These configurations are accessible via the Inspector to customize the look and feel of the picker:
- Heading Settings: Controls the font and color for channel labels like R, G, B, and A.
- Input Field Settings: Defines the typography and sizing for numerical and hexadecimal text inputs.
- Button Styles: Separate color and text settings for Primary (Select/Confirm) and Secondary (Cancel/Dismiss) interaction groups.
NOTE
Editor Persistence: While in the Unity Editor, this script automatically marks components as “dirty” when changes are made, ensuring your theme customizations persist through Play Mode.