chore: adapt to the new libcosmic changes for Surface Action
This commit is contained in:
parent
3cb538f759
commit
bf920be39d
16 changed files with 48 additions and 49 deletions
63
Cargo.lock
generated
63
Cargo.lock
generated
|
|
@ -278,7 +278,7 @@ version = "1.1.5"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
|
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"windows-sys 0.60.2",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -289,7 +289,7 @@ checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"anstyle",
|
"anstyle",
|
||||||
"once_cell_polyfill",
|
"once_cell_polyfill",
|
||||||
"windows-sys 0.60.2",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -899,7 +899,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "build_helpers"
|
name = "build_helpers"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cfg_aliases 0.2.2",
|
"cfg_aliases 0.2.2",
|
||||||
]
|
]
|
||||||
|
|
@ -1393,7 +1393,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-config"
|
name = "cosmic-config"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"atomicwrites",
|
"atomicwrites",
|
||||||
"cosmic-config-derive",
|
"cosmic-config-derive",
|
||||||
|
|
@ -1414,7 +1414,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-config-derive"
|
name = "cosmic-config-derive"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"quote",
|
"quote",
|
||||||
"syn 2.0.119",
|
"syn 2.0.119",
|
||||||
|
|
@ -1681,7 +1681,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-settings-config"
|
name = "cosmic-settings-config"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/pop-os/cosmic-settings-daemon#617af3feb74dcf551a7c99b2396b4c9ac22568b3"
|
source = "git+https://github.com/pop-os/cosmic-settings-daemon#67c995d5e659173352ca0adfb22108ac1bf91f5a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"cosmic-config",
|
"cosmic-config",
|
||||||
"ron 0.11.0",
|
"ron 0.11.0",
|
||||||
|
|
@ -1803,7 +1803,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "cosmic-theme"
|
name = "cosmic-theme"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"almost",
|
"almost",
|
||||||
"configparser",
|
"configparser",
|
||||||
|
|
@ -2159,7 +2159,7 @@ dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"option-ext",
|
"option-ext",
|
||||||
"redox_users",
|
"redox_users",
|
||||||
"windows-sys 0.59.0",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -2349,7 +2349,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"windows-sys 0.52.0",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -3247,7 +3247,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced"
|
name = "iced"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"build_helpers",
|
"build_helpers",
|
||||||
"dnd",
|
"dnd",
|
||||||
|
|
@ -3269,7 +3269,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_accessibility"
|
name = "iced_accessibility"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"accesskit",
|
"accesskit",
|
||||||
"accesskit_winit",
|
"accesskit_winit",
|
||||||
|
|
@ -3278,7 +3278,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_core"
|
name = "iced_core"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.13.1",
|
"bitflags 2.13.1",
|
||||||
"build_helpers",
|
"build_helpers",
|
||||||
|
|
@ -3305,7 +3305,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_debug"
|
name = "iced_debug"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"iced_core",
|
"iced_core",
|
||||||
"iced_futures",
|
"iced_futures",
|
||||||
|
|
@ -3315,7 +3315,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_futures"
|
name = "iced_futures"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"futures",
|
"futures",
|
||||||
"iced_core",
|
"iced_core",
|
||||||
|
|
@ -3329,7 +3329,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_graphics"
|
name = "iced_graphics"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bitflags 2.13.1",
|
"bitflags 2.13.1",
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
|
|
@ -3350,7 +3350,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_program"
|
name = "iced_program"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"iced_graphics",
|
"iced_graphics",
|
||||||
"iced_runtime",
|
"iced_runtime",
|
||||||
|
|
@ -3359,7 +3359,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_renderer"
|
name = "iced_renderer"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"iced_graphics",
|
"iced_graphics",
|
||||||
"iced_tiny_skia",
|
"iced_tiny_skia",
|
||||||
|
|
@ -3371,7 +3371,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_runtime"
|
name = "iced_runtime"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"build_helpers",
|
"build_helpers",
|
||||||
"bytes",
|
"bytes",
|
||||||
|
|
@ -3388,7 +3388,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_tiny_skia"
|
name = "iced_tiny_skia"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"bytemuck",
|
"bytemuck",
|
||||||
"cosmic-text",
|
"cosmic-text",
|
||||||
|
|
@ -3405,7 +3405,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_wgpu"
|
name = "iced_wgpu"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"as-raw-xcb-connection",
|
"as-raw-xcb-connection",
|
||||||
"bitflags 2.13.1",
|
"bitflags 2.13.1",
|
||||||
|
|
@ -3437,7 +3437,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_widget"
|
name = "iced_widget"
|
||||||
version = "0.14.2"
|
version = "0.14.2"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"build_helpers",
|
"build_helpers",
|
||||||
"cosmic-client-toolkit",
|
"cosmic-client-toolkit",
|
||||||
|
|
@ -3458,7 +3458,7 @@ dependencies = [
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "iced_winit"
|
name = "iced_winit"
|
||||||
version = "0.14.0"
|
version = "0.14.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"build_helpers",
|
"build_helpers",
|
||||||
"cosmic-client-toolkit",
|
"cosmic-client-toolkit",
|
||||||
|
|
@ -4516,7 +4516,7 @@ version = "1.4.2"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7a1886916523694cd6ea3d175f03a1e5010699a2a4cc13696d83d7bea1d80638"
|
checksum = "7a1886916523694cd6ea3d175f03a1e5010699a2a4cc13696d83d7bea1d80638"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"windows-sys 0.59.0",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -4581,7 +4581,7 @@ checksum = "3eaf3ede3fee6db1a4c2ee091bf8a8b4dccdc6d17f656fb07896ee72867612f2"
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "libcosmic"
|
name = "libcosmic"
|
||||||
version = "1.0.0"
|
version = "1.0.0"
|
||||||
source = "git+https://github.com/pop-os/libcosmic#2a73fbc0edfe1525381bf999e241d73def79b222"
|
source = "git+https://github.com/pop-os/libcosmic#a401af8b1c54a8abd393b8c5b7c8809402f83850"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"apply",
|
"apply",
|
||||||
"ashpd 0.12.3",
|
"ashpd 0.12.3",
|
||||||
|
|
@ -4621,6 +4621,7 @@ dependencies = [
|
||||||
"phf",
|
"phf",
|
||||||
"rfd",
|
"rfd",
|
||||||
"ron 0.12.2",
|
"ron 0.12.2",
|
||||||
|
"roxmltree",
|
||||||
"rust-embed",
|
"rust-embed",
|
||||||
"rustix 1.1.4",
|
"rustix 1.1.4",
|
||||||
"serde",
|
"serde",
|
||||||
|
|
@ -5163,7 +5164,7 @@ version = "0.50.3"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
|
checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"windows-sys 0.59.0",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -6488,7 +6489,7 @@ dependencies = [
|
||||||
"errno",
|
"errno",
|
||||||
"libc",
|
"libc",
|
||||||
"linux-raw-sys 0.12.1",
|
"linux-raw-sys 0.12.1",
|
||||||
"windows-sys 0.52.0",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -6959,7 +6960,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
|
checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"libc",
|
"libc",
|
||||||
"windows-sys 0.60.2",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -7209,10 +7210,10 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
|
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"fastrand",
|
"fastrand",
|
||||||
"getrandom 0.3.4",
|
"getrandom 0.4.3",
|
||||||
"once_cell",
|
"once_cell",
|
||||||
"rustix 1.1.4",
|
"rustix 1.1.4",
|
||||||
"windows-sys 0.52.0",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -7637,7 +7638,7 @@ checksum = "f2f6fb2847f6742cd76af783a2a2c49e9375d0a111c7bef6f71cd9e738c72d6e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"memoffset",
|
"memoffset",
|
||||||
"tempfile",
|
"tempfile",
|
||||||
"windows-sys 0.60.2",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
@ -8301,7 +8302,7 @@ version = "0.1.11"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
|
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"windows-sys 0.48.0",
|
"windows-sys 0.61.2",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
|
||||||
|
|
@ -174,7 +174,7 @@ pub enum Message {
|
||||||
SearchSubmit,
|
SearchSubmit,
|
||||||
SetTheme(cosmic::theme::Theme),
|
SetTheme(cosmic::theme::Theme),
|
||||||
SetWindowTitle,
|
SetWindowTitle,
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl cosmic::Application for SettingsApp {
|
impl cosmic::Application for SettingsApp {
|
||||||
|
|
@ -860,9 +860,7 @@ impl cosmic::Application for SettingsApp {
|
||||||
tracing::error!(error, "error occurred");
|
tracing::error!(error, "error occurred");
|
||||||
}
|
}
|
||||||
Message::Surface(a) => {
|
Message::Surface(a) => {
|
||||||
return cosmic::task::message(cosmic::Action::Cosmic(
|
return cosmic::task::message(cosmic::Action::Surface(a));
|
||||||
cosmic::app::Action::Surface(a),
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -42,7 +42,7 @@ pub enum Message {
|
||||||
SetIncrement(usize),
|
SetIncrement(usize),
|
||||||
SetSignin(bool),
|
SetSignin(bool),
|
||||||
SetMovement(ZoomMovement),
|
SetMovement(ZoomMovement),
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Page {
|
impl Default for Page {
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,7 @@ pub enum Message {
|
||||||
SetScreenFilterSelection(ColorFilter),
|
SetScreenFilterSelection(ColorFilter),
|
||||||
SetScreenInverted(bool),
|
SetScreenInverted(bool),
|
||||||
SetSoundMono(bool),
|
SetSoundMono(bool),
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
SystemTheme(Box<cosmic::cosmic_theme::Theme>),
|
SystemTheme(Box<cosmic::cosmic_theme::Theme>),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ pub enum Category {
|
||||||
pub enum Message {
|
pub enum Message {
|
||||||
SetDefault(Category, usize),
|
SetDefault(Category, usize),
|
||||||
Update(Arc<CachedMimeApps>),
|
Update(Arc<CachedMimeApps>),
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Message> for crate::app::Message {
|
impl From<Message> for crate::app::Message {
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ pub enum Message {
|
||||||
SetXwaylandKeyboardMode(EavesdroppingKeyboardMode),
|
SetXwaylandKeyboardMode(EavesdroppingKeyboardMode),
|
||||||
SetXwaylandMouseButtonMode(bool),
|
SetXwaylandMouseButtonMode(bool),
|
||||||
SetXwaylandPrimaryOutput(usize),
|
SetXwaylandPrimaryOutput(usize),
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Message> for crate::pages::Message {
|
impl From<Message> for crate::pages::Message {
|
||||||
|
|
|
||||||
|
|
@ -431,7 +431,7 @@ pub enum Message {
|
||||||
PanelConfig(Box<CosmicPanelConfig>),
|
PanelConfig(Box<CosmicPanelConfig>),
|
||||||
ResetPanel,
|
ResetPanel,
|
||||||
FullReset,
|
FullReset,
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl PageInner {
|
impl PageInner {
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@ pub enum Message {
|
||||||
Slideshow(bool),
|
Slideshow(bool),
|
||||||
/// State change from cosmic-bg
|
/// State change from cosmic-bg
|
||||||
UpdateState(cosmic_bg_config::state::State),
|
UpdateState(cosmic_bg_config::state::State),
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Message> for crate::app::Message {
|
impl From<Message> for crate::app::Message {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ pub enum Message {
|
||||||
ShowMaximizeButton(bool),
|
ShowMaximizeButton(bool),
|
||||||
ShowMinimizeButton(bool),
|
ShowMinimizeButton(bool),
|
||||||
SetEdgeSnapThreshold(u32),
|
SetEdgeSnapThreshold(u32),
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Page {
|
pub struct Page {
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ pub enum Message {
|
||||||
SetWorkspaceWraparound(bool),
|
SetWorkspaceWraparound(bool),
|
||||||
SetShowName(bool),
|
SetShowName(bool),
|
||||||
SetShowNumber(bool),
|
SetShowNumber(bool),
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
pub struct Page {
|
pub struct Page {
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ pub enum Message {
|
||||||
/// Available outputs from cosmic-randr.
|
/// Available outputs from cosmic-randr.
|
||||||
randr: Arc<Result<List, cosmic_randr_shell::Error>>,
|
randr: Arc<Result<List, cosmic_randr_shell::Error>>,
|
||||||
},
|
},
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Message> for app::Message {
|
impl From<Message> for app::Message {
|
||||||
|
|
|
||||||
|
|
@ -312,7 +312,7 @@ pub enum Message {
|
||||||
SuspendOnBatteryTimeChange(Option<Duration>),
|
SuspendOnBatteryTimeChange(Option<Duration>),
|
||||||
BackendAvailabilityCheck(Option<backend::PowerBackendEnum>),
|
BackendAvailabilityCheck(Option<backend::PowerBackendEnum>),
|
||||||
CurrentPowerProfileUpdate(PowerProfile),
|
CurrentPowerProfileUpdate(PowerProfile),
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Message> for crate::app::Message {
|
impl From<Message> for crate::app::Message {
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ pub enum Message {
|
||||||
SetMute(u32, bool),
|
SetMute(u32, bool),
|
||||||
SetSink(u32, usize),
|
SetSink(u32, usize),
|
||||||
SetVolume(u32, u32),
|
SetVolume(u32, u32),
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
ToggleExpanded(u32),
|
ToggleExpanded(u32),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@ pub enum Message {
|
||||||
/// Set the profile of a sound device.
|
/// Set the profile of a sound device.
|
||||||
SetProfile(u32, u32),
|
SetProfile(u32, u32),
|
||||||
/// Surface Action
|
/// Surface Action
|
||||||
Surface(cosmic::surface::Action),
|
Surface(cosmic::surface::Action<crate::app::Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl From<Message> for crate::pages::Message {
|
impl From<Message> for crate::pages::Message {
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ pub enum Message {
|
||||||
/// Request to change the input volume.
|
/// Request to change the input volume.
|
||||||
SetSourceVolume(u32),
|
SetSourceVolume(u32),
|
||||||
/// Surface Action
|
/// Surface Action
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
/// Toggle the mute status of the output.
|
/// Toggle the mute status of the output.
|
||||||
ToggleSinkMute,
|
ToggleSinkMute,
|
||||||
/// Toggle the mute status of the input output.
|
/// Toggle the mute status of the input output.
|
||||||
|
|
|
||||||
|
|
@ -365,7 +365,7 @@ pub enum Message {
|
||||||
TimezoneContext,
|
TimezoneContext,
|
||||||
TimezoneSearch(String),
|
TimezoneSearch(String),
|
||||||
UpdateTime,
|
UpdateTime,
|
||||||
Surface(surface::Action),
|
Surface(surface::Action<crate::app::Message>),
|
||||||
}
|
}
|
||||||
|
|
||||||
impl page::AutoBind<crate::pages::Message> for Page {}
|
impl page::AutoBind<crate::pages::Message> for Page {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue