Mercurial > libervia-desktop-kivy
comparison cagou/kv/share_widget.kv @ 384:3669a26ef7d9
share widget: display only name of the file instead of full path in GenericPreview
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 04 Feb 2020 20:47:17 +0100 |
parents | 38fd457b2158 |
children | 3e2333a11f61 |
comparison
equal
deleted
inserted
replaced
383:a90f26e89a4a | 384:3669a26ef7d9 |
---|---|
12 # GNU Affero General Public License for more details. | 12 # GNU Affero General Public License for more details. |
13 | 13 |
14 # You should have received a copy of the GNU Affero General Public License | 14 # You should have received a copy of the GNU Affero General Public License |
15 # along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 # along with this program. If not, see <http://www.gnu.org/licenses/>. |
16 | 16 |
17 #:import Path pathlib.Path | |
17 #:import _ sat.core.i18n._ | 18 #:import _ sat.core.i18n._ |
18 #:import C cagou.core.constants.Const | 19 #:import C cagou.core.constants.Const |
19 | 20 |
20 | 21 |
21 <ShareWidget>: | 22 <ShareWidget>: |
106 size_hint: 1, None | 107 size_hint: 1, None |
107 height: dp(100) | 108 height: dp(100) |
108 Widget: | 109 Widget: |
109 SymbolLabel: | 110 SymbolLabel: |
110 symbol: "doc" | 111 symbol: "doc" |
111 text: root.path | 112 text: Path(root.path).name |
112 Widget: | 113 Widget: |
113 | 114 |