Compare commits

..
4 changed files with 8 additions and 4 deletions

View file

@ -148,7 +148,7 @@ PanelWindow {
M.WindowTitle {
id: _windowTitle
readonly property real _maxWidth: Math.max(0, centerSection.x - _windowTitleGroup.x - 2 * M.Theme.groupPadding - M.Theme.groupSpacing)
width: Math.min(naturalWidth, _maxWidth)
width: Math.min(implicitWidth, _maxWidth)
}
}
Item {

View file

@ -363,7 +363,8 @@ PanelWindow {
color: "transparent"
border.color: root.accentColor
border.width: 1
radius: M.Theme.radius
bottomLeftRadius: M.Theme.radius
bottomRightRadius: M.Theme.radius
opacity: panelContainer.opacity
}
}

View file

@ -6,7 +6,10 @@ Rectangle {
color: M.Theme.base01
opacity: Math.max(M.Theme.barOpacity, 0.85)
radius: M.Theme.radius
topLeftRadius: 0
topRightRadius: 0
bottomLeftRadius: M.Theme.radius
bottomRightRadius: M.Theme.radius
border.color: accentColor
border.width: 1
}

View file

@ -19,7 +19,7 @@ M.BarSection {
readonly property real _iconOffset: _icon.visible ? _icon.width + root.spacing : 0
// Natural content width Bar.qml uses this to cap the group width
readonly property real naturalWidth: _iconOffset + _label.implicitWidth
implicitWidth: _iconOffset + _label.implicitWidth
IconImage {
id: _icon