This commit is contained in:
朱子楚
2023-05-17 20:20:29 +08:00
parent 4e4760e37f
commit 1446fd8933
4 changed files with 15 additions and 6 deletions

View File

@ -20,6 +20,7 @@ Rectangle{
property color closeHoverColor: Qt.rgba(251/255,115/255,115/255,1)
property bool showDark: false
property bool titleVisible: true
property bool isMac: Qt.platform.os === "osx"
property color borerlessColor : FluTheme.dark ? FluTheme.primaryColor.lighter : FluTheme.primaryColor.dark
id:root
color: Qt.rgba(0,0,0,0)
@ -45,14 +46,16 @@ Rectangle{
text: title
anchors{
verticalCenter: parent.verticalCenter
left: parent.left
leftMargin: 10
left: isMac ? undefined : parent.left
leftMargin: isMac ? undefined : 10
horizontalCenter: isMac ? parent.horizontalCenter : undefined
}
visible: root.titleVisible
color:root.textColor
}
RowLayout{
anchors.right: parent.right
visible: !isMac
height: root.height
spacing: 0
RowLayout{

View File

@ -19,6 +19,7 @@ Item {
property int displayMode: FluNavigationView.Auto
property Component autoSuggestBox
property Component actionItem
property int topPadding: 0
enum PageModeFlag{
Standard = 0,
SingleTop = 1,
@ -456,6 +457,10 @@ Item {
id:nav_app_bar
width: parent.width
height: 40
anchors{
top: parent.top
topMargin: control.topPadding
}
z:999
RowLayout{
height:parent.height
@ -637,7 +642,7 @@ Item {
id:layout_header
width: layout_list.width
clip: true
y:nav_app_bar.height
y:nav_app_bar.height+control.topPadding
height: autoSuggestBox ? 38 : 0
Loader{
id:loader_auto_suggest_box