mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-04 18:55:44 +00:00
feat(StatusSettingsLineButton): make some of the component's props configurable
This helps with using this component in other places where the default settings for some UI related properties don't match otherwise.
This commit is contained in:
parent
38bd5f1422
commit
ea39ead64b
@ -10,9 +10,11 @@ Rectangle {
|
||||
property string currentValue
|
||||
property bool isBadge: false
|
||||
property string badgeText: "1"
|
||||
property int badgeRadius: 9
|
||||
property bool isEnabled: true
|
||||
signal clicked(bool checked)
|
||||
property bool isHovered: false
|
||||
property int badgeSize: 18
|
||||
|
||||
id: root
|
||||
height: 52
|
||||
@ -66,10 +68,10 @@ Rectangle {
|
||||
anchors.right: root.isSwitch ? switchItem.left : caret.left
|
||||
anchors.rightMargin: Style.current.padding
|
||||
anchors.verticalCenter: textItem.verticalCenter
|
||||
radius: 9
|
||||
radius: root.badgeRadius
|
||||
color: Style.current.blue
|
||||
width: 18
|
||||
height: 18
|
||||
width: root.badgeSize
|
||||
height: root.badgeSize
|
||||
Text {
|
||||
font.pixelSize: 12
|
||||
color: Style.current.white
|
||||
|
Loading…
x
Reference in New Issue
Block a user