summaryrefslogtreecommitdiff
path: root/launcher
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-08-16 16:23:20 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-08-16 16:23:20 +0800
commit4fe12bbabfe2bb4c468c66348afedb34aee0b783 (patch)
tree904ce21bf2b39d988483d91a585a23ede5da424b /launcher
parentc4eca807dacd407af939c2200055acb4326ccfe0 (diff)
feat(Clip): metadatas(app it's taken from, timestamp)
Persistent and Directories are partially copied from end4-dots which is GPL Licensed
Diffstat (limited to 'launcher')
-rw-r--r--launcher/components/Clip.qml26
1 files changed, 22 insertions, 4 deletions
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
+ }
+ }
}
}