mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-11-29 04:14:52 +03:00
94edf799b6
- New design based on Material Style - Light mode and Dark mode - Add support for custom CCID readers - New tray functionality - Support for favorite credentials Co-authored-by: Rikard <rikard@yubico.com>
33 lines
864 B
QML
33 lines
864 B
QML
import QtQuick 2.9
|
|
import QtQuick.Controls 2.2
|
|
import QtQuick.Layouts 1.3
|
|
import QtQuick.Controls.Material 2.2
|
|
import QtGraphicalEffects 1.0
|
|
|
|
Button {
|
|
|
|
property alias toolTipText: buttonToolTip.text
|
|
|
|
id: button
|
|
font.capitalization: Font.capitalization
|
|
font.weight: Font.Medium
|
|
Material.foreground: button.flat ? Material.primary : yubicoWhite
|
|
Material.background: button.flat ? "transparent" : Material.primary
|
|
Material.elevation: button.flat ? 0 : 1
|
|
|
|
ToolTip {
|
|
id: buttonToolTip
|
|
text: ""
|
|
delay: 1000
|
|
parent: button
|
|
visible: buttonToolTip.text.length > 0 && parent.hovered
|
|
Material.foreground: toolTipForeground
|
|
Material.background: toolTipBackground
|
|
}
|
|
MouseArea {
|
|
anchors.fill: parent
|
|
cursorShape: Qt.PointingHandCursor
|
|
enabled: false
|
|
}
|
|
}
|