mirror of
https://github.com/liberatedsystems/openCom-Companion.git
synced 2024-11-29 16:50:37 +01:00
33 lines
1.0 KiB
Python
33 lines
1.0 KiB
Python
|
from kivymd.tests.base_test import BaseTest
|
||
|
|
||
|
|
||
|
class BottomNavigationTest(BaseTest):
|
||
|
def test_bottom_navigation_m3_style_raw_app(self):
|
||
|
from kivymd.uix.bottomnavigation import (
|
||
|
MDBottomNavigation,
|
||
|
MDBottomNavigationItem,
|
||
|
)
|
||
|
from kivymd.uix.screen import MDScreen
|
||
|
|
||
|
self.app.theme_cls.material_style = "M3"
|
||
|
self.render(
|
||
|
MDScreen(
|
||
|
MDBottomNavigation(
|
||
|
MDBottomNavigationItem(
|
||
|
name="screen 1",
|
||
|
text="Mail",
|
||
|
icon="gmail",
|
||
|
),
|
||
|
MDBottomNavigationItem(
|
||
|
name="screen 2",
|
||
|
text="Twitter",
|
||
|
icon="twitter",
|
||
|
badge_icon="numeric-10",
|
||
|
),
|
||
|
panel_color="#eeeaea",
|
||
|
selected_color_background="#97ecf8",
|
||
|
text_color_active="red",
|
||
|
)
|
||
|
)
|
||
|
)
|