mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-27 22:11:10 +00:00
- create a custom circle button component for the Swap popup, with the needed click event and a border area that can be overlaped with the background as it looks in the design Fixes #14782
22 lines
523 B
QML
22 lines
523 B
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
|
|
import StatusQ.Controls 0.1
|
|
import StatusQ.Core 0.1
|
|
import StatusQ.Core.Theme 0.1
|
|
|
|
StatusButton {
|
|
implicitWidth: 44
|
|
implicitHeight: 44
|
|
|
|
icon.name: hovered ? "arrow-up" : "arrow-down"
|
|
icon.color: Theme.palette.baseColor1
|
|
|
|
isRoundIcon: true
|
|
radius: height/2
|
|
normalColor: Theme.palette.indirectColor3
|
|
hoverColor: Theme.palette.directColor8
|
|
borderWidth: 1
|
|
borderColor: hovered ? Theme.palette.directColor7 : Theme.palette.directColor8
|
|
}
|