mirror of
https://github.com/markqvist/Sideband.git
synced 2025-09-21 05:14:40 -04:00
Updated build system for Kivy 2.2.1
This commit is contained in:
parent
23e6b6e0c6
commit
67a8f61af8
126 changed files with 9967 additions and 4279 deletions
|
@ -984,6 +984,9 @@ class MDList(MDGridLayout):
|
|||
|
||||
When adding (or removing) a widget, it will resize itself to fit its
|
||||
children, plus top and bottom paddings as described by the `MD` spec.
|
||||
|
||||
For more information, see in the
|
||||
:class:`~kivymd.uix.gridlayout.MDGridLayout` classes documentation.
|
||||
"""
|
||||
|
||||
_list_vertical_padding = NumericProperty("8dp")
|
||||
|
@ -1002,6 +1005,13 @@ class BaseListItem(
|
|||
):
|
||||
"""
|
||||
Base class to all ListItems. Not supposed to be instantiated on its own.
|
||||
|
||||
For more information, see in the
|
||||
:class:`~kivymd.uix.behaviors.DeclarativeBehavior` and
|
||||
:class:`~kivymd.theming.ThemableBehavior` and
|
||||
:class:`~kivymd.uix.behaviors.RectangularRippleBehavior` and
|
||||
:class:`~kivy.uix.behaviors.ButtonBehavior` and
|
||||
:class:`~kivy.uix.floatlayout.FloatLayout` classes documentation.
|
||||
"""
|
||||
|
||||
text = StringProperty()
|
||||
|
@ -1242,7 +1252,12 @@ class IRightBodyTouch:
|
|||
|
||||
|
||||
class OneLineListItem(BaseListItem):
|
||||
"""A one line list item."""
|
||||
"""
|
||||
A one line list item.
|
||||
|
||||
For more information, see in the :class:`~BaseListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_top_pad = NumericProperty("16dp")
|
||||
_txt_bot_pad = NumericProperty("15dp")
|
||||
|
@ -1255,7 +1270,12 @@ class OneLineListItem(BaseListItem):
|
|||
|
||||
|
||||
class TwoLineListItem(BaseListItem):
|
||||
"""A two line list item."""
|
||||
"""
|
||||
A two line list item.
|
||||
|
||||
For more information, see in the :class:`~BaseListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_top_pad = NumericProperty("20dp")
|
||||
_txt_bot_pad = NumericProperty("15dp")
|
||||
|
@ -1267,7 +1287,12 @@ class TwoLineListItem(BaseListItem):
|
|||
|
||||
|
||||
class ThreeLineListItem(BaseListItem):
|
||||
"""A three line list item."""
|
||||
"""
|
||||
A three line list item.
|
||||
|
||||
For more information, see in the :class:`~BaseListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_top_pad = NumericProperty("16dp")
|
||||
_txt_bot_pad = NumericProperty("15dp")
|
||||
|
@ -1280,6 +1305,13 @@ class ThreeLineListItem(BaseListItem):
|
|||
|
||||
|
||||
class OneLineAvatarListItem(BaseListItem):
|
||||
"""
|
||||
A one line list item with left image.
|
||||
|
||||
For more information, see in the :class:`~BaseListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_left_pad = NumericProperty("72dp")
|
||||
_txt_top_pad = NumericProperty("20dp")
|
||||
_txt_bot_pad = NumericProperty("19dp")
|
||||
|
@ -1292,6 +1324,13 @@ class OneLineAvatarListItem(BaseListItem):
|
|||
|
||||
|
||||
class TwoLineAvatarListItem(OneLineAvatarListItem):
|
||||
"""
|
||||
A two line list item with left image.
|
||||
|
||||
For more information, see in the :class:`~OneLineAvatarListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_top_pad = NumericProperty("20dp")
|
||||
_txt_bot_pad = NumericProperty("15dp")
|
||||
_height = NumericProperty()
|
||||
|
@ -1303,6 +1342,13 @@ class TwoLineAvatarListItem(OneLineAvatarListItem):
|
|||
|
||||
|
||||
class ThreeLineAvatarListItem(ThreeLineListItem):
|
||||
"""
|
||||
A three line list item with left image.
|
||||
|
||||
For more information, see in the :class:`~ThreeLineListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_left_pad = NumericProperty("72dp")
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
@ -1310,10 +1356,24 @@ class ThreeLineAvatarListItem(ThreeLineListItem):
|
|||
|
||||
|
||||
class OneLineIconListItem(OneLineListItem):
|
||||
"""
|
||||
A one line list item with left icon.
|
||||
|
||||
For more information, see in the :class:`~OneLineListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_left_pad = NumericProperty("72dp")
|
||||
|
||||
|
||||
class TwoLineIconListItem(OneLineIconListItem):
|
||||
"""
|
||||
A two line list item with left icon.
|
||||
|
||||
For more information, see in the :class:`~OneLineIconListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_top_pad = NumericProperty("20dp")
|
||||
_txt_bot_pad = NumericProperty("15dp")
|
||||
_height = NumericProperty()
|
||||
|
@ -1325,10 +1385,24 @@ class TwoLineIconListItem(OneLineIconListItem):
|
|||
|
||||
|
||||
class ThreeLineIconListItem(ThreeLineListItem):
|
||||
"""
|
||||
A three line list item with left icon.
|
||||
|
||||
For more information, see in the :class:`~ThreeLineListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_left_pad = NumericProperty("72dp")
|
||||
|
||||
|
||||
class OneLineRightIconListItem(OneLineListItem):
|
||||
"""
|
||||
A one line list item with right icon/image.
|
||||
|
||||
For more information, see in the :class:`~OneLineListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_right_pad = NumericProperty("40dp")
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
@ -1337,6 +1411,13 @@ class OneLineRightIconListItem(OneLineListItem):
|
|||
|
||||
|
||||
class TwoLineRightIconListItem(OneLineRightIconListItem):
|
||||
"""
|
||||
A two line list item with right icon/image.
|
||||
|
||||
For more information, see in the :class:`~OneLineRightIconListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_top_pad = NumericProperty("20dp")
|
||||
_txt_bot_pad = NumericProperty("15dp")
|
||||
_height = NumericProperty()
|
||||
|
@ -1348,6 +1429,13 @@ class TwoLineRightIconListItem(OneLineRightIconListItem):
|
|||
|
||||
|
||||
class ThreeLineRightIconListItem(ThreeLineListItem):
|
||||
"""
|
||||
A three line list item with right icon/image.
|
||||
|
||||
For more information, see in the :class:`~ThreeLineRightIconListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_right_pad = NumericProperty("40dp")
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
|
@ -1356,6 +1444,13 @@ class ThreeLineRightIconListItem(ThreeLineListItem):
|
|||
|
||||
|
||||
class OneLineAvatarIconListItem(OneLineAvatarListItem):
|
||||
"""
|
||||
A one line list item with left/right icon/image/widget.
|
||||
|
||||
For more information, see in the :class:`~OneLineAvatarListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_right_pad = NumericProperty("40dp")
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
@ -1364,6 +1459,13 @@ class OneLineAvatarIconListItem(OneLineAvatarListItem):
|
|||
|
||||
|
||||
class TwoLineAvatarIconListItem(TwoLineAvatarListItem):
|
||||
"""
|
||||
A two line list item with left/right icon/image/widget.
|
||||
|
||||
For more information, see in the :class:`~TwoLineAvatarListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_right_pad = NumericProperty("40dp")
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
@ -1372,6 +1474,13 @@ class TwoLineAvatarIconListItem(TwoLineAvatarListItem):
|
|||
|
||||
|
||||
class ThreeLineAvatarIconListItem(ThreeLineAvatarListItem):
|
||||
"""
|
||||
A three line list item with left/right icon/image/widget.
|
||||
|
||||
For more information, see in the :class:`~ThreeLineAvatarListItem`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
_txt_right_pad = NumericProperty("40dp")
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
|
@ -1388,13 +1497,31 @@ class TouchBehavior:
|
|||
class ImageLeftWidget(
|
||||
CircularRippleBehavior, ButtonBehavior, ILeftBodyTouch, FitImage
|
||||
):
|
||||
pass
|
||||
"""
|
||||
The widget implements the left image for use in ListItem classes.
|
||||
|
||||
For more information, see in the
|
||||
:class:`~kivymd.uix.behaviors.CircularRippleBehavior` and
|
||||
:class:`~kivy.uix.behaviors.ButtonBehavior` and
|
||||
:class:`~ILeftBodyTouch` and
|
||||
:class:`~kivymd.uix.fitimage.FitImage` classes documentation.
|
||||
"""
|
||||
|
||||
|
||||
class ImageLeftWidgetWithoutTouch(
|
||||
CircularRippleBehavior, TouchBehavior, ButtonBehavior, ILeftBody, FitImage
|
||||
):
|
||||
"""
|
||||
Disables the image event.
|
||||
The widget implements the left image for use in `ListItem` classes.
|
||||
|
||||
For more information, see in the
|
||||
:class:`~kivymd.uix.behaviors.CircularRippleBehavior` and
|
||||
:class:`~TouchBehavior` and
|
||||
:class:`~kivy.uix.behaviors.ButtonBehavior` and
|
||||
:class:`~ILeftBody` and
|
||||
:class:`~kivymd.uix.fitimage.FitImage` classes documentation.
|
||||
|
||||
.. versionadded:: 1.0.0
|
||||
"""
|
||||
|
||||
|
@ -1404,13 +1531,31 @@ class ImageLeftWidgetWithoutTouch(
|
|||
class ImageRightWidget(
|
||||
CircularRippleBehavior, ButtonBehavior, IRightBodyTouch, FitImage
|
||||
):
|
||||
pass
|
||||
"""
|
||||
The widget implements the right image for use in ListItem classes.
|
||||
|
||||
For more information, see in the
|
||||
:class:`~kivymd.uix.behaviors.CircularRippleBehavior` and
|
||||
:class:`~kivy.uix.behaviors.ButtonBehavior` and
|
||||
:class:`~IRightBodyTouch` and
|
||||
:class:`~kivymd.uix.fitimage.FitImage` classes documentation.
|
||||
"""
|
||||
|
||||
|
||||
class ImageRightWidgetWithoutTouch(
|
||||
CircularRippleBehavior, TouchBehavior, ButtonBehavior, IRightBody, FitImage
|
||||
):
|
||||
"""
|
||||
Disables the image event.
|
||||
The widget implements the right image for use in `ListItem` classes.
|
||||
|
||||
For more information, see in the
|
||||
:class:`~kivymd.uix.behaviors.CircularRippleBehavior` and
|
||||
:class:`~TouchBehavior` and
|
||||
:class:`~kivy.uix.behaviors.ButtonBehavior` and
|
||||
:class:`~IRightBody` and
|
||||
:class:`~kivymd.uix.fitimage.FitImage` classes documentation.
|
||||
|
||||
.. versionadded:: 1.0.0
|
||||
"""
|
||||
|
||||
|
@ -1418,11 +1563,29 @@ class ImageRightWidgetWithoutTouch(
|
|||
|
||||
|
||||
class IconRightWidget(IRightBodyTouch, MDIconButton):
|
||||
"""
|
||||
The widget implements the right icon for use in ListItem classes.
|
||||
|
||||
For more information, see in the
|
||||
:class:`~IRightBodyTouch` and
|
||||
:class:`~kivymd.uix.button.MDIconButton`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
pos_hint = {"center_y": 0.5}
|
||||
|
||||
|
||||
class IconRightWidgetWithoutTouch(TouchBehavior, IRightBody, MDIconButton):
|
||||
"""
|
||||
Disables the icon event.
|
||||
The widget implements the right icon for use in ListItem classes.
|
||||
|
||||
For more information, see in the
|
||||
:class:`~TouchBehavior` and
|
||||
:class:`~IRightBody` and
|
||||
:class:`~kivymd.uix.button.MDIconButton`
|
||||
classes documentation.
|
||||
|
||||
.. versionadded:: 1.0.0
|
||||
"""
|
||||
|
||||
|
@ -1431,11 +1594,29 @@ class IconRightWidgetWithoutTouch(TouchBehavior, IRightBody, MDIconButton):
|
|||
|
||||
|
||||
class IconLeftWidget(ILeftBodyTouch, MDIconButton):
|
||||
"""
|
||||
The widget implements the left icon for use in ListItem classes.
|
||||
|
||||
For more information, see in the
|
||||
:class:`~ILeftBodyTouch` and
|
||||
:class:`~kivymd.uix.button.MDIconButton`
|
||||
classes documentation.
|
||||
"""
|
||||
|
||||
pos_hint = {"center_y": 0.5}
|
||||
|
||||
|
||||
class IconLeftWidgetWithoutTouch(TouchBehavior, ILeftBody, MDIconButton):
|
||||
"""
|
||||
Disables the icon event.
|
||||
The widget implements the left icon for use in ListItem classes.
|
||||
|
||||
For more information, see in the
|
||||
:class:`~TouchBehavior` and
|
||||
:class:`~ILeftBody` and
|
||||
:class:`~kivymd.uix.button.MDIconButton`
|
||||
classes documentation.
|
||||
|
||||
.. versionadded:: 1.0.0
|
||||
"""
|
||||
|
||||
|
@ -1444,4 +1625,11 @@ class IconLeftWidgetWithoutTouch(TouchBehavior, ILeftBody, MDIconButton):
|
|||
|
||||
|
||||
class CheckboxLeftWidget(ILeftBodyTouch, MDCheckbox):
|
||||
pass
|
||||
"""
|
||||
The widget implements the left checkbox element for use in ListItem classes.
|
||||
|
||||
For more information, see in the
|
||||
:class:`~ILeftBodyTouch` and
|
||||
:class:`~kivymd.uix.selectioncontrol.MDCheckbox`
|
||||
classes documentation.
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue