mirror of
https://github.com/markqvist/Sideband.git
synced 2025-07-31 18:48:50 -04:00
Restructured repository
This commit is contained in:
parent
46269dd82b
commit
0de4c12c17
274 changed files with 51617 additions and 45 deletions
92
sbapp/kivymd/uix/recyclegridlayout.py
Normal file
92
sbapp/kivymd/uix/recyclegridlayout.py
Normal file
|
@ -0,0 +1,92 @@
|
|||
"""
|
||||
Components/RecycleGridLayout
|
||||
=====================
|
||||
|
||||
:class:`~kivy.uix.recyclegridlayout.RecycleGridLayout` class equivalent. Simplifies working
|
||||
with some widget properties. For example:
|
||||
|
||||
GridLayout
|
||||
----------
|
||||
|
||||
.. code-block::
|
||||
|
||||
RecycleGridLayout:
|
||||
size_hint_y: None
|
||||
height: self.minimum_height
|
||||
|
||||
canvas:
|
||||
Color:
|
||||
rgba: app.theme_cls.primary_color
|
||||
Rectangle:
|
||||
pos: self.pos
|
||||
size: self.size
|
||||
|
||||
MDRecycleGridLayout
|
||||
------------
|
||||
|
||||
.. code-block::
|
||||
|
||||
MDRecycleGridLayout:
|
||||
adaptive_height: True
|
||||
md_bg_color: app.theme_cls.primary_color
|
||||
|
||||
Available options are:
|
||||
----------------------
|
||||
|
||||
- adaptive_height_
|
||||
- adaptive_width_
|
||||
- adaptive_size_
|
||||
|
||||
.. adaptive_height:
|
||||
adaptive_height
|
||||
---------------
|
||||
|
||||
.. code-block:: kv
|
||||
|
||||
adaptive_height: True
|
||||
|
||||
Equivalent
|
||||
|
||||
.. code-block:: kv
|
||||
|
||||
size_hint_y: None
|
||||
height: self.minimum_height
|
||||
|
||||
.. adaptive_width:
|
||||
adaptive_width
|
||||
--------------
|
||||
|
||||
.. code-block:: kv
|
||||
|
||||
adaptive_width: True
|
||||
|
||||
Equivalent
|
||||
|
||||
.. code-block:: kv
|
||||
|
||||
size_hint_x: None
|
||||
width: self.minimum_width
|
||||
|
||||
.. adaptive_size:
|
||||
adaptive_size
|
||||
-------------
|
||||
|
||||
.. code-block:: kv
|
||||
|
||||
adaptive_size: True
|
||||
|
||||
Equivalent
|
||||
|
||||
.. code-block:: kv
|
||||
|
||||
size_hint: None, None
|
||||
size: self.minimum_size
|
||||
"""
|
||||
|
||||
from kivy.uix.recyclegridlayout import RecycleGridLayout
|
||||
|
||||
from kivymd.uix import MDAdaptiveWidget
|
||||
|
||||
|
||||
class MDRecycleGridLayout(RecycleGridLayout, MDAdaptiveWidget):
|
||||
pass
|
Loading…
Add table
Add a link
Reference in a new issue