RibbonWindow: Add new border.
This commit is contained in:
parent
c1f025c4d4
commit
1383cd831d
|
@ -37,14 +37,20 @@ Window {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
RibbonTitleBar {
|
RibbonTitleBar {
|
||||||
id: titleBar
|
id: titleBar
|
||||||
|
anchors.topMargin: border_rect.border.width
|
||||||
|
anchors.leftMargin: border_rect.border.width
|
||||||
|
anchors.rightMargin: border_rect.border.width
|
||||||
}
|
}
|
||||||
Item{
|
Item{
|
||||||
id:container
|
id:container
|
||||||
anchors{
|
anchors{
|
||||||
top: titleBar.bottom
|
top: titleBar.bottom
|
||||||
left: parent.left
|
left: parent.left
|
||||||
|
leftMargin: border_rect.border.width
|
||||||
right: parent.right
|
right: parent.right
|
||||||
|
rightMargin: border_rect.border.width
|
||||||
bottom: parent.bottom
|
bottom: parent.bottom
|
||||||
|
bottomMargin: border_rect.border.width
|
||||||
}
|
}
|
||||||
clip: true
|
clip: true
|
||||||
}
|
}
|
||||||
|
@ -64,6 +70,15 @@ Window {
|
||||||
color: !RibbonTheme.dark_mode ? Qt.rgba(255,255,255,0.3) : Qt.rgba(0,0,0,0.3)
|
color: !RibbonTheme.dark_mode ? Qt.rgba(255,255,255,0.3) : Qt.rgba(0,0,0,0.3)
|
||||||
visible: !Window.active
|
visible: !Window.active
|
||||||
}
|
}
|
||||||
|
Rectangle{
|
||||||
|
id: border_rect
|
||||||
|
anchors.fill: parent
|
||||||
|
color: 'transparent'
|
||||||
|
border.color: RibbonTheme.dark_mode ? "#7A7A7A" : "#2C59B7"
|
||||||
|
border.width: RibbonTheme.modern_style ? 1 : 0
|
||||||
|
radius: 10
|
||||||
|
visible: RibbonTheme.modern_style
|
||||||
|
}
|
||||||
RibbonPopup{
|
RibbonPopup{
|
||||||
id: pop
|
id: pop
|
||||||
target: window_items
|
target: window_items
|
||||||
|
|
Loading…
Reference in New Issue