lez-programs/apps/amm/qml/components/wallet/WalletIconButton.qml
2026-06-30 11:59:27 -03:00

29 lines
766 B
QML

import QtQuick 2.15
import QtQuick.Controls 2.15
import Logos.Theme
// Small icon-only action button for the wallet menu. Uses the same Button +
// icon.source/icon.color path as LogosCopyButton, which renders reliably here
// (LogosIconButton's Image + MultiEffect shader path does not).
Button {
id: root
property url iconSource
property color iconColor: Theme.palette.textSecondary
property int iconSize: 18
property string accessibleName: ""
implicitWidth: 32
implicitHeight: 32
text: root.accessibleName
Accessible.name: root.accessibleName
display: AbstractButton.IconOnly
flat: true
icon.source: root.iconSource
icon.width: root.iconSize
icon.height: root.iconSize
icon.color: root.iconColor
}