examples: advowidgets
* update to use new wip-orbtk branch - using lates material-icons-font code - use bugfix to add ComboBox items Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -189,7 +189,7 @@ impl Template for MainView {
|
||||
Button::new()
|
||||
.text("Button")
|
||||
.margin((0., 8., 0., 0.))
|
||||
.icon(material_icons_font_ttf::MD_CHECK)
|
||||
.icon(material_icons_font::MD_CHECK)
|
||||
.attach(Grid::column(0))
|
||||
.attach(Grid::row(1))
|
||||
.on_click(move |states, _| {
|
||||
@@ -204,7 +204,7 @@ impl Template for MainView {
|
||||
.element("button")
|
||||
.class("primary")
|
||||
.margin((0., 8., 0., 0.))
|
||||
.icon(material_icons_font_ttf::MD_360)
|
||||
.icon(material_icons_font::MD_360)
|
||||
.attach(Grid::column(0))
|
||||
.attach(Grid::row(2))
|
||||
.build(ctx),
|
||||
@@ -214,7 +214,7 @@ impl Template for MainView {
|
||||
.class("single_content")
|
||||
.text("ToggleButton")
|
||||
.margin((0., 8., 2., 0.))
|
||||
.icon(material_icons_font_ttf::MD_ALARM_ON)
|
||||
.icon(material_icons_font::MD_ALARM_ON)
|
||||
.attach(Grid::column(0))
|
||||
.attach(Grid::row(3))
|
||||
.build(ctx),
|
||||
@@ -300,7 +300,7 @@ impl Template for MainView {
|
||||
.margin((0., 8., 0., 0.))
|
||||
.class("single_content")
|
||||
.margin((0., 8., 8., 0.))
|
||||
.icon(material_icons_font_ttf::MD_CLEAR)
|
||||
.icon(material_icons_font::MD_CLEAR)
|
||||
.text("clear text")
|
||||
.on_click(move |states, _| {
|
||||
state(id, states).action(Action::ClearText);
|
||||
@@ -390,7 +390,7 @@ impl Template for MainView {
|
||||
.element("button")
|
||||
.class("single_content")
|
||||
.id("remove-item-button")
|
||||
.icon(material_icons_font_ttf::MD_REMOVE_CIRCLE)
|
||||
.icon(material_icons_font::MD_REMOVE_CIRCLE)
|
||||
.on_click(move |states, _| {
|
||||
state(id, states).action(Action::RemoveItem);
|
||||
true
|
||||
@@ -405,7 +405,7 @@ impl Template for MainView {
|
||||
.element("button")
|
||||
.class("single_content")
|
||||
.id("add-item-button")
|
||||
.icon(material_icons_font_ttf::MD_ADD_CIRCLE)
|
||||
.icon(material_icons_font::MD_ADD_CIRCLE)
|
||||
.on_click(move |states, _| {
|
||||
state(id, states).action(Action::AddItem);
|
||||
true
|
||||
|
||||
Reference in New Issue
Block a user