comparison src/cagou/kv/root_widget.kv @ 36:bd3ecac18870

cagou widget, root widget: used of dp to specify distances
author Goffi <goffi@goffi.org>
date Sun, 28 Aug 2016 15:27:42 +0200
parents c21d1be2e54c
children 1922506846be
comparison
equal deleted inserted replaced
35:20b04c58868f 36:bd3ecac18870
31 BorderImage: 31 BorderImage:
32 pos: self.pos 32 pos: self.pos
33 size: self.size 33 size: self.size
34 source: 'atlas://data/images/defaulttheme/button' 34 source: 'atlas://data/images/defaulttheme/button'
35 size_hint: 1, None 35 size_hint: 1, None
36 height: 50 36 height: dp(50)
37 37
38 <NotesDrop>: 38 <NotesDrop>:
39 clear_btn: clear_btn.__self__ 39 clear_btn: clear_btn.__self__
40 auto_width: False 40 auto_width: False
41 size_hint: 0.8, None 41 size_hint: 0.8, None
42 Button: 42 Button:
43 id: clear_btn 43 id: clear_btn
44 text: "clear" 44 text: "clear"
45 bold: True 45 bold: True
46 size_hint: 1, None 46 size_hint: 1, None
47 height: 50 47 height: dp(50)
48 on_release: del root.notes[:]; root.dismiss() 48 on_release: del root.notes[:]; root.dismiss()
49 49
50 <RootHeadWidget>: 50 <RootHeadWidget>:
51 manager: manager 51 manager: manager
52 notifs_icon: notifs_icon 52 notifs_icon: notifs_icon
53 size_hint: 1, None 53 size_hint: 1, None
54 height: 35 54 height: dp(35)
55 IconButton: 55 IconButton:
56 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if root.notes else app.expand("{media}/misc/black.png") 56 source: app.expand("{media}/icons/muchoslava/png/cagou_profil_bleu_32.png") if root.notes else app.expand("{media}/misc/black.png")
57 size_hint: None, 1 57 size_hint: None, 1
58 width: self.texture_size[0] 58 width: self.texture_size[0]
59 on_release: root.notes_drop.open(self) if root.notes else None 59 on_release: root.notes_drop.open(self) if root.notes else None