chore: make dbus-config optional
Also fixes some lints.
This commit is contained in:
parent
6d9cd3e7e5
commit
131cf7e8cd
6 changed files with 123 additions and 90 deletions
26
src/tab.rs
26
src/tab.rs
|
|
@ -2070,7 +2070,7 @@ impl Item {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn preview_header(&self) -> Vec<Element<Message>> {
|
||||
pub fn preview_header(&self) -> Vec<Element<'_, Message>> {
|
||||
let mut row = Vec::with_capacity(3);
|
||||
row.push(
|
||||
widget::button::icon(widget::icon::from_name("go-previous-symbolic"))
|
||||
|
|
@ -4167,7 +4167,7 @@ impl Tab {
|
|||
container.into()
|
||||
}
|
||||
|
||||
pub fn gallery_view(&self) -> Element<Message> {
|
||||
pub fn gallery_view(&self) -> Element<'_, Message> {
|
||||
let cosmic_theme::Spacing {
|
||||
space_xxs,
|
||||
space_xs,
|
||||
|
|
@ -4298,7 +4298,7 @@ impl Tab {
|
|||
.into()
|
||||
}
|
||||
|
||||
pub fn location_view(&self) -> Element<Message> {
|
||||
pub fn location_view(&self) -> Element<'_, Message> {
|
||||
//TODO: responsiveness is done in a hacky way, potentially move this to a custom widget?
|
||||
fn text_width<'a>(
|
||||
content: &'a str,
|
||||
|
|
@ -4648,7 +4648,7 @@ impl Tab {
|
|||
popover.into()
|
||||
}
|
||||
|
||||
pub fn empty_view(&self, has_hidden: bool) -> Element<Message> {
|
||||
pub fn empty_view(&self, has_hidden: bool) -> Element<'_, Message> {
|
||||
let cosmic_theme::Spacing { space_xxs, .. } = theme::active().cosmic().spacing;
|
||||
|
||||
mouse_area::MouseArea::new(widget::column::with_children(vec![
|
||||
|
|
@ -4680,7 +4680,13 @@ impl Tab {
|
|||
.into()
|
||||
}
|
||||
|
||||
pub fn grid_view(&self) -> (Option<Element<'static, Message>>, Element<Message>, bool) {
|
||||
pub fn grid_view(
|
||||
&self,
|
||||
) -> (
|
||||
Option<Element<'static, Message>>,
|
||||
Element<'_, Message>,
|
||||
bool,
|
||||
) {
|
||||
let cosmic_theme::Spacing {
|
||||
space_xxs,
|
||||
space_xxxs,
|
||||
|
|
@ -5014,7 +5020,13 @@ impl Tab {
|
|||
(drag_list, mouse_area.into(), true)
|
||||
}
|
||||
|
||||
pub fn list_view(&self) -> (Option<Element<'static, Message>>, Element<Message>, bool) {
|
||||
pub fn list_view(
|
||||
&self,
|
||||
) -> (
|
||||
Option<Element<'static, Message>>,
|
||||
Element<'_, Message>,
|
||||
bool,
|
||||
) {
|
||||
let cosmic_theme::Spacing {
|
||||
space_s, space_xxs, ..
|
||||
} = theme::active().cosmic().spacing;
|
||||
|
|
@ -5404,7 +5416,7 @@ impl Tab {
|
|||
&self,
|
||||
key_binds: &HashMap<KeyBind, Action>,
|
||||
size: Size,
|
||||
) -> Element<Message> {
|
||||
) -> Element<'_, Message> {
|
||||
// Update cached size
|
||||
self.size_opt.set(Some(size));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue