Skip to content

Commit

Permalink
2.0.0 - Material Design 3
Browse files Browse the repository at this point in the history
- Added supporting Material Design 3
- Added new color schemes and effects
  • Loading branch information
HeaTTheatR committed Dec 31, 2023
1 parent 7e0ac97 commit 64ec341
Show file tree
Hide file tree
Showing 2 changed files with 192 additions and 260 deletions.
16 changes: 12 additions & 4 deletions kivymd/uix/sliverappbar/sliverappbar.kv
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#:import ScrollEffect kivy.effects.scroll.ScrollEffect
#:import get_color_from_hex kivy.utils.get_color_from_hex


<MDSliverAppbar>
Expand All @@ -13,7 +12,7 @@
rgba:
root.background_color \
if root.background_color else \
root.theme_cls.primary_color
root.theme_cls.primaryColor
a: root._opacity
Rectangle:
pos: self.pos
Expand All @@ -31,11 +30,20 @@
on_scroll_start:
if not root._scroll_was_moving: root._scroll_was_moving = True

MDBoxLayout:
BoxLayout:
id: scroll_box
adaptive_height: True
orientation: "vertical"
size_hint_y: None
height: self.minimum_height

BoxLayout:
size_hint_y: None
height: root.max_height


<MDSliverAppbarContent>
adaptive_height: True
md_bg_color:
self.theme_cls.surfaceColor \
if self.theme_bg_color == "Primary" else \
self.md_bg_color
Loading

0 comments on commit 64ec341

Please sign in to comment.