Skip to content

Badge

badge · Elements

A pill — a branch name, a counter, a status chip.

Import

cpp
#include "gbui/widgets/badge.hpp"

Example

Nothing is downloaded until you press it.

cpp
NodeId badge(Ui& ui, std::string_view value, const BadgeOptions& options = {});

API

BadgeOptions

OptionTypeDefaultWhat it does
backgroundTokenToken::BgOverlay
foregroundTokenToken::TextMutedThe text on the wash. Paired with background, and the contrast between the two is the caller's to get right — a pill is one node and there is nothing here that can check it.

Released under the LGPL-3.0-or-later licence.