Skip to content

StatusIcons

A widget to display count of completed, pending and overdue todos for selected workspace

KeyDefaultDescription
apiThe api object provided within the function.
completed_iconIcon to represent completed tasks.
pending_iconIcon to represent pending tasks.
overdue_iconIcon to represent overdue tasks.
fmt" {} "Format for displaying text, {} represents the value displayed.
bgtheme.background3Background color for the widget, defaults to theme.background3 or a specified color.

Usage

python
from dooit_extras.bar_widgets import StatusIcons
from dooit.ui.api.events import subscribe, Startup

@subscribe(Startup)
def setup(api, _):
    api.bar.set(
        [
            # ....
            StatusIcons(api),
            # ....
        ]
    )