mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-24 11:40:43 +08:00
17 lines
398 B
QML
17 lines
398 B
QML
import QtQuick 2.15
|
|
|
|
Text {
|
|
|
|
property int icon
|
|
property int iconSize: 20
|
|
property color iconColor: FluTheme.isDark ? "#FFFFFF" : "#000000"
|
|
|
|
id:text_icon
|
|
font.family: "Segoe Fluent Icons"
|
|
font.pixelSize: iconSize
|
|
horizontalAlignment: Text.AlignHCenter
|
|
verticalAlignment: Text.AlignVCenter
|
|
color: iconColor
|
|
text: (String.fromCharCode(icon).toString(16));
|
|
}
|