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