FreeKill/Fk/RoomElement/GlowText.qml

33 lines
817 B
QML
Raw Permalink 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 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
}
}