commit
f817b6f31b
3 changed files with 15 additions and 14 deletions
4
Cargo.lock
generated
4
Cargo.lock
generated
|
|
@ -2998,9 +2998,9 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "harfrust"
|
name = "harfrust"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "406a98b615ed380f2195fa8fb2ed3083e64b2a6329d710e06f95a42466f0f0c4"
|
checksum = "75a4c970f1a00edc1626f1e3cc039492b15b73df28b9fff70f95404a571b4fae"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.9.4",
|
"bitflags 2.9.4",
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
|
|
|
||||||
|
|
@ -47,13 +47,14 @@ features = ["syntect", "vi"]
|
||||||
git = "https://github.com/pop-os/libcosmic.git"
|
git = "https://github.com/pop-os/libcosmic.git"
|
||||||
default-features = false
|
default-features = false
|
||||||
#TODO: a11y feature crashes file choser dialog
|
#TODO: a11y feature crashes file choser dialog
|
||||||
features = ["about", "dbus-config", "multi-window", "tokio", "winit", "surface-message"]
|
features = ["about", "multi-window", "tokio", "winit", "surface-message"]
|
||||||
|
|
||||||
[target.'cfg(unix)'.dependencies]
|
[target.'cfg(unix)'.dependencies]
|
||||||
fork = "0.2"
|
fork = "0.2"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["gvfs", "wgpu", "wayland"]
|
default = ["dbus-config","gvfs", "wgpu", "wayland"]
|
||||||
|
dbus-config = ["libcosmic/dbus-config"]
|
||||||
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"]
|
wayland = ["libcosmic/wayland", "cosmic-files/wayland"]
|
||||||
|
|
|
||||||
20
src/main.rs
20
src/main.rs
|
|
@ -850,7 +850,7 @@ impl App {
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
|
|
||||||
fn document_statistics(&self) -> Element<Message> {
|
fn document_statistics(&self) -> Element<'_, Message> {
|
||||||
//TODO: calculate in the background
|
//TODO: calculate in the background
|
||||||
let mut character_count = 0;
|
let mut character_count = 0;
|
||||||
let mut character_count_no_spaces = 0;
|
let mut character_count_no_spaces = 0;
|
||||||
|
|
@ -902,7 +902,7 @@ impl App {
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn git_management(&self) -> Element<Message> {
|
fn git_management(&self) -> Element<'_, Message> {
|
||||||
let spacing = self.core().system_theme().cosmic().spacing;
|
let spacing = self.core().system_theme().cosmic().spacing;
|
||||||
|
|
||||||
if let Some(project_status) = &self.git_project_status {
|
if let Some(project_status) = &self.git_project_status {
|
||||||
|
|
@ -1082,7 +1082,7 @@ impl App {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn project_search(&self) -> Element<Message> {
|
fn project_search(&self) -> Element<'_, Message> {
|
||||||
let spacing = self.core().system_theme().cosmic().spacing;
|
let spacing = self.core().system_theme().cosmic().spacing;
|
||||||
|
|
||||||
let search_input = widget::text_input::search_input(
|
let search_input = widget::text_input::search_input(
|
||||||
|
|
@ -1167,7 +1167,7 @@ impl App {
|
||||||
.into()
|
.into()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn settings(&self) -> Element<Message> {
|
fn settings(&self) -> Element<'_, Message> {
|
||||||
let app_theme_selected = match self.config.app_theme {
|
let app_theme_selected = match self.config.app_theme {
|
||||||
AppTheme::Dark => 1,
|
AppTheme::Dark => 1,
|
||||||
AppTheme::Light => 2,
|
AppTheme::Light => 2,
|
||||||
|
|
@ -1417,7 +1417,7 @@ impl Application for App {
|
||||||
}
|
}
|
||||||
|
|
||||||
// The default nav_bar widget needs to be condensed for cosmic-edit
|
// The default nav_bar widget needs to be condensed for cosmic-edit
|
||||||
fn nav_bar(&self) -> Option<Element<action::Action<Self::Message>>> {
|
fn nav_bar(&self) -> Option<Element<'_, action::Action<Self::Message>>> {
|
||||||
if !self.core().nav_bar_active() {
|
if !self.core().nav_bar_active() {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
@ -1536,7 +1536,7 @@ impl Application for App {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn dialog(&self) -> Option<Element<Self::Message>> {
|
fn dialog(&self) -> Option<Element<'_, Self::Message>> {
|
||||||
let Some(ref dialog) = self.dialog_page_opt else {
|
let Some(ref dialog) = self.dialog_page_opt else {
|
||||||
return None;
|
return None;
|
||||||
};
|
};
|
||||||
|
|
@ -2719,7 +2719,7 @@ impl Application for App {
|
||||||
Task::none()
|
Task::none()
|
||||||
}
|
}
|
||||||
|
|
||||||
fn context_drawer(&self) -> Option<context_drawer::ContextDrawer<Message>> {
|
fn context_drawer(&self) -> Option<context_drawer::ContextDrawer<'_, Message>> {
|
||||||
if !self.core.window.show_context {
|
if !self.core.window.show_context {
|
||||||
return None;
|
return None;
|
||||||
}
|
}
|
||||||
|
|
@ -2753,7 +2753,7 @@ impl Application for App {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
fn header_start(&self) -> Vec<Element<Message>> {
|
fn header_start(&self) -> Vec<Element<'_, Message>> {
|
||||||
vec![menu_bar(
|
vec![menu_bar(
|
||||||
&self.core,
|
&self.core,
|
||||||
&self.config,
|
&self.config,
|
||||||
|
|
@ -2763,7 +2763,7 @@ impl Application for App {
|
||||||
)]
|
)]
|
||||||
}
|
}
|
||||||
|
|
||||||
fn view(&self) -> Element<Message> {
|
fn view(&self) -> Element<'_, Message> {
|
||||||
let cosmic_theme::Spacing {
|
let cosmic_theme::Spacing {
|
||||||
space_none,
|
space_none,
|
||||||
space_xxs,
|
space_xxs,
|
||||||
|
|
@ -3029,7 +3029,7 @@ impl Application for App {
|
||||||
content
|
content
|
||||||
}
|
}
|
||||||
|
|
||||||
fn view_window(&self, window_id: window::Id) -> Element<Message> {
|
fn view_window(&self, window_id: window::Id) -> Element<'_, Message> {
|
||||||
match &self.dialog_opt {
|
match &self.dialog_opt {
|
||||||
Some(dialog) => dialog.view(window_id),
|
Some(dialog) => dialog.view(window_id),
|
||||||
None => widget::text("Unknown window ID").into(),
|
None => widget::text("Unknown window ID").into(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue