Mercurial > libervia-desktop-kivy
comparison cagou/core/image.py @ 134:1cca97e27a69
core (common): new Symbol widget:
it uses font icon to display a symbol by name (should move to direct svg rendering once it's stable in Kivy).
bg_color property allows to change background color.
margin property allows to display a margin around the symbol
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 06 Apr 2018 16:13:08 +0200 |
parents | cd99f70ea592 |
children | 1b835bcfa663 |
comparison
equal
deleted
inserted
replaced
133:c3aa71daceb8 | 134:1cca97e27a69 |
---|---|
79 def _load_source(self, *args): | 79 def _load_source(self, *args): |
80 if self.source.startswith('file://'): | 80 if self.source.startswith('file://'): |
81 self.source = self.source[7:] | 81 self.source = self.source[7:] |
82 else: | 82 else: |
83 super(AsyncImage, self)._load_source(*args) | 83 super(AsyncImage, self)._load_source(*args) |
84 |