From 4fe12bbabfe2bb4c468c66348afedb34aee0b783 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 16 Aug 2025 16:23:20 +0800 Subject: feat(Clip): metadatas(app it's taken from, timestamp) Persistent and Directories are partially copied from end4-dots which is GPL Licensed --- launcher/components/Clip.qml | 26 ++++++++++++++++++++++---- 1 file changed, 22 insertions(+), 4 deletions(-) (limited to 'launcher') diff --git a/launcher/components/Clip.qml b/launcher/components/Clip.qml index 568d508..29b5959 100644 --- a/launcher/components/Clip.qml +++ b/launcher/components/Clip.qml @@ -94,11 +94,29 @@ IComponent { anchors.margins: Launcher.innerMargin * 2 spacing: Launcher.innerMargin * 2 - IText { - text: modelData?.isImage ? "Image" : "Text" || "" + IconImage { + source: modelData?.appIcon + implicitSize: parent.height } - IText { - text: modelData?.data || "" + + Column { + IText { + text: modelData?.data || "" + font.pixelSize: Style.font.size.largerr + } + Row { + spacing: Launcher.innerMargin + IText { + text: modelData.isImage ? "Image" : "Text" + color: Colors.foreground3 + font.pixelSize: Style.font.size.normal + } + IText { + text: TimeDate.sinceWhen(modelData?.timestamp) || "" + color: Colors.foreground3 + font.pixelSize: Style.font.size.normal + } + } } } -- cgit v1.2.3