Skip to content

Conversation

@ariane-emory
Copy link
Contributor

@ariane-emory ariane-emory commented Dec 9, 2025

This PR adds a new, optional backgroundSidebar theme property that:

  • Allows independent theming of sidebar background separate from chat message panels
  • If not present in the theme, falls back to backgroundPanel for backward compatibility
  • Updates core theme system with proper type definitions and resolution logic
  • Updates TUI sidebar component to use new theme property
  • Does NOT require modification built-in themes or users' custom themes - they use fallback logic automatically

This enables users to theme sidebar background independently while maintaining full backward compatibility with all existing themes (both stock and custom).

Resolves #5286.

…sidebar theming

Resolves GitHub issue sst#5286 by adding a new sidebarBackgroundPanel theme property that:
- Allows independent theming of sidebar background separate from chat message panels
- Falls back to backgroundPanel for backward compatibility (as requested by ariane-emory)
- Updates core theme system with proper type definitions and resolution logic
- Updates TUI sidebar component to use new theme property
- Does NOT modify built-in themes - they use fallback logic automatically

This enables users to theme sidebar background independently while maintaining full
backward compatibility with all existing themes.
@ariane-emory ariane-emory changed the title feat(tui): add sidebarBackgroundPanel theme property for independent configuration of the sidebar's background colour (resolves #5286) feat: add sidebarBackgroundPanel theme property for independent configuration of the sidebar's background colour (resolves #5286) Dec 9, 2025
@ariane-emory ariane-emory marked this pull request as draft December 9, 2025 23:01
@jesseleite
Copy link

Yesss 🎉

Also, thinking of the existing naming conventions, do you think it should it be backgroundSidebar maybe?

@ariane-emory
Copy link
Contributor Author

Sure, I can change the name if you'd like. There's also a test GH action failing presently, as you can see on this page. Gimme little longer get that done, OC somehow trounced part of my usual dev env and putting it back together might take me another hour or two.

@jesseleite
Copy link

Sure, I can change the name if you'd like.

That's probably more of a Dax/Adam question though! ❤️

Rename sidebarBackgroundPanel to backgroundSidebar to allow independent
theming of sidebar background color from chat message panels. This addresses
GitHub issue sst#5286 where users wanted to theme the sidebar background
separately from the backgroundPanel used by chat messages.

Changes:
- Rename ThemeColors.sidebarBackgroundPanel to backgroundSidebar
- Update ThemeJson type definitions
- Update theme resolution logic with fallback to backgroundPanel
- Update sidebar component to use new property name
- Maintain backward compatibility through optional fallback
@ariane-emory ariane-emory marked this pull request as ready for review December 10, 2025 06:02
@ariane-emory ariane-emory changed the title feat: add sidebarBackgroundPanel theme property for independent configuration of the sidebar's background colour (resolves #5286) feat: add backgroundSidebar theme property for independent configuration of the sidebar's background colour (resolves #5286) Dec 10, 2025
@ariane-emory ariane-emory marked this pull request as draft December 10, 2025 23:30
@ariane-emory
Copy link
Contributor Author

Corrupted by a bad merge, will fix.

@ariane-emory ariane-emory force-pushed the feat/sidebar-color-prop-5286 branch 2 times, most recently from 7918faf to 79bfb34 Compare December 11, 2025 00:37
@ariane-emory
Copy link
Contributor Author

Uncorrupted.

@ariane-emory ariane-emory marked this pull request as ready for review December 11, 2025 00:38
@ariane-emory ariane-emory force-pushed the feat/sidebar-color-prop-5286 branch from a4cb23e to ed52e99 Compare December 11, 2025 17:43
@ariane-emory ariane-emory marked this pull request as draft December 13, 2025 00:51
@ariane-emory ariane-emory force-pushed the feat/sidebar-color-prop-5286 branch from dcbe925 to ed52e99 Compare December 13, 2025 01:56
@ariane-emory ariane-emory marked this pull request as ready for review December 13, 2025 01:58
…y/opencode into feat/sidebar-color-prop-5286
…y/opencode into feat/sidebar-color-prop-5286
@ariane-emory ariane-emory force-pushed the feat/sidebar-color-prop-5286 branch from 57a2e93 to 1626d89 Compare December 27, 2025 03:27
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.

[FEATURE]: Separate theming of sidebar background color

3 participants