refactor: extract PopupBackground component for shared panel styling
This commit is contained in:
parent
1dea93e1bd
commit
50af43a76e
7 changed files with 26 additions and 42 deletions
|
|
@ -174,19 +174,13 @@ M.BarSection {
|
|||
onHoveredChanged: root._panelHovered = hovered
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
M.PopupBackground {
|
||||
x: panelContent.x
|
||||
y: panelContent.y
|
||||
width: panelContent.width
|
||||
height: panelContent.height
|
||||
color: M.Theme.base01
|
||||
opacity: panelContent.opacity * Math.max(M.Theme.barOpacity, 0.85)
|
||||
topLeftRadius: 0
|
||||
topRightRadius: 0
|
||||
bottomLeftRadius: M.Theme.radius
|
||||
bottomRightRadius: M.Theme.radius
|
||||
border.color: root.accentColor
|
||||
border.width: 1
|
||||
accentColor: root.accentColor
|
||||
}
|
||||
|
||||
Column {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue