Skip to content

Theme: Set it as default for the whole project#2343

Open
manuq wants to merge 4 commits into
mainfrom
global-theme
Open

Theme: Set it as default for the whole project#2343
manuq wants to merge 4 commits into
mainfrom
global-theme

Conversation

@manuq

@manuq manuq commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Otherwise, each Control scene has to set the theme to a root node for viewing it correctly in the editor, while the game doesn't need it.

Remove duplicate themes in the StoryBook. Instead, new theme variation or theme overrides should be used.

Otherwise, each Control scene has to set the theme to a root node for viewing it
correctly in the editor, while the game doesn't need it.

Remove duplicate themes in the StoryBook. Instead, new theme variation or theme
overrides should be used.
@manuq

manuq commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator Author

Draft for now because I spotted that the sign panel wasn't using our theme:
Screenshot From 2026-06-10 14-44-07

Also the StoryBook has regressed. It was using 2 custom themes in 2 nodes, that were a duplicate of our theme:

Screenshot From 2026-06-10 14-37-41 Screenshot From 2026-06-10 14-37-50 Screenshot From 2026-06-10 14-38-45 Screenshot From 2026-06-10 14-38-50

@github-actions

Copy link
Copy Markdown

Play this branch at https://play.threadbare.game/branches/endlessm/global-theme/.

(This launches the game from the start, not directly at the change(s) in this pull request.)

manuq added 3 commits June 10, 2026 15:53
In the theme, rename the FixedSizeLabelContainer variant to FlatContainer. And
use it for the sign. Also, add placeholder text to the sign so it can be seen in
the editor.
As in the default theme. Add 16px margin override to some of these containers.

The InputHUD and the similar control with input hints in the pause overlay
weren't using the Threadbare theme, so they looked odd with 16px margin in all
sides.
This is what the custom theme was doing.
@manuq manuq marked this pull request as ready for review June 10, 2026 21:08
@manuq manuq requested a review from a team as a code owner June 10, 2026 21:08
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.

1 participant