Updated kivymd

This commit is contained in:
Mark Qvist 2022-10-02 17:16:59 +02:00
parent c6df8b851b
commit abcf173cc8
160 changed files with 11617 additions and 6545 deletions

View file

@ -50,6 +50,7 @@ Example with TwoLineAvatarListItem
from kivy.animation import Animation
from kivy.lang import Builder
from kivy.utils import get_color_from_hex
from kivymd.app import MDApp
from kivymd.uix.list import TwoLineAvatarListItem
@ -100,7 +101,7 @@ Example with TwoLineAvatarListItem
class Example(MDApp):
overlay_color = "#6042e4"
overlay_color = get_color_from_hex("#6042e4")
def build(self):
return Builder.load_string(KV)
@ -156,7 +157,7 @@ Example with FitImage
from kivy.properties import ColorProperty
from kivymd.app import MDApp
from kivymd.utils.fitimage import FitImage
from kivymd.uix.fitimage import FitImage
KV = '''
MDBoxLayout:
@ -446,7 +447,7 @@ class SelectionItem(ThemableBehavior, MDRelativeLayout, TouchBehavior):
def get_progress_round_pos(self) -> tuple:
return (
self.center_x - self.progress_round_size / 2,
(self.pos[0] + self.width / 2) - self.progress_round_size / 2,
self.center_y - self.progress_round_size / 2,
)