mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-22 12:29:37 +00:00
feat: introduce StatusImageRadioButton
This commit is contained in:
parent
6b3f9a31c2
commit
7a92eaf106
38
ui/shared/status/StatusImageRadioButton.qml
Normal file
38
ui/shared/status/StatusImageRadioButton.qml
Normal file
@ -0,0 +1,38 @@
|
||||
import QtQuick 2.13
|
||||
import QtQuick.Controls 2.13
|
||||
import QtQuick.Controls.Universal 2.12
|
||||
import "../../imports"
|
||||
import "../../shared"
|
||||
import "./"
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
||||
property int padding: Style.current.padding
|
||||
property alias control: radioControl
|
||||
property alias image: img
|
||||
|
||||
width: 312
|
||||
height: 258
|
||||
color: radioControl.checked ? Style.current.secondaryBackground : Style.current.transparent
|
||||
|
||||
radius: Style.current.radius
|
||||
|
||||
SVGImage {
|
||||
id: img
|
||||
anchors.top: parent.top
|
||||
anchors.topMargin: root.padding
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: root.padding
|
||||
anchors.right: parent.right
|
||||
anchors.rightMargin: root.padding
|
||||
}
|
||||
|
||||
StatusRadioButton {
|
||||
id: radioControl
|
||||
anchors.top: img.bottom
|
||||
anchors.topMargin: root.padding
|
||||
anchors.left: parent.left
|
||||
anchors.leftMargin: root.padding
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user