Remove custom window title with system titlebar
Some checks failed
SwiftLint / SwiftLint (push) Successful in 5s
Deploy Docs / publish (push) Has been cancelled

This commit is contained in:
david-swift 2024-10-15 15:53:26 +02:00
parent 3e1404cc71
commit 570ed58e20

View File

@ -43,15 +43,17 @@ public struct Window: WinUISceneElement {
/// - Returns: The view. /// - Returns: The view.
func fullContent(window: WinUIWindow) -> Grid { func fullContent(window: WinUIWindow) -> Grid {
.init { .init {
Grid(columns: [.init()]) { if extendContent ?? false {
Text(title) Grid(columns: [.init()]) {
.style(.caption) Text(title)
.verticalAlignment(.center) .style(.caption)
.verticalAlignment(.center)
}
.titleBar()
.margin(48, .left)
.height(48)
.verticalAlignment(.top)
} }
.titleBar()
.margin(48, .left)
.height(48)
.verticalAlignment(.top)
content(window) content(window)
} }
} }