FluentUI/Gallery/res/qml/page/T_HyperlinkButton.qml
yxdy a44db97aa3
Some checks failed
Gallery App Build / Windows (push) Has been cancelled
Gallery App Build / macOS (push) Has been cancelled
Gallery App Build / Ubuntu (push) Has been cancelled
init
2025-02-12 10:31:20 +08:00

66 lines
1.6 KiB
QML

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import FluentUI.Controls
import Gallery
ScrollablePage {
title: qsTr("HyperlinkButton")
CardHighlight{
Layout.fillWidth: true
codeSnippet:
`import QtQuick
import QtQuick.Controls
import FluentUI.Controls
import FluentUI.impl
Column{
spacing: 20
HyperlinkButton{
text: "https://github.com/zhuzichu520/FluentUI"
onClicked: {
Qt.openUrlExternally(text)
}
}
HyperlinkButton{
text: "https://github.com/zhuzichu520/FluentUI"
FluentUI.primaryColor: Qt.rgba(13/255,110/255,253/255,1)
onClicked: {
Qt.openUrlExternally(text)
}
}
HyperlinkButton{
text: "https://github.com/zhuzichu520/FluentUI"
FluentUI.primaryColor: Qt.rgba(25/255,135/255,84/255,1)
onClicked: {
Qt.openUrlExternally(text)
}
}
HyperlinkButton{
text: "https://github.com/zhuzichu520/FluentUI"
FluentUI.primaryColor: Qt.rgba(220/255,53/255,69/255,1)
onClicked: {
Qt.openUrlExternally(text)
}
}
HyperlinkButton{
text: "https://github.com/zhuzichu520/FluentUI"
FluentUI.primaryColor: Qt.rgba(255/255,193/255,7/255,1)
onClicked: {
Qt.openUrlExternally(text)
}
}
HyperlinkButton{
text: "https://github.com/zhuzichu520/FluentUI"
FluentUI.primaryColor: Qt.rgba(13/255,202/255,240/255,1)
onClicked: {
Qt.openUrlExternally(text)
}
}
}
`}
}