on xenial help sign in
elide the window title in the title bar
commit118292256cb621c7f96a2cda68190ffd7f27c29c authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 27 Oct 2015, 15:57 (11 years ago) parentc36de80
2 files changed+5−1
qml/Stages/DecoratedWindow.qml+1 qml/Stages/WindowDecoration.qml+4−1
qml/Stages/DecoratedWindow.qml+1
@@ -67,6 +67,7 @@ FocusScope {
6767 objectName: application ? "appWindowDecoration_" + application.appId : "appWindowDecoration_null"
6868 anchors { left: parent.left; top: parent.top; right: parent.right }
6969 height: units.gu(3)
70+ width: root.width
7071 title: window.title !== "" ? window.title : model.name
7172 onClose: root.close();
7273 onMaximize: root.maximize();
qml/Stages/WindowDecoration.qml+4−1
@@ -71,11 +71,12 @@ MouseArea {
7171 }
7272
7373 Row {
74− anchors { left: parent.left; top: parent.top; bottom: parent.bottom; margins: units.gu(0.7) }
74+ anchors { fill: parent; margins: units.gu(0.7) }
7575 spacing: units.gu(1)
7676 opacity: root.active ? 1 : 0.5
7777
7878 WindowControlButtons {
79+ id: buttons
7980 height: parent.height
8081 onClose: root.close();
8182 onMinimize: root.minimize();
@@ -87,9 +88,11 @@ MouseArea {
8788 objectName: "windowDecorationTitle"
8889 color: "#DFDBD2"
8990 height: parent.height
91+ width: parent.width - buttons.width - parent.anchors.rightMargin - parent.anchors.leftMargin
9092 verticalAlignment: Text.AlignVCenter
9193 fontSize: "small"
9294 font.bold: true
95+ elide: Text.ElideRight
9396 }
9497 }
9598}