Skip to content

feat: add backgroundContent slot to TitleBar and MaterialTitleBar#104

Merged
kdroidFilter merged 1 commit intomainfrom
feat/titlebar-background-content
Mar 11, 2026
Merged

feat: add backgroundContent slot to TitleBar and MaterialTitleBar#104
kdroidFilter merged 1 commit intomainfrom
feat/titlebar-background-content

Conversation

@kdroidFilter
Copy link
Owner

@kdroidFilter kdroidFilter commented Mar 11, 2026

Summary

  • Adds a backgroundContent: @Composable () -> Unit parameter (default empty) to TitleBar and MaterialTitleBar
  • Propagates the new slot through all platform implementations: macOS, Windows, Linux — for both JBR and JNI backends
  • On Windows, the background content is composed alongside the existing customTitleBarMouseEventHandler spacer
  • Updates documentation for decorated-window and decorated-window-material
  • Adds CLAUDE.md project instructions

Test plan

  • Verify TitleBar with no backgroundContent arg behaves identically to before on macOS, Windows, Linux
  • Verify a custom backgroundContent (e.g. gradient Box) renders correctly behind controls on each platform
  • Verify MaterialTitleBar passes backgroundContent through correctly
  • Check JBR and JNI builds separately

Allow callers to inject composable content rendered behind the title bar
controls, propagated through all platform implementations (macOS, Windows,
Linux) for both JBR and JNI backends. Also adds CLAUDE.md and updates docs.
@kdroidFilter kdroidFilter merged commit b9cc76f into main Mar 11, 2026
22 checks passed
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