FluentUI/Gallery/res/qml/page/T_IconButton.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

74 lines
1.4 KiB
QML

import QtQuick
import QtQuick.Layouts
import QtQuick.Controls
import FluentUI.Controls
import Gallery
ScrollablePage {
title: qsTr("IconButton")
columnSpacing: 24
CardHighlight{
Layout.fillWidth: true
codeSnippet:
`import QtQuick
import QtQuick.Controls
import FluentUI.Controls
Row{
spacing: 10
IconButton{
text: "IconButton"
}
}
`}
CardHighlight{
Layout.fillWidth: true
codeSnippet:
`import QtQuick
import QtQuick.Controls
import FluentUI.Controls
import FluentUI.impl
Row{
spacing: 10
IconButton{
text: "Copy"
icon.name: FluentIcons.graph_Copy
icon.width: 18
icon.height: 18
spacing: 5
}
IconButton{
text: "Copy"
icon.name: FluentIcons.graph_Copy
icon.width: 18
icon.height: 18
spacing: 5
LayoutMirroring.enabled: true
}
IconButton{
text: "Copy"
icon.name: FluentIcons.graph_Copy
icon.width: 18
icon.height: 18
spacing: 5
display: IconButton.TextUnderIcon
}
IconButton{
text: "Copy"
icon.source: "qrc:/qt/qml/Gallery/res/image/logo.png"
width: 40
height: 40
icon.width: 18
icon.height: 18
display: IconButton.IconOnly
icon.color: "#00000000"
}
}
`}
}