#:import images_path kivymd.images_path
#:import version kivymd.__version__


<KitchenSinkContentNavigationDrawer>

    BoxLayout:
        orientation: 'vertical'

        FloatLayout:
            size_hint_y: None
            height: "200dp"

            canvas:
                Color:
                    rgba: app.theme_cls.primary_color
                Rectangle:
                    pos: self.pos
                    size: self.size

            BoxLayout:
                id: top_box
                size_hint_y: None
                height: "200dp"
                x: root.parent.x
                pos_hint: {"top": 1}

                FitImage:
                    source: f"{images_path}kivymd_alpha.png"

            MDIconButton:
                icon: "close"
                x: root.parent.x + dp(10)
                pos_hint: {"top": 1}
                on_release: root.parent.set_state()

            MDLabel:
                markup: True
                text: f"[b]KivyMD[/b]\nVersion: {version}"
                x: root.parent.x + dp(10)
                y: root.height - top_box.height + dp(10)
                size_hint_y: None
                height: self.texture_size[1]

        ScrollView:
            pos_hint: {"top": 1}

            MDGridLayout:
                id: box_item
                cols: 1
                adaptive_height: True


<KitchenSinkNavigationDrawer>:
    name: "navigation drawer"

    NavigationLayout:

        ScreenManager:

            Screen:

                BoxLayout:
                    orientation: 'vertical'

                    MDToolbar:
                        title: "Navigation Drawer"
                        md_bg_color: app.theme_cls.primary_color
                        elevation: 10
                        left_action_items: [['menu', lambda x: nav_drawer.set_state("toggle")]]
                        right_action_items: [['arrow-left', lambda x: app.back_to_home_screen()]]

                    Widget:


        MDNavigationDrawer:
            id: nav_drawer

            KitchenSinkContentNavigationDrawer:
                id: content_drawer
