Bring on gradient borders
This commit is contained in:
@@ -1022,10 +1022,9 @@ Panel {
|
|||||||
event.accepted = true
|
event.accepted = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
background: Rectangle {
|
background: BorderSurface {
|
||||||
color: Color.background
|
color: Color.background
|
||||||
border.color: root.dim
|
borderSpec: Border.flat(root.dim, 1)
|
||||||
border.width: 1
|
|
||||||
radius: Style.cornerRadius
|
radius: Style.cornerRadius
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,5 +1,6 @@
|
|||||||
import QtQuick
|
import QtQuick
|
||||||
import qs.Commons
|
import qs.Commons
|
||||||
|
import qs.Ui
|
||||||
|
|
||||||
Item {
|
Item {
|
||||||
id: root
|
id: root
|
||||||
@@ -42,7 +43,7 @@ Item {
|
|||||||
rotation: -45
|
rotation: -45
|
||||||
}
|
}
|
||||||
|
|
||||||
Rectangle {
|
BorderSurface {
|
||||||
visible: root.warning
|
visible: root.warning
|
||||||
width: Math.max(7, parent.width * 0.42)
|
width: Math.max(7, parent.width * 0.42)
|
||||||
height: width
|
height: width
|
||||||
@@ -50,8 +51,7 @@ Item {
|
|||||||
color: root.badgeColor
|
color: root.badgeColor
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
border.color: Color.popups.background
|
borderSpec: Border.flat(Color.popups.background, 1)
|
||||||
border.width: 1
|
|
||||||
|
|
||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
|||||||
Reference in New Issue
Block a user