status-desktop/ui/app/AppLayouts/Wallet/controls/SwapExchangeButton.qml
Lukáš Tinkl f59ce285a9 fix(StatusBaseButton): correct radius and icon size for isRoundIcon mode
- this fixes 2 small regressions, namely in how we calculate the
background corner radius and icon size when in the mode of `isRoundIcon`
- the "Saved addresses" button in wallet's left view is very special on
its own; overall we have only 2 instances of this "round" icon buttons
in the whole app

Fixes #16156
2024-08-20 22:08:19 +02:00

23 lines
568 B
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
import StatusQ.Controls 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
focusPolicy: Qt.NoFocus
isRoundIcon: true
normalColor: Theme.palette.indirectColor3
disabledColor: normalColor
opacity: enabled ? 1 : 0.4
hoverColor: Theme.palette.directColor8
borderWidth: 1
borderColor: hovered ? Theme.palette.directColor7 : Theme.palette.directColor8
}