Benni H.
04/25/2025, 4:14 PMTitlebar
in my standalone CMP desktop app, but I am running into an issue with a large offset on the left side (on macOS).
I guess it's intended for reserving space for the menu buttons, but also isn't the right size either.
TitleBar {
Box(
modifier = Modifier
.background(Color.LightGray)
.fillMaxSize()
)
}
Is this intended behavior? how can this padding on the left side be changed?
Or is is it possible to access the value of the padding to offset the background accordingly?seb
04/26/2025, 7:46 AMseb
04/26/2025, 7:48 AMModifier.newFullscreenControls()
to the TitleBar
Benni H.
04/26/2025, 7:51 AMseb
04/26/2025, 7:52 AMseb
04/26/2025, 10:16 AMseb
04/26/2025, 10:17 AMBenni H.
10/06/2025, 7:51 AMTitleBar
background can be changed via the style
parameter.
The title-bar does't really support full-width content (i.e.: composables with fillMaxWidth
), but wants item to be positioned using its TitleBarScope
receiver, which allows for aligning composables start/middle/end using align
modifier.
Seems logical in hindsight, but took me a while to figure out 😅