-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreenmenu.kv
183 lines (179 loc) · 6.22 KB
/
screenmenu.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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<ScreenMenu>:
name: "ScreenMenu"
MDGridLayout:
#adaptive_height: True
adaptive_size: True
spacing: "2dp"
md_bg_color: app.theme_cls.primary_color
cols:3
rows:6
#MDRectangleFlatIconButton:
# id: id_btn_new_situation
# text: "新建局面"
# icon: "newspaper-variant-outline"
# theme_text_color: "Custom"
# text_color: "white"
# line_color: "red"
# theme_icon_color: "Custom"
# icon_color: "orange"
# on_release:
# root.manager.current_heroes = ""
# root.manager.current = "screenMain"
# app.new_situation()
#MDRectangleFlatIconButton:
# id: id_btn_edit_situation
# text: "编辑局面"
# icon: "view-dashboard-edit-outline"
# theme_text_color: "Custom"
# text_color: "white"
# line_color: "red"
# theme_icon_color: "Custom"
# icon_color: "orange"
# on_release:
# root.manager.current_heroes = ""
# root.manager.current = "screenMain"
# app.edit_situation()
#MDRectangleFlatIconButton:
# id: id_btn_open_XQFFile
# text: "打开棋谱"
# icon: "book-open-page-variant-outline"
# theme_text_color: "Custom"
# text_color: "white"
# line_color: "red"
# theme_icon_color: "Custom"
# icon_color: "orange"
# on_release:
# root.manager.current_heroes = ""
# root.manager.current = "screenMain"
# app.open_XQFFile()
MDRectangleFlatIconButton:
id: id_btn_saveXQF
text: "保存棋谱"
icon: "content-save-check-outline"
theme_text_color: "Custom"
text_color: "white"
line_color: "red"
theme_icon_color: "Custom"
icon_color: "orange"
on_release:
root.manager.current_heroes = ""
root.manager.current = "screenMain"
app.saveXQF()
MDRectangleFlatIconButton:
id: id_btn_saveAs
text: "另存棋谱"
icon: "content-save-all-outline"
theme_text_color: "Custom"
text_color: "white"
line_color: "red"
theme_icon_color: "Custom"
icon_color: "orange"
on_release:
#root.manager.current_heroes = ""
#root.manager.current = "screenMain"
app.saveAs()
MDRectangleFlatIconButton:
id: id_btn_mergeXQF
text: "合并XQF"
icon: "table-merge-cells"
theme_text_color: "Custom"
text_color: "white"
line_color: "red"
theme_icon_color: "Custom"
icon_color: "orange"
on_release:
#root.manager.current_heroes = ""
#root.manager.current = "screenMain"
app.mergeXQF()
MDRectangleFlatIconButton:
id: id_btn_xqf2txt
text: "xqf转txt"
icon: "text-recognition"
theme_text_color: "Custom"
text_color: "white"
line_color: "red"
theme_icon_color: "Custom"
icon_color: "orange"
on_release:
#root.manager.current_heroes = ""
#root.manager.current = "screenMain"
app.xqf2txt()
#MDRectangleFlatIconButton:
# id: id_btn_back_init
# text: "退到初始"
# icon: "restart"
# theme_text_color: "Custom"
# text_color: "white"
# line_color: "red"
# theme_icon_color: "Custom"
# icon_color: "orange"
# on_release:
# root.manager.current_heroes = ""
# root.manager.current = "screenMain"
# app.back_init()
#MDRectangleFlatIconButton:
# id: id_btn_auto_roadshow
# text: "自动路演"
# icon: "refresh-auto"
# theme_text_color: "Custom"
# text_color: "white"
# line_color: "red"
# theme_icon_color: "Custom"
# icon_color: "orange"
# on_release:
# root.manager.current_heroes = ""
# root.manager.current = "screenMain"
# app.auto_roadshow()
MDRectangleFlatIconButton:
id: id_btn_set_engine
text: "引擎设置"
icon: "robot-love-outline"
theme_text_color: "Custom"
text_color: "white"
line_color: "red"
theme_icon_color: "Custom"
icon_color: "orange"
on_release:
app.set_engine()
MDRectangleFlatIconButton:
id: id_btn_ui
text: "界面设置"
icon: "view-quilt-outline"
theme_text_color: "Custom"
text_color: "white"
line_color: "red"
theme_icon_color: "Custom"
icon_color: "orange"
on_release: app.set_ui()
MDRectangleFlatIconButton:
id: id_btn_info
text: "关于"
icon: "information-outline"
theme_text_color: "Custom"
text_color: "white"
line_color: "red"
theme_icon_color: "Custom"
icon_color: "orange"
on_release: app.info()
MDRectangleFlatIconButton:
id: id_btn_stop
text: "退出软件"
icon: "exit-run"
theme_text_color: "Custom"
text_color: "white"
line_color: "red"
theme_icon_color: "Custom"
icon_color: "orange"
on_release: app.stop()
MDRectangleFlatIconButton:
id: id_btn_back
text: "返回"
icon: "keyboard-return"
theme_text_color: "Custom"
text_color: "white"
line_color: "red"
theme_icon_color: "Custom"
icon_color: "orange"
on_release:
root.manager.current_heroes = ""
root.manager.current = "screenMain"