Add window size variable from kivy_state
This commit is contained in:
parent
19d5556f66
commit
5267d6068c
|
@ -108,7 +108,7 @@
|
|||
height:"35dp"
|
||||
NavigationItem:
|
||||
height: dp(48)
|
||||
CustomSpinner:
|
||||
IdentitySpinner:
|
||||
id: identity_dropdown
|
||||
pos_hint:{"x":0,"y":0}
|
||||
option_cls: Factory.get("MySpinnerOption")
|
||||
|
@ -246,8 +246,8 @@ MDNavigationLayout:
|
|||
# id:sc16
|
||||
# Allmails:
|
||||
# id:sc17
|
||||
ScanScreen:
|
||||
id:is_scanscreen
|
||||
# ScanScreen:
|
||||
# id:is_scanscreen
|
||||
|
||||
MDNavigationDrawer:
|
||||
id: nav_drawer
|
||||
|
|
|
@ -13,6 +13,7 @@ from functools import partial
|
|||
|
||||
from kivy.clock import Clock
|
||||
from kivy.lang import Builder
|
||||
from kivy.core.window import Window
|
||||
from kivy.uix.boxlayout import BoxLayout
|
||||
|
||||
from kivymd.app import MDApp
|
||||
|
@ -80,10 +81,13 @@ class IdentitySpinner(BaseIdentitySpinner):
|
|||
class NavigateApp(MDApp):
|
||||
"""Navigation Layout of class"""
|
||||
|
||||
kivy_state = KivyStateVariables()
|
||||
title = "PyBitmessage"
|
||||
identity_list = get_identity_list()
|
||||
image_path = load_image_path()
|
||||
app_platform = platform
|
||||
kivy_state.screen_density = Window.size
|
||||
window_size = kivy_state.screen_density
|
||||
tr = Lang("en") # for changing in franch replace en with fr
|
||||
|
||||
def __init__(self):
|
||||
|
|
Reference in New Issue
Block a user