tooltip wrap, clippy
[skip ci]
This commit is contained in:
@@ -13,10 +13,7 @@ use wgui::{
|
||||
widget::{label::WidgetLabel, rectangle::WidgetRectangle},
|
||||
windowing::{WguiWindow, WguiWindowParams, WguiWindowParamsExtra, WguiWindowPlacement},
|
||||
};
|
||||
use wlx_common::{
|
||||
dash_interface::{self, BoxDashInterface},
|
||||
timestep::Timestep,
|
||||
};
|
||||
use wlx_common::{dash_interface::BoxDashInterface, timestep::Timestep};
|
||||
|
||||
use crate::{
|
||||
assets, settings,
|
||||
@@ -173,8 +170,6 @@ impl Frontend {
|
||||
let mut layout = self.layout.borrow_mut();
|
||||
|
||||
tab.update(TabUpdateParams {
|
||||
globals: &self.globals,
|
||||
frontend_tasks: &self.tasks,
|
||||
layout: &mut layout,
|
||||
interface: &mut self.interface,
|
||||
})?;
|
||||
|
||||
@@ -9,7 +9,7 @@ use wgui::{
|
||||
};
|
||||
|
||||
use crate::{
|
||||
frontend::{Frontend, FrontendTask},
|
||||
frontend::FrontendTask,
|
||||
settings,
|
||||
tab::{Tab, TabParams, TabType},
|
||||
various,
|
||||
|
||||
@@ -33,8 +33,6 @@ pub struct TabParams<'a> {
|
||||
}
|
||||
|
||||
pub struct TabUpdateParams<'a> {
|
||||
pub globals: &'a WguiGlobals,
|
||||
pub frontend_tasks: &'a FrontendTasks,
|
||||
pub layout: &'a mut Layout,
|
||||
pub interface: &'a mut BoxDashInterface,
|
||||
}
|
||||
|
||||
@@ -51,7 +51,6 @@ impl TabProcesses {
|
||||
layout: params.layout,
|
||||
parent_id: state.get_widget_id("process_list_parent")?,
|
||||
globals: params.globals.clone(),
|
||||
frontend_tasks: params.frontend_tasks.clone(),
|
||||
})?,
|
||||
state,
|
||||
})
|
||||
|
||||
@@ -9,12 +9,12 @@ use wgui::{
|
||||
i18n::Translation,
|
||||
layout::{Layout, LayoutTask, LayoutTasks, WidgetID},
|
||||
renderer_vk::{
|
||||
text::{FontWeight, TextStyle},
|
||||
text::{FontWeight, HorizontalAlign, TextStyle},
|
||||
util::centered_matrix,
|
||||
},
|
||||
taffy::{
|
||||
self,
|
||||
prelude::{length, percent},
|
||||
prelude::{auto, length, percent},
|
||||
},
|
||||
widget::{
|
||||
div::WidgetDiv,
|
||||
@@ -102,6 +102,10 @@ impl ToastManager {
|
||||
top: length(8.0),
|
||||
bottom: length(8.0),
|
||||
},
|
||||
max_size: taffy::Size {
|
||||
width: length(400.0),
|
||||
height: auto(),
|
||||
},
|
||||
..Default::default()
|
||||
},
|
||||
)?;
|
||||
@@ -114,6 +118,8 @@ impl ToastManager {
|
||||
content,
|
||||
style: TextStyle {
|
||||
weight: Some(FontWeight::Bold),
|
||||
align: Some(HorizontalAlign::Center),
|
||||
wrap: true,
|
||||
..Default::default()
|
||||
},
|
||||
},
|
||||
|
||||
@@ -17,6 +17,8 @@ use wlx_common::dash_interface::BoxDashInterface;
|
||||
|
||||
use crate::util::desktop_finder;
|
||||
|
||||
// the compiler wants to scream
|
||||
#[allow(irrefutable_let_patterns)]
|
||||
pub fn get_desktop_file_icon_path(desktop_file: &desktop_finder::DesktopFile) -> AssetPathOwned {
|
||||
/*
|
||||
FIXME: why is the compiler complaining about trailing irrefutable patterns there?!?!
|
||||
|
||||
@@ -1,19 +1,15 @@
|
||||
use std::rc::Rc;
|
||||
|
||||
use anyhow::Context;
|
||||
use wayvr_ipc::packet_server;
|
||||
use wgui::{
|
||||
assets::AssetPath,
|
||||
components::{button::ComponentButton, checkbox::ComponentCheckbox, slider::ComponentSlider},
|
||||
event::StyleSetRequest,
|
||||
components::button::ComponentButton,
|
||||
globals::WguiGlobals,
|
||||
i18n::Translation,
|
||||
layout::{Layout, WidgetID},
|
||||
parser::{Fetchable, ParseDocumentParams, ParserState},
|
||||
taffy::prelude::length,
|
||||
widget::{ConstructEssentials, label::WidgetLabel, rectangle::WidgetRectangle},
|
||||
widget::ConstructEssentials,
|
||||
};
|
||||
use wlx_common::dash_interface::{self, BoxDashInterface};
|
||||
use wlx_common::dash_interface::BoxDashInterface;
|
||||
|
||||
use crate::{
|
||||
frontend::{FrontendTask, FrontendTasks},
|
||||
@@ -91,7 +87,7 @@ impl View {
|
||||
})
|
||||
}
|
||||
|
||||
pub fn update(&mut self, layout: &mut Layout, interface: &mut BoxDashInterface) -> anyhow::Result<()> {
|
||||
pub fn update(&mut self, _layout: &mut Layout, interface: &mut BoxDashInterface) -> anyhow::Result<()> {
|
||||
for task in self.tasks.drain() {
|
||||
match task {
|
||||
Task::SetVisible(v) => self.action_set_visible(interface, v),
|
||||
|
||||
@@ -22,7 +22,6 @@ use wgui::{
|
||||
use wlx_common::dash_interface::BoxDashInterface;
|
||||
|
||||
use crate::{
|
||||
frontend::FrontendTasks,
|
||||
task::Tasks,
|
||||
util::{
|
||||
self,
|
||||
@@ -39,7 +38,6 @@ enum Task {
|
||||
|
||||
pub struct Params<'a> {
|
||||
pub globals: WguiGlobals,
|
||||
pub frontend_tasks: FrontendTasks,
|
||||
pub layout: &'a mut Layout,
|
||||
pub parent_id: WidgetID,
|
||||
}
|
||||
@@ -48,7 +46,6 @@ pub struct View {
|
||||
#[allow(dead_code)]
|
||||
pub parser_state: ParserState,
|
||||
tasks: Tasks<Task>,
|
||||
frontend_tasks: FrontendTasks,
|
||||
globals: WguiGlobals,
|
||||
id_list_parent: WidgetID,
|
||||
}
|
||||
@@ -71,7 +68,6 @@ impl View {
|
||||
Ok(Self {
|
||||
parser_state,
|
||||
tasks,
|
||||
frontend_tasks: params.frontend_tasks,
|
||||
globals: params.globals,
|
||||
id_list_parent: list_parent.id,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user