tooltip wrap, clippy
[skip ci]
This commit is contained in:
@@ -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?!?!
|
||||
|
||||
Reference in New Issue
Block a user