mirror of https://github.com/wayvr-org/wayvr.git
rebase
This commit is contained in:
parent
c16c403966
commit
97fcde1a3b
|
|
@ -8,13 +8,13 @@ use wgui::{
|
|||
slider::ComponentSlider,
|
||||
tabs::ComponentTabs,
|
||||
},
|
||||
drawing::{self, Color},
|
||||
drawing::Color,
|
||||
globals::WguiGlobals,
|
||||
layout::{Layout, WidgetID},
|
||||
parser::{self, Fetchable, ParseDocumentParams, ParserData, ParserState},
|
||||
task::Tasks,
|
||||
};
|
||||
use wlx_common::dash_interface::{self, DashInterface, MonadoDumpSessionFrame};
|
||||
use wlx_common::dash_interface::{self, MonadoDumpSessionFrame};
|
||||
|
||||
use crate::{
|
||||
frontend::Frontend,
|
||||
|
|
@ -288,8 +288,6 @@ impl SubtabDebugTimings {
|
|||
|
||||
let id_parent = state.get_widget_id("parent")?;
|
||||
|
||||
let mut graphs: Vec<DebugGraph> = Vec::new();
|
||||
|
||||
let mut graph = |name: &'static str, limits: (f32, f32)| -> anyhow::Result<DebugGraph> {
|
||||
mount_graph(
|
||||
&mut state,
|
||||
|
|
|
|||
|
|
@ -110,8 +110,6 @@ pub fn construct(
|
|||
ess: &mut ConstructEssentials,
|
||||
mut params: Params,
|
||||
) -> anyhow::Result<(WidgetPair, Rc<ComponentBarGraph>)> {
|
||||
let globals = ess.layout.state.globals.clone();
|
||||
|
||||
params.style.flex_direction = FlexDirection::Row;
|
||||
params.style.gap = length(4.0);
|
||||
|
||||
|
|
@ -213,17 +211,11 @@ pub fn construct(
|
|||
..Default::default()
|
||||
};
|
||||
|
||||
let (label_val_max, _) = ess.layout.add_child(
|
||||
vertical_texts.id,
|
||||
WidgetLabel::create(&mut globals.get(), label_params.clone()),
|
||||
Default::default(),
|
||||
)?;
|
||||
let label = WidgetLabel::create(&mut ess.layout.state, label_params.clone());
|
||||
let (label_val_max, _) = ess.layout.add_child(vertical_texts.id, label, Default::default())?;
|
||||
|
||||
let (label_val_min, _) = ess.layout.add_child(
|
||||
vertical_texts.id,
|
||||
WidgetLabel::create(&mut globals.get(), label_params),
|
||||
Default::default(),
|
||||
)?;
|
||||
let label = WidgetLabel::create(&mut ess.layout.state, label_params);
|
||||
let (label_val_min, _) = ess.layout.add_child(vertical_texts.id, label, Default::default())?;
|
||||
|
||||
let data = Rc::new(Data {
|
||||
id_root: root.id,
|
||||
|
|
|
|||
Loading…
Reference in New Issue