tooltip wrap, clippy

[skip ci]
This commit is contained in:
Aleksander
2025-12-23 17:14:46 +01:00
parent 9a606dbce5
commit 1b4c2a9006
14 changed files with 180 additions and 168 deletions

View File

@@ -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()
},
},

View File

@@ -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?!?!