mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 19:10:49 +02:00
Add titles to windows
This commit is contained in:
parent
5b2e739ef3
commit
ab56765ebd
1 changed files with 13 additions and 5 deletions
|
@ -20,12 +20,8 @@ Frame {
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
id: controlsRow
|
id: controlsRow
|
||||||
anchors.right: parent.right
|
anchors { right: parent.right; top: parent.top; rightMargin: iconSize; topMargin: iconSize / 2; }
|
||||||
anchors.top: parent.top
|
|
||||||
anchors.rightMargin: iconSize
|
|
||||||
anchors.topMargin: iconSize / 2
|
|
||||||
spacing: iconSize / 4
|
spacing: iconSize / 4
|
||||||
|
|
||||||
FontAwesome {
|
FontAwesome {
|
||||||
visible: false
|
visible: false
|
||||||
text: "\uf08d"
|
text: "\uf08d"
|
||||||
|
@ -54,6 +50,18 @@ Frame {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Text {
|
||||||
|
id: titleText
|
||||||
|
anchors { left: parent.left; leftMargin: iconSize; right: controlsRow.left; rightMargin: iconSize; top: parent.top; topMargin: iconSize / 2; }
|
||||||
|
text: window.title
|
||||||
|
elide: Text.ElideRight
|
||||||
|
font.bold: true
|
||||||
|
color: window.focus ? "white" : "gray"
|
||||||
|
style: Text.Outline;
|
||||||
|
styleColor: "black"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue