main: initialize orbtk with initialize() functions
* needed at least for wayland client Signed-off-by: Ralf Zerres <ralf.zerres@networkx.de>
This commit is contained in:
@@ -97,15 +97,18 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||||||
state = t!("state.started", lang);
|
state = t!("state.started", lang);
|
||||||
trace!(target: "advotracker", process = ?res, state = ?state);
|
trace!(target: "advotracker", process = ?res, state = ?state);
|
||||||
|
|
||||||
|
// use this only if you want to run it as web application.
|
||||||
|
orbtk::initialize();
|
||||||
|
|
||||||
Application::from_name("nwx.advotracker")
|
Application::from_name("nwx.advotracker")
|
||||||
.theme(PolicyCheckState::theme())
|
.theme(PolicyCheckState::theme())
|
||||||
.window(|ctx| {
|
.window(|ctx| {
|
||||||
Window::new()
|
Window::new()
|
||||||
.title("AdvoTracker - DirectCall")
|
.title("AdvoTracker - DirectCall")
|
||||||
.position((500.0, 100.0))
|
//.position((500.0, 100.0))
|
||||||
.size(580.0, 320.0)
|
.size(580.0, 320.0)
|
||||||
.min_width(460.0)
|
//.min_width(460.0)
|
||||||
.min_height(180.0)
|
//.min_height(180.0)
|
||||||
.resizeable(true)
|
.resizeable(true)
|
||||||
.child(main_view::MainView::new().build(ctx))
|
.child(main_view::MainView::new().build(ctx))
|
||||||
.build(ctx)
|
.build(ctx)
|
||||||
|
|||||||
Reference in New Issue
Block a user