Compare commits
12 commits
e65b97abb8
...
1dda5a558e
| Author | SHA1 | Date | |
|---|---|---|---|
| 1dda5a558e | |||
| 11e229fa44 | |||
|
|
84f9dcbe0e | ||
|
|
4a22c9f3dc | ||
| 647a672b25 | |||
| d038b6f89f | |||
| e3d5e4668f | |||
| 0ae782638c | |||
| 7b05b2e768 | |||
| 267fcd80b3 | |||
| 56230f0ade | |||
| 934db82775 |
11 changed files with 1327 additions and 245 deletions
1484
Cargo.lock
generated
1484
Cargo.lock
generated
File diff suppressed because it is too large
Load diff
52
Cargo.toml
52
Cargo.toml
|
|
@ -17,18 +17,19 @@ cosmic-comp-config = { path = "cosmic-comp-config", features = [
|
||||||
"libdisplay-info",
|
"libdisplay-info",
|
||||||
"output",
|
"output",
|
||||||
] }
|
] }
|
||||||
cosmic-config = { git = "https://github.com/pop-os/libcosmic", features = [
|
cosmic-config = { path = "../libcosmic/cosmic-config", features = [
|
||||||
|
"async-std",
|
||||||
"calloop",
|
"calloop",
|
||||||
"macro",
|
"macro",
|
||||||
] }
|
] }
|
||||||
cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols", rev = "160b086", default-features = false, features = [
|
cosmic-protocols = { path = "../cosmic-protocols", default-features = false, features = [
|
||||||
"server",
|
"server",
|
||||||
] }
|
] }
|
||||||
cosmic-settings-config = { git = "https://github.com/pop-os/cosmic-settings-daemon" }
|
cosmic-settings-config = { path = "../cosmic-settings-daemon/config" }
|
||||||
cosmic-settings-daemon-config = { git = "https://github.com/pop-os/cosmic-settings-daemon", features = [
|
cosmic-settings-daemon-config = { path = "../cosmic-settings-daemon/cosmic-settings-daemon-config", features = [
|
||||||
"greeter",
|
"greeter",
|
||||||
] }
|
] }
|
||||||
cosmic-text = { git = "https://github.com/pop-os/cosmic-text.git", features = [
|
cosmic-text = { path = "../cosmic-text", features = [
|
||||||
"shape-run-cache",
|
"shape-run-cache",
|
||||||
] }
|
] }
|
||||||
libdisplay-info = "0.3.0"
|
libdisplay-info = "0.3.0"
|
||||||
|
|
@ -39,10 +40,14 @@ i18n-embed = { version = "0.16", features = [
|
||||||
"desktop-requester",
|
"desktop-requester",
|
||||||
] }
|
] }
|
||||||
i18n-embed-fl = "0.10"
|
i18n-embed-fl = "0.10"
|
||||||
iced_tiny_skia = { git = "https://github.com/pop-os/libcosmic" }
|
iced_tiny_skia = { path = "../libcosmic/iced/tiny_skia" }
|
||||||
indexmap = "2.13"
|
indexmap = "2.13"
|
||||||
keyframe = "1.1.1"
|
keyframe = "1.1.1"
|
||||||
libcosmic = { git = "https://github.com/pop-os/libcosmic", default-features = false }
|
cosmic = { package = "libcosmic-yoda", path = "../libcosmic", default-features = false, features = [
|
||||||
|
"async-std",
|
||||||
|
"wayland",
|
||||||
|
"multi-window",
|
||||||
|
] }
|
||||||
libsystemd = { version = "0.7", optional = true }
|
libsystemd = { version = "0.7", optional = true }
|
||||||
log-panics = { version = "2", features = ["with-backtrace"] }
|
log-panics = { version = "2", features = ["with-backtrace"] }
|
||||||
ordered-float = "5.1"
|
ordered-float = "5.1"
|
||||||
|
|
@ -138,9 +143,36 @@ inherits = "release"
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = "fat"
|
lto = "fat"
|
||||||
|
|
||||||
[patch."https://github.com/pop-os/cosmic-protocols"]
|
[patch.'https://github.com/pop-os/libcosmic']
|
||||||
cosmic-protocols = { git = "https://github.com/pop-os//cosmic-protocols", branch = "main" }
|
cosmic-config = { path = "../libcosmic/cosmic-config" }
|
||||||
cosmic-client-toolkit = { git = "https://github.com/pop-os//cosmic-protocols", branch = "main" }
|
cosmic-theme = { path = "../libcosmic/cosmic-theme" }
|
||||||
|
iced = { path = "../libcosmic/iced" }
|
||||||
|
iced_accessibility = { path = "../libcosmic/iced/accessibility" }
|
||||||
|
iced_core = { path = "../libcosmic/iced/core" }
|
||||||
|
iced_futures = { path = "../libcosmic/iced/futures" }
|
||||||
|
iced_graphics = { path = "../libcosmic/iced/graphics" }
|
||||||
|
iced_renderer = { path = "../libcosmic/iced/renderer" }
|
||||||
|
iced_runtime = { path = "../libcosmic/iced/runtime" }
|
||||||
|
iced_tiny_skia = { path = "../libcosmic/iced/tiny_skia" }
|
||||||
|
iced_wgpu = { path = "../libcosmic/iced/wgpu" }
|
||||||
|
iced_widget = { path = "../libcosmic/iced/widget" }
|
||||||
|
iced_winit = { path = "../libcosmic/iced/winit" }
|
||||||
|
|
||||||
|
[patch.'https://github.com/pop-os/cosmic-protocols']
|
||||||
|
cosmic-protocols = { path = "../cosmic-protocols" }
|
||||||
|
cosmic-client-toolkit = { path = "../cosmic-protocols/client-toolkit" }
|
||||||
|
|
||||||
|
[patch.'https://github.com/pop-os/cosmic-settings-daemon']
|
||||||
|
cosmic-settings-config = { path = "../cosmic-settings-daemon/config" }
|
||||||
|
cosmic-settings-daemon-config = { path = "../cosmic-settings-daemon/cosmic-settings-daemon-config" }
|
||||||
|
|
||||||
|
[patch.'https://github.com/pop-os/cosmic-text.git']
|
||||||
|
cosmic-text = { path = "../cosmic-text" }
|
||||||
|
|
||||||
|
[patch.'https://forge.aditua.com/leyoda/window_clipboard.git']
|
||||||
|
window_clipboard = { path = "../window_clipboard" }
|
||||||
|
dnd = { path = "../window_clipboard/dnd" }
|
||||||
|
mime = { path = "../window_clipboard/mime" }
|
||||||
|
|
||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
smithay = { git = "https://github.com/smithay/smithay.git", rev = "774f2ab" }
|
smithay = { git = "https://github.com/smithay/smithay.git", rev = "774f2ab" }
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ version = "1.0.0"
|
||||||
edition = "2024"
|
edition = "2024"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
cosmic-config = { git = "https://github.com/pop-os/libcosmic/" }
|
cosmic-config = { path = "../../libcosmic/cosmic-config" }
|
||||||
cosmic-randr-shell = { git = "https://github.com/pop-os/cosmic-randr/", optional = true }
|
cosmic-randr-shell = { path = "../../cosmic-randr/shell", optional = true }
|
||||||
input = "0.10.0"
|
input = "0.10.0"
|
||||||
libdisplay-info = { version = "0.3.0", optional = true }
|
libdisplay-info = { version = "0.3.0", optional = true }
|
||||||
serde = { version = "1", features = ["derive"] }
|
serde = { version = "1", features = ["derive"] }
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
a11y-zoom-move-continuously = A nézet folyamatosan követi a mutatót
|
a11y-zoom-move-continuously = A nézet folyamatosan követi a mutatót
|
||||||
a11y-zoom-move-onedge = A nézet csak akkor mozog, ha a mutató a szélen van
|
a11y-zoom-move-onedge = A nézet csak akkor mozog, ha a mutató eléri a szélét
|
||||||
a11y-zoom-move-centered = A nézet úgy mozog, hogy a mutató középen maradjon
|
a11y-zoom-move-centered = A nézet úgy mozog, hogy a mutató középen maradjon
|
||||||
a11y-zoom-settings = Nagyító beállításai…
|
a11y-zoom-settings = Nagyító beállításai…
|
||||||
grow-window = Növelés
|
grow-window = Növelés
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "1.90"
|
channel = "1.93"
|
||||||
components = [ "rust-src" ]
|
components = [ "rust-src" ]
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,14 @@ impl State {
|
||||||
action,
|
action,
|
||||||
Action::Shortcut(shortcuts::Action::Terminate)
|
Action::Shortcut(shortcuts::Action::Terminate)
|
||||||
| Action::Shortcut(shortcuts::Action::Debug)
|
| Action::Shortcut(shortcuts::Action::Debug)
|
||||||
|
| Action::Shortcut(shortcuts::Action::System(
|
||||||
|
shortcuts::action::System::InputSourceSwitch
|
||||||
|
| shortcuts::action::System::BrightnessDown
|
||||||
|
| shortcuts::action::System::BrightnessUp
|
||||||
|
| shortcuts::action::System::VolumeLower
|
||||||
|
| shortcuts::action::System::VolumeRaise
|
||||||
|
| shortcuts::action::System::Mute,
|
||||||
|
))
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
|
||||||
|
|
@ -1354,8 +1354,8 @@ impl Decorations<CosmicStackInternal, Message> for DefaultDecorations {
|
||||||
|
|
||||||
iced_widget::container::Style {
|
iced_widget::container::Style {
|
||||||
snap: true,
|
snap: true,
|
||||||
icon_color: Some(cosmic_theme.background.on.into()),
|
icon_color: Some(cosmic_theme.background(false).on.into()),
|
||||||
text_color: Some(cosmic_theme.background.on.into()),
|
text_color: Some(cosmic_theme.background(false).on.into()),
|
||||||
background: Some(Background::Color(background.into())),
|
background: Some(Background::Color(background.into())),
|
||||||
border: Border {
|
border: Border {
|
||||||
radius,
|
radius,
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ impl From<TabBackgroundTheme> for theme::Container<'_> {
|
||||||
icon_color: Some(Color::from(theme.cosmic().accent_text_color())),
|
icon_color: Some(Color::from(theme.cosmic().accent_text_color())),
|
||||||
text_color: Some(Color::from(theme.cosmic().accent_text_color())),
|
text_color: Some(Color::from(theme.cosmic().accent_text_color())),
|
||||||
background: Some(Background::Color(
|
background: Some(Background::Color(
|
||||||
theme.cosmic().primary.component.selected.into(),
|
theme.cosmic().primary(false).component.selected.into(),
|
||||||
)),
|
)),
|
||||||
border: Border {
|
border: Border {
|
||||||
radius: 0.0.into(),
|
radius: 0.0.into(),
|
||||||
|
|
@ -81,7 +81,7 @@ impl From<TabBackgroundTheme> for theme::Container<'_> {
|
||||||
icon_color: None,
|
icon_color: None,
|
||||||
text_color: None,
|
text_color: None,
|
||||||
background: Some(Background::Color(
|
background: Some(Background::Color(
|
||||||
theme.cosmic().primary.component.base.into(),
|
theme.cosmic().primary(false).component.base.into(),
|
||||||
)),
|
)),
|
||||||
border: Border {
|
border: Border {
|
||||||
radius: 0.0.into(),
|
radius: 0.0.into(),
|
||||||
|
|
|
||||||
|
|
@ -813,7 +813,7 @@ impl Program for CosmicWindowInternal {
|
||||||
|
|
||||||
fn background_color(&self, theme: &cosmic::Theme) -> Color {
|
fn background_color(&self, theme: &cosmic::Theme) -> Color {
|
||||||
if self.window.is_maximized(false) {
|
if self.window.is_maximized(false) {
|
||||||
theme.cosmic().background.base.into()
|
theme.cosmic().background(false).base.into()
|
||||||
} else {
|
} else {
|
||||||
Color::TRANSPARENT
|
Color::TRANSPARENT
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -428,10 +428,11 @@ impl Program for ContextMenu {
|
||||||
.width(mode)
|
.width(mode)
|
||||||
.class(if *disabled {
|
.class(if *disabled {
|
||||||
theme::Text::Custom(|theme| {
|
theme::Text::Custom(|theme| {
|
||||||
let mut color = theme.cosmic().background.component.on;
|
let mut color = theme.cosmic().background(false).component.on;
|
||||||
color.alpha *= 0.5;
|
color.alpha *= 0.5;
|
||||||
TextStyle {
|
TextStyle {
|
||||||
color: Some(color.into()),
|
color: Some(color.into()),
|
||||||
|
..Default::default()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -446,10 +447,11 @@ impl Program for ContextMenu {
|
||||||
.align_x(Horizontal::Right)
|
.align_x(Horizontal::Right)
|
||||||
.width(Length::Shrink)
|
.width(Length::Shrink)
|
||||||
.class(theme::Text::Custom(|theme| {
|
.class(theme::Text::Custom(|theme| {
|
||||||
let mut color = theme.cosmic().background.component.on;
|
let mut color = theme.cosmic().background(false).component.on;
|
||||||
color.alpha *= 0.75;
|
color.alpha *= 0.75;
|
||||||
TextStyle {
|
TextStyle {
|
||||||
color: Some(color.into()),
|
color: Some(color.into()),
|
||||||
|
..Default::default()
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
.into(),
|
.into(),
|
||||||
|
|
@ -474,7 +476,7 @@ impl Program for ContextMenu {
|
||||||
.padding(1)
|
.padding(1)
|
||||||
.class(theme::Container::custom(|theme| {
|
.class(theme::Container::custom(|theme| {
|
||||||
let cosmic = theme.cosmic();
|
let cosmic = theme.cosmic();
|
||||||
let component = &cosmic.background.component;
|
let component = &cosmic.background(false).component;
|
||||||
iced_widget::container::Style {
|
iced_widget::container::Style {
|
||||||
snap: true,
|
snap: true,
|
||||||
icon_color: Some(cosmic.accent.base.into()),
|
icon_color: Some(cosmic.accent.base.into()),
|
||||||
|
|
|
||||||
|
|
@ -512,7 +512,7 @@ impl Program for ZoomProgram {
|
||||||
.padding(8)
|
.padding(8)
|
||||||
.class(theme::Container::custom(|theme| {
|
.class(theme::Container::custom(|theme| {
|
||||||
let cosmic = theme.cosmic();
|
let cosmic = theme.cosmic();
|
||||||
let component = &cosmic.background.component;
|
let component = &cosmic.background(false).component;
|
||||||
iced_widget::container::Style {
|
iced_widget::container::Style {
|
||||||
snap: true,
|
snap: true,
|
||||||
icon_color: Some(component.on.into()),
|
icon_color: Some(component.on.into()),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue