Skip to content

Add centralized UIColorPalette for consistent UI colors#1514

Closed
JakubIwicki wants to merge 1 commit into
RE-SS3D:developfrom
JakubIwicki:fix/1377-color-picker
Closed

Add centralized UIColorPalette for consistent UI colors#1514
JakubIwicki wants to merge 1 commit into
RE-SS3D:developfrom
JakubIwicki:fix/1377-color-picker

Conversation

@JakubIwicki

Copy link
Copy Markdown

Closes #1377

The project lacked a centralized way to pick and reuse UI colors, leading to hardcoded color values scattered across components. This adds a ScriptableObject-based color palette.

Changes

  • Assets/Scripts/SS3D/Data/UIColorPalette.cs — new ScriptableObject with categorized UI colors (Primary, Background, Text, Status, Button) accessible via UIColorPalette.Current

Usage

// Access the palette from any MonoBehaviour
var palette = UIColorPalette.Current;
myText.color = palette.TextPrimary;
myButton.image.color = palette.ButtonNormal;

Verification

  • ScriptableObject can be created via Assets > Create > SS3D > UI > Color Palette
  • All color categories are exposed in the inspector for easy editing
  • Colors are accessible in code via the static Current accessor

Introduces a ScriptableObject-based color palette system that can be
created via the Create Asset menu and accessed in code via
UIColorPalette.Current. Includes Primary, Background, Text, Status,
and Button color categories.

Closes RE-SS3D#1377
@JakubIwicki JakubIwicki deployed to unity_tests June 5, 2026 12:05 — with GitHub Actions Active
@Alainx277

Copy link
Copy Markdown
Collaborator

PRs by AI agents are not allowed

@Alainx277 Alainx277 closed this Jun 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a way to pick colors consistently

2 participants