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.
|
/// - 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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user