This commit is contained in:
yumoqing 2021-07-09 14:15:54 +08:00
parent 6372d86065
commit 86d2f0cd7a

View File

@ -15,6 +15,7 @@ from kivy.metrics import sp,dp,mm
from kivy.core.window import WindowBase, Window from kivy.core.window import WindowBase, Window
from kivy.clock import Clock from kivy.clock import Clock
from kivy.logger import Logger from kivy.logger import Logger
from kivy.utils import platform
import kivy import kivy
import plyer import plyer
@ -137,6 +138,8 @@ class BlocksApp(App):
return self.csses.get(name,self.csses.get('default',{})) return self.csses.get(name,self.csses.get('default',{}))
def build(self): def build(self):
self.platform = platform
self.is_desktop = platform in ['win', 'linux', 'macosx']
config = getConfig() config = getConfig()
self.csses = { self.csses = {
"default":{ "default":{