-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstylesheet.kv
More file actions
55 lines (51 loc) · 1.47 KB
/
stylesheet.kv
File metadata and controls
55 lines (51 loc) · 1.47 KB
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
#:import Factory kivy.factory.Factory
#:import SideBarDrawer kivyorm.uis.navigations.SideBarDrawer
<NavigationDrawerContainer@MDBoxLayout>:
orientation:"vertical"
#adaptive_width:True
<MainScreen>:
id:main_view
name:"root_screen"
md_bg_color:app.theme_cls.bg_normal
navbar:navbar
MDToolbar:
id:navbar
md_bg_color:app.theme_cls.primary_color
pos_hint:{"center_x":0.5,"top":1}
left_action_items:[[f"{app.icon}",lambda x:None,f"{app.title}"]]
right_action_items:[["menu",lambda x:sidebar_drawer._toggle_bar(),"open menu"],["exit-to-app",lambda x:app.show_exiter(),"open menu"]]
title:f"[b]{app.title}[/b]"
anchor_title:"center"
MDNavigationLayout:
id:main_layout
md_bg_color: navbar.md_bg_color
size_hint:(1,None)
height:root.height - navbar.height
#y:root.height - self.height - navbar.height - dp(2)
x:navbar.height
ScreenManager:
id:main_screens_manager
MDScreen:
name:"screen one"
#md_bg_color:(0,0,1,1)
MDLabel:
text:self.parent.name
halign:"center"
adaptive_height:True
font_style:"H4"
theme_text_color:"ContrastParentBackground"
pos_hint:{"top":0.9}
#MDBoxLayout:
#orientation:"vertical"
#size_hint_y:0.65
#pos_hint:{"center_x":0.5,"top":0.85}
#ColorPicker:
SideBarDrawer:
id: sidebar_drawer
static_on_device:"tablet_desktop_only"
NavigationDrawerContainer:
id:sidebar_items_wrapper
FitImage:
source:app.icon
size_hint_y:0.45
MainScreen: