carbonkivy.utils

Module Contents

carbonkivy.utils.get_font_name(typeface: str, weight_style: str) str[source]
carbonkivy.utils.get_font_style(token: str) float[source]
carbonkivy.utils.get_spacing(token: str) float[source]
carbonkivy.utils.get_button_size(token: str) float[source]
carbonkivy.utils.update_system_ui(status_bar_color: list[float] | str, navigation_bar_color: list[float] | str, icon_style: Literal['Light', 'Dark']) None[source]

Update the color system of the status and navigation bar.

Currently supports Android only.

The code is taken from AKivyMD project -

https://github.com/kivymd-extensions/akivymd

Source code -

kivymd_extensions/akivymd/uix/statusbarcolor.py

Author Sina Namadian -

https://github.com/quitegreensky

Author Kartavya Shukla (Bug Fix Related to Navigation Icon colors) -

https://github.com/Novfensec

carbonkivy.utils.DEVICE_IOS
carbonkivy.utils.DEVICE_TYPE = 'desktop'