Skip to content

Instantly share code, notes, and snippets.

@valkum
Created March 28, 2020 15:32
Show Gist options
  • Save valkum/6dbc4f474246d4bd81b9fa277bedc4b4 to your computer and use it in GitHub Desktop.
Save valkum/6dbc4f474246d4bd81b9fa277bedc4b4 to your computer and use it in GitHub Desktop.
fn main() {
Application::from_name("OrbTK-Chat")
.window(|ctx| {
Window::create()
.title("OrbTK Chat Wireframe")
.size(900.0, 600.0)
.resizeable(true)
.borderless(true)
.theme(get_theme())
.child(
Container::create()
.padding(50.0)
.child(
Stack::create()
.spacing(5.0)
.child(
Button::create()
.height(14.0)
.width(14.0)
.text("A")
.build(ctx)
)
.child(
Button::create()
.height(14.0)
.width(14.0)
.border_radius(5.0)
.text("B")
.build(ctx)
)
.child(
Button::create()
.background("#ff0000")
.height(14.0)
.width(14.0)
.border_radius(10.0)
.text("C")
.build(ctx)
)
.child(
Button::create()
.background("#ff0000")
.height(14.0)
.width(14.0)
.border_radius(14.0)
.text("D")
.build(ctx)
)
.build(ctx)
)
.build(ctx)
)
.build(ctx)
})
.run();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment