fishy
09/29/2026, 10:53 PMDaniel Souza Bertoldi
09/30/2026, 1:39 PMKirill Grouchnikov
09/30/2026, 2:23 PMseb
09/30/2026, 3:21 PMseb
09/30/2026, 3:21 PMfishy
09/30/2026, 9:00 PMDaniel Souza Bertoldi
09/30/2026, 10:30 PM* A Compose window with custom JetBrains Runtime (JBR) window decorations, including support for a custom [TitleBar].
* Requires the application to run on JetBrains Runtime; an error is thrown at runtime if JBR is not available.
github.com/JetBrains/intellij-community/blob/…/DecoratedWindow.kt#…fishy
09/30/2026, 10:31 PMseb
10/01/2026, 7:45 AMfishy
10/01/2026, 7:56 AMpackage dev.fishies.barreleye
import androidx.compose.ui.window.application
import org.jetbrains.jewel.ui.component.ActionButton
import org.jetbrains.jewel.ui.component.Text
import org.jetbrains.jewel.window.DecoratedWindow
import org.jetbrains.jewel.window.TitleBar
import org.jetbrains.jewel.window.styling.DecoratedWindowColors
import org.jetbrains.jewel.window.styling.DecoratedWindowStyle
import org.jetbrains.jewel.window.styling.TitleBarColors
import org.jetbrains.jewel.window.styling.TitleBarStyle
import org.jetbrains.jewel.window.styling.*
import org.jetbrains.jewel.intui.standalone.theme.IntUiTheme
import org.jetbrains.jewel.intui.standalone.theme.darkThemeDefinition
import org.jetbrains.jewel.intui.standalone.theme.default
import org.jetbrains.jewel.foundation.theme.JewelTheme
import org.jetbrains.jewel.ui.ComponentStyling
import org.jetbrains.jewel.intui.window.decoratedWindow
import org.jetbrains.jewel.ui.component.*
import org.jetbrains.jewel.foundation.*
import org.jetbrains.jewel.intui.window.styling.dark
import org.jetbrains.jewel.intui.window.styling.light
fun main() = application {
IntUiTheme(
theme = JewelTheme.darkThemeDefinition(),
styling = ComponentStyling.default().decoratedWindow(
titleBarStyle = TitleBarStyle.light()
),
) {
DecoratedWindow(::exitApplication) {
TitleBar {
Text("Hi")
}
ActionButton({}) {
Text("Hi!")
}
}
}
}
works fine (excuse the bad formatting, this was done in notepad in my VM). I'll have to try to narrow down what I'm doing wrong laterseb
10/01/2026, 7:58 AM