mirror of
https://github.com/markqvist/Sideband.git
synced 2025-08-02 03:26:25 -04:00
Updated kivymd
This commit is contained in:
parent
c6df8b851b
commit
abcf173cc8
160 changed files with 11617 additions and 6545 deletions
49
sbapp/kivymd/uix/scrollview.py
Normal file
49
sbapp/kivymd/uix/scrollview.py
Normal file
|
@ -0,0 +1,49 @@
|
|||
"""
|
||||
Components/ScrollView
|
||||
=====================
|
||||
|
||||
.. versionadded:: 1.0.0
|
||||
|
||||
:class:`~kivy.uix.scrollview.ScrollView` class equivalent. Simplifies working
|
||||
with some widget properties. For example:
|
||||
|
||||
ScrollView
|
||||
----------
|
||||
|
||||
.. code-block:: kv
|
||||
|
||||
ScrollView:
|
||||
|
||||
canvas:
|
||||
Color:
|
||||
rgba: app.theme_cls.primary_color
|
||||
Rectangle:
|
||||
pos: self.pos
|
||||
size: self.size
|
||||
|
||||
MDScrollView
|
||||
------------
|
||||
|
||||
.. code-block:: kv
|
||||
|
||||
MDScrollView:
|
||||
md_bg_color: app.theme_cls.primary_color
|
||||
"""
|
||||
|
||||
__all__ = ("MDScrollView",)
|
||||
|
||||
from kivy.uix.scrollview import ScrollView
|
||||
|
||||
from kivymd.uix.behaviors import (
|
||||
DeclarativeBehavior,
|
||||
SpecificBackgroundColorBehavior,
|
||||
)
|
||||
|
||||
|
||||
class MDScrollView(
|
||||
DeclarativeBehavior, SpecificBackgroundColorBehavior, ScrollView
|
||||
):
|
||||
"""
|
||||
ScrollView class. For more information, see in the
|
||||
:class:`~kivy.uix.scrollview.ScrollView` class documentation.
|
||||
"""
|
Loading…
Add table
Add a link
Reference in a new issue