-
Notifications
You must be signed in to change notification settings - Fork 9
/
kivyemu.kv
72 lines (67 loc) · 2.96 KB
/
kivyemu.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
#:import OneLineIconListItem kivymd.list.OneLineIconListItem
#:import images_path kivymd.images_path
#:import MDTextFieldRect kivymd.textfields.MDTextField
#:import MDIconButton kivymd.button.MDIconButton
#:import MDDropdownMenu kivymd.menus.MDDropdownMenu
#:import MDList kivymd.list.MDList
#:import OneLineListItem kivymd.list.OneLineListItem
#:import TwoLineListItem kivymd.list.TwoLineListItem
#:import ThreeLineListItem kivymd.list.ThreeLineListItem
#:import OneLineAvatarListItem kivymd.list.OneLineAvatarListItem
#:import OneLineIconListItem kivymd.list.OneLineIconListItem
#:import OneLineAvatarIconListItem kivymd.list.OneLineAvatarIconListItem
#:import MDTabsBase kivymd.tabs.MDTabsBase
#:import MDTabs kivymd.tabs.MDTabs
#:import MDRaisedButton kivymd.button.MDRaisedButton
#:import MDTextFieldRect kivymd.textfields.MDTextFieldRect
#:import MDTextFieldClear kivymd.textfields.MDTextFieldClear
#:import MDTextField kivymd.textfields.MDTextField
#:import MDTextFieldRound kivymd.textfields.MDTextFieldRound
#:import MDRaisedButton kivymd.button.MDRaisedButton
#:import MDLabel kivymd.label.MDLabel
#:import MDToolbar kivymd.toolbar.MDToolbar
#:import NavigationDrawerToolbar kivymd.navigationdrawer.NavigationDrawerToolbar
#:import NavigationLayout kivymd.navigationdrawer.NavigationLayout
#:import MDSpinner kivymd.spinner.MDSpinner
#: import get_color_from_hex kivy.utils.get_color_from_hex
<EmuInterface>:
screen_manager:screen_manager
emulator_screen:emulator_screen
Image:
source: './assets/android_lolipop1.png'
pos_hint: {'center_x': 0.5, 'center_y': 0.46}
BoxLayout:
orientation: "vertical"
MDToolbar:
id: toolbar
title: 'KivyEmu'
md_bg_color: app.theme_cls.primary_color
background_palette: 'Primary'
background_hue: '500'
elevation: 10
right_action_items:
[['menu', lambda x:app.show_example_bottom_sheet()]]
BoxLayout:
id: box_man
FloatLayout
BoxLayout:
size_hint: .926,.8325
pos_hint: {'center_x': 0.5, 'center_y': 0.525}
ScreenManager:
id:screen_manager
EmulatorScreen:
id: emulator_screen
name: "emulator_screen"
HistoryScreen:
id: history_screen
name: "history_screen"
# MDFloatingActionButton:
# id:chevron_up
# icon: 'file'
# opacity: 0.9
# pos_hint: {'center_x': 0.8, 'center_y': 0.1}
# size_hint: None, None
# size: dp(55), dp(55)
# on_press:app.choose()
<HistoryScreen>:
on_pre_enter: root.build_screen()