Skip to content

Commit 91c2d89

Browse files
authored
Merge branch 'master' into numpad-settings
2 parents e185660 + b2101e4 commit 91c2d89

File tree

110 files changed

+7398
-3062
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+7398
-3062
lines changed

Cargo.lock

+724-652
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+13-6
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ rust-version = "1.80.0"
88

99
[workspace.dependencies]
1010
cosmic-randr = { git = "https://github.com/pop-os/cosmic-randr" }
11-
tokio = { version = "1.40.0", features = ["macros"] }
11+
tokio = { version = "1.43.0", features = ["macros"] }
1212

1313
[workspace.dependencies.libcosmic]
1414
features = ["multi-window", "winit", "tokio"]
@@ -42,26 +42,33 @@ inherits = "release"
4242
debug = true
4343

4444
[profile.release]
45+
opt-level = "s"
4546
lto = "thin"
4647

4748
# [patch.'https://github.com/smithay/client-toolkit/']
4849
# smithay-client-toolkit = { git = "https://github.com/smithay/client-toolkit//", rev = "c583de8" }
4950

5051
[patch.'https://github.com/pop-os/cosmic-protocols']
51-
cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols//", rev = "d218c76" }
52-
cosmic-client-toolkit = { git = "https://github.com/pop-os/cosmic-protocols//", rev = "d218c76" }
52+
cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols//", rev = "ed2a481" }
53+
cosmic-client-toolkit = { git = "https://github.com/pop-os/cosmic-protocols//", rev = "ed2a481" }
54+
55+
# [patch.'https://github.com/pop-os/cosmic-settings-daemon']
56+
# cosmic-settings-config = { git = "https://github.com/pop-os/cosmic-settings-daemon//", branch = "input_nobuild" }
5357

5458
# For development and testing purposes
5559
# [patch.'https://github.com/pop-os/libcosmic']
56-
# libcosmic = { git = "https://github.com/pop-os/libcosmic//", branch = "fontconfig" }
57-
# cosmic-config = { git = "https://github.com/pop-os/libcosmic//", branch = "fontconfig" }
58-
# cosmic-theme = { git = "https://github.com/pop-os/libcosmic//", branch = "fontconfig" }
60+
# libcosmic = { git = "https://github.com/pop-os/libcosmic//", branch = "font" }
61+
# cosmic-config = { git = "https://github.com/pop-os/libcosmic//", branch = "font" }
62+
# cosmic-theme = { git = "https://github.com/pop-os/libcosmic//", branch = "font" }
63+
# iced_futures = { git = "https://github.com/pop-os/libcosmic//", branch = "font" }
64+
5965
# libcosmic = { path = "../libcosmic" }
6066
# cosmic-config = { path = "../libcosmic/cosmic-config" }
6167
# cosmic-theme = { path = "../libcosmic/cosmic-theme" }
6268

6369
# [patch.'https://github.com/pop-os/dbus-settings-bindings']
6470
# cosmic-dbus-networkmanager = { path = "../dbus-settings-bindings/networkmanager" }
6571
# upower_dbus = { path = "../dbus-settings-bindings/upower" }
72+
6673
[patch."https://github.com/smithay/client-toolkit.git"]
6774
sctk = { package = "smithay-client-toolkit", version = "=0.19.2" }

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The settings application for the [COSMIC desktop environment][cosmic-epoch].
66

77
Translation files may be found in the [i18n directory](./i18n). New translations may copy the [English (en) localization](./i18n/en) of the project and rename `en` to the desired [ISO 639-1 language code][iso-codes]. Translations may be submitted through GitHub as an issue or pull request. Submissions by email or other means are also acceptable; with the preferred name and email to associate with the changes.
88

9+
## Distributors
10+
11+
The accent palettes on the Appearance settings page are configurable through the cosmic-config directory at `/usr/share/cosmic/com.system76.CosmicSettings/v1/`. One at `accent_palette_dark`, and another at `accent_palette_light`. Examples can be found at [resources/accent_palette_dark.ron](./resources/accent_palette_dark.ron) and [resources/accent_palette_light.ron](./resources/accent_palette_light.ron). This can be copied locally to `~/.config/cosmic/com.system76.CosmicSettings/v1/` for testing, and then move to `/usr/share/cosmic` for packaging.
12+
913
## Build
1014

1115
### Dependencies

cosmic-settings/Cargo.toml

+43-22
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,16 @@ ashpd = { version = "0.9", default-features = false, features = [
1212
"tokio",
1313
], optional = true }
1414
async-channel = "2.3.1"
15-
chrono = "0.4.38"
16-
clap = { version = "4.5.17", features = ["derive"] }
15+
chrono = "0.4.39"
16+
clap = { version = "4.5.29", features = ["derive"] }
1717
color-eyre = "0.6.3"
1818
cosmic-bg-config.workspace = true
1919
cosmic-comp-config = { workspace = true, optional = true }
2020
cosmic-config.workspace = true
2121
cosmic-dbus-networkmanager = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
2222
cosmic-idle-config.workspace = true
2323
cosmic-panel-config = { workspace = true, optional = true }
24+
cosmic-protocols = { git = "https://github.com/pop-os/cosmic-protocols", optional = true }
2425
cosmic-randr-shell.workspace = true
2526
cosmic-randr = { workspace = true, optional = true }
2627
cosmic-settings-config = { git = "https://github.com/pop-os/cosmic-settings-daemon", optional = true }
@@ -32,25 +33,32 @@ derive_setters = "0.1.6"
3233
dirs = "5.0.1"
3334
downcast-rs = "1.2.1"
3435
eyre = "0.6.12"
35-
freedesktop-desktop-entry = "0.7.5"
36-
futures = "0.3.30"
36+
freedesktop-desktop-entry = "0.7.8"
37+
futures = "0.3.31"
3738
hostname-validator = "1.1.1"
3839
hostname1-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
39-
i18n-embed-fl = "0.9.1"
40-
image = "0.25"
41-
indexmap = "2.5.0"
40+
i18n-embed-fl = "0.9.3"
41+
image = { version = "0.25", default-features = false, features = [
42+
"jpeg",
43+
"png",
44+
"rayon",
45+
"webp",
46+
"hdr",
47+
] }
48+
indexmap = "2.7.1"
4249
itertools = "0.13.0"
43-
itoa = "1.0.11"
50+
itoa = "1.0.14"
4451
libcosmic.workspace = true
4552
locale1 = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
4653
mime-apps = { package = "cosmic-mime-apps", git = "https://github.com/pop-os/cosmic-mime-apps", optional = true }
4754
notify = "6.1.1"
48-
once_cell = "1.19.0"
49-
regex = "1.10.6"
55+
once_cell = "1.20.3"
56+
regex = "1.11.1"
5057
ron = "0.8"
5158
rust-embed = "8.5.0"
59+
sctk = { workspace = true, optional = true }
5260
secure-string = "0.3.0"
53-
serde = { version = "1.0.210", features = ["derive"] }
61+
serde = { version = "1.0.217", features = ["derive"] }
5462
slab = "0.4.9"
5563
slotmap = "1.0.7"
5664
static_init = "1.0.3"
@@ -59,32 +67,37 @@ tachyonix = "0.3.1"
5967
timedate-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
6068
tokio = { workspace = true, features = ["fs", "io-util", "sync"] }
6169
tracing = "0.1.41"
62-
tracing-subscriber = "0.3.18"
63-
udev = { version = "0.9.0", optional = true }
70+
tracing-subscriber = "0.3.19"
71+
udev = { version = "0.9.3", optional = true }
6472
upower_dbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
6573
bluez-zbus = { git = "https://github.com/pop-os/dbus-settings-bindings", optional = true }
66-
url = "2.5.2"
74+
url = "2.5.4"
6775
xkb-data = "0.2.1"
68-
zbus = { version = "4.4.0", features = ["tokio"], optional = true }
76+
zbus = { version = "4.4.0", default-features = false, features = [
77+
"tokio",
78+
], optional = true }
6979
zbus_polkit = { version = "4.0.0" }
70-
ustr = "1.0.0"
7180
fontdb = "0.16.2"
7281
fixed_decimal = "0.5.6"
7382
mime = "0.3.17"
74-
rustix = "0.38.41"
83+
rustix = "0.38.44"
84+
gettext-rs = { version = "0.7.2", features = [
85+
"gettext-system",
86+
], optional = true }
87+
async-fn-stream = "0.2.2"
7588

7689
[dependencies.cosmic-settings-subscriptions]
7790
git = "https://github.com/pop-os/cosmic-settings-subscriptions"
7891
#TODO: only select features as needed
79-
features = ["network_manager", "pipewire", "pulse"]
92+
features = ["network_manager", "pipewire", "pulse", "bluetooth"]
8093
optional = true
8194

8295
[dependencies.icu]
8396
version = "1.5.0"
8497
features = ["experimental", "compiled_data", "icu_datetime_experimental"]
8598

8699
[dependencies.i18n-embed]
87-
version = "0.15.0"
100+
version = "0.15.3"
88101
features = ["fluent-system", "desktop-requester"]
89102

90103
# Contains region-handling logic for Linux
@@ -95,9 +108,11 @@ optional = true
95108

96109
[features]
97110
default = ["a11y", "dbus-config", "linux", "single-instance", "wgpu"]
111+
gettext = ["dep:gettext-rs"]
98112

99113
# Default features for Linux
100114
linux = [
115+
"page-accessibility",
101116
"page-about",
102117
"page-bluetooth",
103118
"page-date",
@@ -115,17 +130,23 @@ linux = [
115130
]
116131

117132
# Pages
133+
page-accessibility = ["dep:cosmic-protocols", "dep:sctk"]
118134
page-about = ["dep:cosmic-settings-system", "dep:hostname1-zbus", "dep:zbus"]
119-
page-bluetooth = ["dep:bluez-zbus", "dep:zbus"]
135+
page-bluetooth = [
136+
"dep:bluez-zbus",
137+
"dep:zbus",
138+
"dep:cosmic-settings-subscriptions",
139+
]
120140
page-date = ["dep:timedate-zbus", "dep:zbus"]
121141
page-default-apps = ["dep:mime-apps"]
122142
page-input = [
143+
"gettext",
123144
"dep:cosmic-comp-config",
124145
"dep:cosmic-settings-config",
125146
"dep:udev",
126147
]
127148
page-networking = [
128-
"ashpd",
149+
"xdg-portal",
129150
"dep:cosmic-dbus-networkmanager",
130151
"dep:cosmic-settings-subscriptions",
131152
"dep:zbus",
@@ -145,4 +166,4 @@ single-instance = ["libcosmic/single-instance"]
145166
test = []
146167
wayland = ["libcosmic/wayland", "dep:cosmic-panel-config", "dep:cosmic-randr"]
147168
wgpu = ["libcosmic/wgpu"]
148-
xdg-portal = ["libcosmic/xdg-portal"]
169+
xdg-portal = ["ashpd", "libcosmic/xdg-portal"]

0 commit comments

Comments
 (0)