Simplify FileTag component

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
Claudio Cambra 2023-04-12 01:29:41 +08:00
parent 791eb87afc
commit a3fc467cf0

View file

@ -17,20 +17,17 @@ import QtQuick 2.15
import Style 1.0
import "../tray"
Rectangle {
property alias text: internalLabel.text
EnforcedPlainTextLabel {
id: internalLabel
border.color: Style.lightHover
border.width: Style.normalBorderWidth
radius: Style.veryRoundedButtonRadius
EnforcedPlainTextLabel {
id: internalLabel
anchors.fill: parent
color: Style.ncSecondaryTextColor
elide: Text.ElideRight
background: Rectangle {
border.color: Style.lightHover
border.width: Style.normalBorderWidth
radius: Style.veryRoundedButtonRadius
color: "transparent"
}
color: Style.ncSecondaryTextColor
elide: Text.ElideRight
padding: Style.smallSpacing
}