Settings: Rounded borders slider.
This commit is contained in:
parent
405c8717b9
commit
ba1c30ef54
5 changed files with 52 additions and 9 deletions
|
|
@ -7,15 +7,17 @@ import qs.Services
|
|||
|
||||
Rectangle {
|
||||
id: root
|
||||
color: Color.transparent
|
||||
property real imageRadius: width * 0.5
|
||||
radius: imageRadius
|
||||
|
||||
property string imagePath: ""
|
||||
property string fallbackIcon: ""
|
||||
property color borderColor: Color.transparent
|
||||
property real borderWidth: 0
|
||||
property real imageRadius: width * 0.5
|
||||
|
||||
property real scaledRadius: imageRadius * Settings.data.general.radiusRatio
|
||||
|
||||
color: Color.transparent
|
||||
radius: scaledRadius
|
||||
anchors.margins: Style.marginTiniest * scaling
|
||||
|
||||
// Border
|
||||
|
|
@ -54,7 +56,7 @@ Rectangle {
|
|||
visible: false
|
||||
Rectangle {
|
||||
anchors.fill: parent
|
||||
radius: root.imageRadius
|
||||
radius: scaledRadius
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue