From: Claudio Cambra Date: Mon, 10 Apr 2023 11:15:11 +0000 (+0800) Subject: Add FileTag QML component X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~10^2~49^2~30 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0bdab1ee587c4ba5cd71a1136465c22e15b5af25;p=nextcloud-desktop.git Add FileTag QML component Signed-off-by: Claudio Cambra --- diff --git a/resources.qrc b/resources.qrc index 1ec7ad1fa..2d7f22748 100644 --- a/resources.qrc +++ b/resources.qrc @@ -11,6 +11,7 @@ src/gui/filedetails/FileDetailsPage.qml src/gui/filedetails/FileDetailsView.qml src/gui/filedetails/FileDetailsWindow.qml + src/gui/filedetails/FileTag.qml src/gui/filedetails/NCInputTextEdit.qml src/gui/filedetails/NCInputTextField.qml src/gui/filedetails/NCTabButton.qml diff --git a/src/gui/filedetails/FileTag.qml b/src/gui/filedetails/FileTag.qml new file mode 100644 index 000000000..a4dc7bc29 --- /dev/null +++ b/src/gui/filedetails/FileTag.qml @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2023 by Claudio Cambra + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY + * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * for more details. + */ + +import QtQuick 2.15 + +import Style 1.0 +import "../tray" + +Rectangle { + property alias text: internalLabel.text + + border.color: Style.lightHover + border.width: Style.normalBorderWidth + + radius: Style.veryRoundedButtonRadius + + EnforcedPlainTextLabel { + id: internalLabel + + anchors.fill: parent + + color: Style.ncSecondaryTextColor + elide: Text.ElideRight + } +}