Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
design_system.hpp File Reference

Go to the source code of this file.

Classes

struct  pulp::design::ComponentInfo
 One cataloged component: the bridge between a Figma component and its native C++ widget, plus enough metadata for tooling and docs to use it well. More...

Namespaces

namespace  pulp
namespace  pulp::design

Enumerations

enum class  pulp::design::Category {
  pulp::design::controls , pulp::design::inputs , pulp::design::indicators , pulp::design::navigation ,
  pulp::design::containers , pulp::design::overlays , pulp::design::audio , pulp::design::feedback
}
 Coarse grouping, mirrored from the Figma Overview page's 7 sections. More...

Functions

pulp::view::Theme pulp::design::ink_signal_theme (bool dark=true)
 The "Ink & Signal" theme for the requested appearance, token-true to the vendored bundle (assets/design-system/ink-signal/).
void pulp::design::apply_ink_signal (pulp::view::View &root, bool dark=true)
 Apply the Ink & Signal theme to a view tree root.
std::string_view pulp::design::category_name (Category c)
const std::vector< ComponentInfo > & pulp::design::catalog ()
 All cataloged components, in a stable display order.
const ComponentInfo * pulp::design::find (std::string_view name)
 Look up a component by its catalog name (case-sensitive, e.g.
std::vector< const ComponentInfo * > pulp::design::in_category (Category c)
 All components in a category, in catalog order.

Variables

constexpr std::string_view pulp::design::kFigmaFileKey = "q9iDYZzg86YrOQKr6I3bY0"
 The Figma file that hosts the authored library (designer-facing editor).