some material design preparations

This commit is contained in:
Yura 2024-09-15 22:32:26 +03:00
parent 511e0b0379
commit 2e6a0e0e60
4 changed files with 21 additions and 8 deletions

View File

@ -283,7 +283,7 @@ fullscreen = 0
# (list) The Android archs to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64 # (list) The Android archs to build for, choices: armeabi-v7a, arm64-v8a, x86, x86_64
# In past, was `android.arch` as we weren't supporting builds for multiple archs at the same time. # In past, was `android.arch` as we weren't supporting builds for multiple archs at the same time.
android.archs = arm64-v8a, armeabi-v7a android.archs = arm64-v8a
# (int) overrides automatic versionCode computation (used in build.gradle) # (int) overrides automatic versionCode computation (used in build.gradle)
# this is not the same as app version and should only be edited if you know what you're doing # this is not the same as app version and should only be edited if you know what you're doing
@ -305,7 +305,7 @@ android.allow_backup = True
# android.no-byte-compile-python = False # android.no-byte-compile-python = False
# (str) The format used to package the app for release mode (aab or apk or aar). # (str) The format used to package the app for release mode (aab or apk or aar).
# android.release_artifact = aab android.release_artifact = apk
# (str) The format used to package the app for debug mode (apk or aar). # (str) The format used to package the app for debug mode (apk or aar).
# android.debug_artifact = apk # android.debug_artifact = apk

24
main.py
View File

@ -1,17 +1,30 @@
from kivy.lang import Builder
from kivy.properties import ObjectProperty
from kivy.app import App from kivy.app import App
from kivy.uix.button import Button from kivy.uix.button import Button
from kivy.uix.gridlayout import GridLayout from kivy.uix.gridlayout import GridLayout
from kivy.properties import ObjectProperty
from kivy.core.window import Window from kivy.core.window import Window
import requests import requests
# from kivy.network.urlrequest import UrlRequest # from kivymd.app import MDApp
# from kivymd.theming import ThemeManager
# from kivymd.uix.gridlayout import MDGridLayout
# from kivymd.uix.label import MDLabel
# from kivymd.uix.anchorlayout import MDAnchorLayout
# from kivymd.uix.boxlayout import MDBoxLayout
# from kivymd.icon_definitions import md_icons
# from kivymd.uix.screen import MDScreen
# Window.size = (480, 853) # Window.size = (480, 853)
# from kivy.config import Config from kivy.config import Config
# Config.set('kivy', 'keyboard_mode', 'systemanddock') Config.set('kivy', 'keyboard_mode', 'systemanddock')
def isAvailable(ip): def isAvailable(ip):
try: try:
@ -48,7 +61,8 @@ class MyApp(App):
Title = 'Uptime Check' Title = 'Uptime Check'
def build(self): def build(self):
# self.theme_cls.theme_style = 'Light' # self.theme_cls.theme_style = "Dark"
# self.theme_cls.primary_palette = "Olive" # "Purple", "Red"
return Container() return Container()
MyApp().run() MyApp().run()

1
my.kv
View File

@ -1,5 +1,4 @@
<ItemLabel@Label>: <ItemLabel@Label>:
font_size: '25sp' font_size: '25sp'
halign: 'left' halign: 'left'