Skip to content

Commit d0c8d9c

Browse files
authored
Add Color Palette section to README
Added color palette section with images and explanations.
1 parent a3675f2 commit d0c8d9c

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,17 @@ protected override IEnumerator OnExitTransition()
250250
- **Cull Windows Behind**: If a view has `cullWindowsBehind` enabled, all views below it in the stack have their `Canvas` disabled entirely. Useful for fullscreen views where nothing behind them is visible.
251251
- **OnBecomeForeground**: Override this virtual method in your `MonoView` subclass to react when the view returns to the top of the stack (e.g., after the view above it is popped).
252252

253+
# Color Palette
254+
255+
Color Palette Scriptable Object:
256+
<img width="402" height="739" alt="image" src="https://github.com/user-attachments/assets/364494b0-a5d9-4978-abc5-b9100ddd65a1" />
257+
258+
Colored Graphic Component:
259+
<img width="402" height="318" alt="image" src="https://github.com/user-attachments/assets/103486d4-2121-4bb3-8676-06183b564c99" />
260+
261+
The `ColoredGraphic` will pick the closest `IPaletteProvder`, the `ViewStack` is one and you can also add a `PaletteProvider` component closer to override specific parts of your UI's theme/colors.
262+
It can also auto transition between different colors for a silky smooth change.
263+
253264
# Sounds2D
254265

255266
A lightweight, fire-and-forget 2D audio system. It manages a small pool of `AudioSource` components (up to 5) on a `DontDestroyOnLoad` GameObject, so you never have to wire up audio sources yourself.

0 commit comments

Comments
 (0)