-
Notifications
You must be signed in to change notification settings - Fork 0
/
visualprofile.kv
104 lines (87 loc) · 3.22 KB
/
visualprofile.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#:kivy 1.7.2
#:import sm kivy.uix.screenmanager
<MainLayout>:
screen_manager: _screen_manager
buttons: _color_buttons
main_menu: _main_menu
buttons_filter: _filter_colors
color_palette: _color_palette
button_start: _button_start
button_detail: _button_detail
ScreenManager:
id: _screen_manager
transition: sm.SlideTransition()
Screen:
name: "MainMenu"
BoxLayout:
id: _main_menu
BoxLayout:
orientation:'vertical'
Button:
text:"Configure Background Filter"
on_press: _screen_manager.current = "FilterBackground"
Button:
text:"Visual Profile Program"
on_press: _screen_manager.current = "visualProfileProgram"
Button:
text:"Quit"
on_press: close()
Screen:
on_pre_enter: root.FConPreEnter()
name: "FilterBackground"
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
size_hint: 1, .95
BoxLayout:
GridLayout:
id: _color_buttons
cols:5
GridLayout:
id: _filter_colors
cols:5
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
BoxLayout:
orientation: 'horizontal'
size_hint: 1, .05
Label:
text:"Colors"
Button:
text:"Back"
on_press: _screen_manager.current = "MainMenu"
Button:
text:"Reset"
on_press: root.resetFilterColors()
Label:
text:"Colors to filter"
Screen:
name: "visualProfileProgram"
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
size_hint: 1, .95
BoxLayout:
BoxLayout:
orientation: "vertical"
Button:
text:"Start palette"
on_press: root.start()
id:_button_start
Button:
text:"Detail foto's"
on_press: root.getDetail()
id:_button_detail
BoxLayout:
orientation: "vertical"
id: _color_palette
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
BoxLayout:
orientation: 'horizontal'
size_hint: 1, .05
Button:
text:"Back"
on_press: _screen_manager.current = "MainMenu"