feat: menubar popups
This commit is contained in:
parent
dc538d86e9
commit
c47c12fe17
6 changed files with 1037 additions and 703 deletions
1727
Cargo.lock
generated
1727
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
|
|
@ -52,9 +52,10 @@ features = ["a11y", "multi-window", "tokio", "winit", "surface-message"]
|
||||||
fork = "0.2"
|
fork = "0.2"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["gvfs", "wgpu"]
|
default = ["gvfs", "wgpu", "wayland"]
|
||||||
gvfs = ["cosmic-files/gvfs"]
|
gvfs = ["cosmic-files/gvfs"]
|
||||||
wgpu = ["libcosmic/wgpu", "cosmic-files/wgpu"]
|
wgpu = ["libcosmic/wgpu", "cosmic-files/wgpu"]
|
||||||
|
wayland = ["libcosmic/wayland", "cosmic-files/wayland"]
|
||||||
|
|
||||||
[profile.release-with-debug]
|
[profile.release-with-debug]
|
||||||
inherits = "release"
|
inherits = "release"
|
||||||
|
|
|
||||||
1
debian/control
vendored
1
debian/control
vendored
|
|
@ -7,6 +7,7 @@ Build-Depends:
|
||||||
git,
|
git,
|
||||||
just (>= 1.13.0),
|
just (>= 1.13.0),
|
||||||
pkg-config,
|
pkg-config,
|
||||||
|
libglib2.0-dev,
|
||||||
libxkbcommon-dev,
|
libxkbcommon-dev,
|
||||||
rust-all,
|
rust-all,
|
||||||
Standards-Version: 4.6.2
|
Standards-Version: 4.6.2
|
||||||
|
|
|
||||||
|
|
@ -2149,7 +2149,8 @@ impl Application for App {
|
||||||
},
|
},
|
||||||
relative_path.display()
|
relative_path.display()
|
||||||
);
|
);
|
||||||
let icon = icon::icon(mime_icon(mime_for_path(&diff.path), 16)).size(16);
|
let icon =
|
||||||
|
icon::icon(mime_icon(mime_for_path(&diff.path, None, false), 16)).size(16);
|
||||||
let tab = Tab::GitDiff(GitDiffTab { title, diff });
|
let tab = Tab::GitDiff(GitDiffTab { title, diff });
|
||||||
self.tab_model
|
self.tab_model
|
||||||
.insert()
|
.insert()
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,9 @@ impl ProjectNode {
|
||||||
icon_cache_get("go-next-symbolic", size)
|
icon_cache_get("go-next-symbolic", size)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Self::File { path, .. } => icon::icon(mime_icon(mime_for_path(path), size)).size(size),
|
Self::File { path, .. } => {
|
||||||
|
icon::icon(mime_icon(mime_for_path(path, None, false), size)).size(size)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -237,7 +237,7 @@ impl EditorTab {
|
||||||
|
|
||||||
pub fn icon(&self, size: u16) -> icon::Icon {
|
pub fn icon(&self, size: u16) -> icon::Icon {
|
||||||
match &self.path_opt {
|
match &self.path_opt {
|
||||||
Some(path) => icon::icon(mime_icon(mime_for_path(path), size)).size(size),
|
Some(path) => icon::icon(mime_icon(mime_for_path(path, None, false), size)).size(size),
|
||||||
None => icon::from_name(FALLBACK_MIME_ICON).size(size).icon(),
|
None => icon::from_name(FALLBACK_MIME_ICON).size(size).icon(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue