FreeKill/Fk/RoomElement/GlowText.qml

34 lines
856 B
QML
Raw Normal View History

// SPDX-License-Identifier: GPL-3.0-or-later
import QtQuick
import Qt5Compat.GraphicalEffects
Item {
property alias text: textItem.text
property alias color: textItem.color
property alias font: textItem.font
property alias fontSizeMode: textItem.fontSizeMode
property alias horizontalAlignment: textItem.horizontalAlignment
property alias verticalAlignment: textItem.verticalAlignment
property alias style: textItem.style
property alias styleColor: textItem.styleColor
property alias wrapMode: textItem.wrapMode
property alias elide: textItem.elide
property alias lineHeight: textItem.lineHeight
property alias glow: glowItem
width: textItem.implicitWidth
height: textItem.implicitHeight
Text {
id: textItem
anchors.fill: parent
}
Glow {
id: glowItem
source: textItem
anchors.fill: textItem
}
}