prettygooey 0.1.0

Set of themed UI components for the iced GUI library
Documentation

Prettygoey

Prettygooey is a set of themed UI components for the iced GUI library.

Showcase

⚠️ Prettygooey, like iced, is experimental software. ⚠️

Getting started

This guide assumes you have basic knowledge of iced.

In your Sandbox's constructor, create an instance of prettygooey::theme::Theme.

fn new() -> Self {
	Self {
		theme: Theme {
			accent_color: AccentColor::Magenta,
		},
	}
}

In your Sandbox's view function, return an instance of our primary container to apply the background.

fn view(&self) -> Element<'_, Self::Message> {
	// Pass a row or column of widgets to the container
	self.theme.primary_container(column![]).into()
}

All supported widgets can be created via the Theme instance.

let button = self.theme.button("Click me");

Widgets may provide optional customizations. Take the Text widget for example. By importing the extension trait prettygooey::theme::ThemeExt, you expose a variant method that'll let you switch the variant to Dimmed:

self.theme
	.text("Theme selection")
	.variant(TextVariant::Dimmed),