diff --git a/Cargo.lock b/Cargo.lock index 4769996..2f702b5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1077,7 +1077,7 @@ dependencies = [ [[package]] name = "cosmic-config" version = "0.1.0" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "atomicwrites 0.4.2", "cosmic-config-derive", @@ -1096,7 +1096,7 @@ dependencies = [ [[package]] name = "cosmic-config-derive" version = "0.1.0" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "quote", "syn 1.0.109", @@ -1128,7 +1128,7 @@ dependencies = [ [[package]] name = "cosmic-theme" version = "0.1.0" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "almost", "cosmic-config", @@ -1951,16 +1951,6 @@ dependencies = [ "percent-encoding", ] -[[package]] -name = "fraction" -version = "0.15.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f158e3ff0a1b334408dc9fb811cd99b446986f4d8b741bb08f9df1604085ae7" -dependencies = [ - "lazy_static", - "num", -] - [[package]] name = "freedesktop-desktop-entry" version = "0.5.2" @@ -2493,7 +2483,7 @@ dependencies = [ [[package]] name = "iced" version = "0.14.0-dev" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "dnd", "iced_accessibility", @@ -2511,7 +2501,7 @@ dependencies = [ [[package]] name = "iced_accessibility" version = "0.1.0" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "accesskit", "accesskit_winit", @@ -2520,7 +2510,7 @@ dependencies = [ [[package]] name = "iced_core" version = "0.14.0-dev" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "bitflags 2.6.0", "bytes", @@ -2543,7 +2533,7 @@ dependencies = [ [[package]] name = "iced_futures" version = "0.14.0-dev" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "futures", "iced_core", @@ -2569,7 +2559,7 @@ dependencies = [ [[package]] name = "iced_graphics" version = "0.14.0-dev" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "bitflags 2.6.0", "bytemuck", @@ -2591,7 +2581,7 @@ dependencies = [ [[package]] name = "iced_renderer" version = "0.14.0-dev" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "iced_graphics", "iced_tiny_skia", @@ -2603,7 +2593,7 @@ dependencies = [ [[package]] name = "iced_runtime" version = "0.14.0-dev" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "bytes", "dnd", @@ -2617,7 +2607,7 @@ dependencies = [ [[package]] name = "iced_tiny_skia" version = "0.14.0-dev" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "bytemuck", "cosmic-text", @@ -2633,7 +2623,7 @@ dependencies = [ [[package]] name = "iced_wgpu" version = "0.14.0-dev" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "as-raw-xcb-connection", "bitflags 2.6.0", @@ -2664,7 +2654,7 @@ dependencies = [ [[package]] name = "iced_widget" version = "0.14.0-dev" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "dnd", "iced_renderer", @@ -2681,7 +2671,7 @@ dependencies = [ [[package]] name = "iced_winit" version = "0.14.0-dev" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "dnd", "iced_futures", @@ -3001,7 +2991,7 @@ checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" [[package]] name = "libcosmic" version = "0.1.0" -source = "git+https://github.com/pop-os/libcosmic.git#62b0c8a401c175ab956229b2901f2fdb8b96aeab" +source = "git+https://github.com/pop-os/libcosmic.git#525a14cfb1a735779a9fe970ff1726c8dbf1b217" dependencies = [ "apply", "ashpd 0.9.1", @@ -3010,7 +3000,6 @@ dependencies = [ "cosmic-theme", "css-color", "derive_setters", - "fraction", "freedesktop-desktop-entry", "freedesktop-icons", "iced", @@ -3477,70 +3466,6 @@ dependencies = [ "windows-sys 0.48.0", ] -[[package]] -name = "num" -version = "0.4.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23" -dependencies = [ - "num-bigint", - "num-complex", - "num-integer", - "num-iter", - "num-rational", - "num-traits", -] - -[[package]] -name = "num-bigint" -version = "0.4.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c165a9ab64cf766f73521c0dd2cfdff64f488b8f0b3e621face3462d3db536d7" -dependencies = [ - "num-integer", - "num-traits", -] - -[[package]] -name = "num-complex" -version = "0.4.6" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495" -dependencies = [ - "num-traits", -] - -[[package]] -name = "num-integer" -version = "0.1.46" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f" -dependencies = [ - "num-traits", -] - -[[package]] -name = "num-iter" -version = "0.1.45" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf" -dependencies = [ - "autocfg", - "num-integer", - "num-traits", -] - -[[package]] -name = "num-rational" -version = "0.4.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824" -dependencies = [ - "num-bigint", - "num-integer", - "num-traits", -] - [[package]] name = "num-traits" version = "0.2.19" diff --git a/src/app.rs b/src/app.rs index 7a941a6..7737e1f 100644 --- a/src/app.rs +++ b/src/app.rs @@ -282,6 +282,7 @@ impl Application for Tasks { Some(match self.context_page { ContextPage::About => { app::context_drawer::about(&self.about, Message::Open, Message::ToggleContextDrawer) + .title(self.context_page.title()) } ContextPage::Settings => { app::context_drawer::context_drawer(self.settings(), Message::ToggleContextDrawer) diff --git a/src/content.rs b/src/content.rs index 85c455c..be2e20c 100644 --- a/src/content.rs +++ b/src/content.rs @@ -294,9 +294,11 @@ impl Content { .push(self.list_view(list)) .push(self.new_task_view()) .spacing(spacing.space_xxs) + .max_width(800.) .apply(widget::container) .height(Length::Fill) .width(Length::Fill) + .center(Length::Fill) .into() }