Remove custom window title with system titlebar
This commit is contained in:
parent
3e1404cc71
commit
570ed58e20
@ -43,15 +43,17 @@ public struct Window: WinUISceneElement {
|
||||
/// - Returns: The view.
|
||||
func fullContent(window: WinUIWindow) -> Grid {
|
||||
.init {
|
||||
Grid(columns: [.init()]) {
|
||||
Text(title)
|
||||
.style(.caption)
|
||||
.verticalAlignment(.center)
|
||||
if extendContent ?? false {
|
||||
Grid(columns: [.init()]) {
|
||||
Text(title)
|
||||
.style(.caption)
|
||||
.verticalAlignment(.center)
|
||||
}
|
||||
.titleBar()
|
||||
.margin(48, .left)
|
||||
.height(48)
|
||||
.verticalAlignment(.top)
|
||||
}
|
||||
.titleBar()
|
||||
.margin(48, .left)
|
||||
.height(48)
|
||||
.verticalAlignment(.top)
|
||||
content(window)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user