File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1616
1717 property var messageStack
1818 property var stagesListContainer
19+ property var applicationLogo
1920
2021 property bool is40
2122 property bool isLE44
8384 stagesListContainer .anchors .left = stagesListContainer .parent .left
8485 stagesListContainer .anchors .leftMargin = Math .floor ((base .width - printSetupSelector .width - stagesListContainer .width ) / 2 )
8586
87+ // hide application logo if there is no room for it
88+ applicationLogo = mainWindowHeader .children [0 ] // declared as property above
89+ applicationLogo .visible = stagesListContainer .anchors .leftMargin > applicationLogo .width + 2 * UM .Theme .getSize (" default_margin" ).width
90+
8691 // compensate viewport for full-height sidebar
8792 base .viewportRect = Qt .rect (0 , 0 , (base .width - sidebarWidth) / base .width , 1.0 )
8893
140145
141146 // adjust stages menu position for sidebar
142147 stagesListContainer .anchors .leftMargin = Math .floor ((base .width - printSetupSelector .width - stagesListContainer .width ) / 2 )
148+
149+ // hide application logo if there is no room for it
150+ applicationLogo .visible = stagesListContainer .anchors .leftMargin > applicationLogo .width + 2 * UM .Theme .getSize (" default_margin" ).width
143151 }
144152 }
145153
You can’t perform that action at this time.
0 commit comments