widgets: policycheck_menu: update styling
* not used, since menu is dynamically created via function Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -6,17 +6,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
use orbtk::prelude::*;
|
use orbtk::prelude::*;
|
||||||
//use orbtk::theme::vector_graphics::material_icons_font;
|
|
||||||
|
|
||||||
use crate::data::constants::*;
|
use crate::data::constants::*;
|
||||||
|
|
||||||
//pub struct PolicyMenu {
|
|
||||||
// pub isvalid: bool
|
|
||||||
//}
|
|
||||||
|
|
||||||
widget!(
|
widget!(
|
||||||
PolicyCheckMenu {
|
PolicyCheckMenu {
|
||||||
isvalid: String
|
is_active: Bool
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -51,56 +46,25 @@ impl Template for PolicyCheckMenu {
|
|||||||
|
|
||||||
self.name("PolicyCheckMenu").child(
|
self.name("PolicyCheckMenu").child(
|
||||||
Stack::new()
|
Stack::new()
|
||||||
|
.id(ID_POLICY_CHECK_MENU)
|
||||||
.orientation("vertical")
|
.orientation("vertical")
|
||||||
.spacing(8.0)
|
.spacing(8)
|
||||||
.h_align("center")
|
.h_align("center")
|
||||||
.child(
|
.child(
|
||||||
Stack::new()
|
Button::new()
|
||||||
.orientation("horizontal")
|
.icon(material_icons_font::MD_VERIFIED_USER)
|
||||||
.spacing(4.0)
|
.text("angemeldeter Benutzer")
|
||||||
.h_align("start")
|
.margin((0, 8, 0, 0))
|
||||||
.child(
|
|
||||||
Button::new()
|
|
||||||
.element("button-user")
|
|
||||||
.icon("")
|
|
||||||
.min_width(32.0)
|
|
||||||
.max_width(32.0)
|
|
||||||
.build(ctx),
|
|
||||||
)
|
|
||||||
.child(
|
|
||||||
TextBlock::new()
|
|
||||||
.element("menu-user")
|
|
||||||
.min_width(80.0)
|
|
||||||
.max_width(180.0)
|
|
||||||
.text("angemeldeter Benutzer")
|
|
||||||
.build(ctx),
|
|
||||||
)
|
|
||||||
.build(ctx),
|
.build(ctx),
|
||||||
)
|
)
|
||||||
.child(
|
.child(
|
||||||
Stack::new()
|
Button::new()
|
||||||
.orientation("horizontal")
|
.icon(material_icons_font::MD_EXIT_TO_APP)
|
||||||
.spacing(4.0)
|
.text("Quit")
|
||||||
.h_align("start")
|
.margin((0, 8, 0, 0))
|
||||||
.child(
|
|
||||||
Button::new()
|
|
||||||
.element("button-user")
|
|
||||||
.icon("")
|
|
||||||
.min_width(32.0)
|
|
||||||
.max_width(32.0)
|
|
||||||
.build(ctx),
|
|
||||||
)
|
|
||||||
.child(
|
|
||||||
TextBlock::new()
|
|
||||||
.element("menu-quit")
|
|
||||||
.min_width(80.0)
|
|
||||||
.max_width(180.0)
|
|
||||||
.text("Quit")
|
|
||||||
.build(ctx),
|
|
||||||
)
|
|
||||||
.build(ctx),
|
.build(ctx),
|
||||||
)
|
)
|
||||||
.build(ctx)
|
.build(ctx),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user