diff cagou/kv/common_widgets.kv @ 424:027fad764864

common widgets: ImagesGallery first draft: This widget handle the fullscreen display of images. Some features like sharing or download are planned in the future.
author Goffi <goffi@goffi.org>
date Wed, 26 Feb 2020 16:43:48 +0100
parents d7948d2c1cc6
children 3c9ba4a694ef
line wrap: on
line diff
--- a/cagou/kv/common_widgets.kv	Wed Feb 26 16:42:22 2020 +0100
+++ b/cagou/kv/common_widgets.kv	Wed Feb 26 16:43:48 2020 +0100
@@ -45,3 +45,21 @@
     bold: True
     font_size: sp(20)
     color: app.c_sec
+
+<ImageViewer>:
+    do_rotation: False
+    AsyncImage:
+        source: root.source
+        allow_stretch: True,
+
+
+<ImagesGallery>:
+    carousel: carousel
+    canvas.before:
+        Color:
+            rgba: 0, 0, 0, 1
+        Rectangle:
+            pos: self.pos
+            size: self.size
+    Carousel:
+        id: carousel