Commit 09d82be2 authored by Florian Blasius's avatar Florian Blasius 🤘

small stuff

parent 990fcfc9
......@@ -112,6 +112,10 @@ where
flags.push(orbclient::WindowFlag::Borderless);
}
if self.always_on_top {
flags.push(orbclient::WindowFlag::Front);
}
let window = orbclient::Window::new_flags(
self.bounds.x() as i32,
self.bounds.y() as i32,
......
......@@ -21,14 +21,13 @@ pub struct TabHeaderState {
on_close_click_callback: Option<Box<dyn 'static + Fn(&mut StatesContext, Point) -> bool>>,
header_bar: Entity,
tab_header_container: Entity,
// tab_header_container: Entity,
}
impl State for TabHeaderState {
fn init(&mut self, registry: &mut Registry, ctx: &mut Context) {
self.header_bar = ctx.child(HEADER_BAR).entity();
self.tab_header_container = ctx.child(TAB_HEADER_CONTAINER).entity();
// self.tab_header_container = ctx.child(TAB_HEADER_CONTAINER).entity();
self.update(registry, ctx);
}
......
......@@ -9,6 +9,7 @@ pub use std::{
pub use dces::prelude::*;
pub use crate::{
api::macros::*,
api::prelude::*,
localization::prelude::*,
proc_macros::*,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment