Don't cut off title of windows without close icons

This commit is contained in:
Bradley Austin Davis 2016-02-02 14:01:44 -08:00
parent a025fab5c8
commit cede14fdc6

View file

@ -6,8 +6,10 @@ import "../controls"
Frame {
id: frame
property bool wideTopMargin: (window && (window.closable || window.title));
Rectangle {
anchors { margins: -iconSize; topMargin: -iconSize * ((window && window.closable) ? 2 : 1); }
anchors { margins: -iconSize; topMargin: -iconSize * (wideTopMargin ? 2 : 1); }
anchors.fill: parent;
color: "#7f7f7f7f";
radius: 3;