Commit graph

1667 commits

Author SHA1 Message Date
Frieder Hannenheim
21c5a4f34a
feat(dnd_destination): xdg file transfer portal support
Requires the `xdg-portal` feature to be enabled to use these features.

- Adds `DndDestination::on_file_transfer` method to handle `application/vnd.portal.filetransfer` drop requests
- Adds `command::file_transfer_receive` function to handle the file transfer request messages
- Adds `command::file_transfer_send` to initiate a file transfer from the application
2026-02-16 16:41:35 +01:00
Jeremy Soller
ae1f15f37e Add pull request template 2026-02-13 12:36:03 -07:00
Michael Aaron Murphy
031818c6b0
fix(font): explicitly drop read guard in on font family lookup 2026-02-13 18:30:14 +01:00
Michael Aaron Murphy
ae830ca21d
perf(font): use RwLock when getting fonts instead of Mutex 2026-02-12 15:52:40 +01:00
Michael Aaron Murphy
a3cf875793
fix(single-instance): unminimize main window on dbus activate 2026-02-09 22:04:13 +01:00
Hosted Weblate
30a02ec0bb i18n: translation updates from weblate
Co-authored-by: Aliaksandr Truš <evils.mail@gmail.com>
Co-authored-by: Drugi Sapog <dindrugi@users.noreply.hosted.weblate.org>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Quentin PAGÈS <quentinantonin@free.fr>
Co-authored-by: jickson john <jickson.john@gmail.com>
Co-authored-by: jonnysemon <jonnysemon@users.noreply.hosted.weblate.org>
Co-authored-by: Димко <Term0@ukr.net>
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/ar/
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/be/
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/uk/
Translation: Pop OS/libcosmic
2026-02-09 15:24:37 +01:00
Hosted Weblate
3e78eb2381 i18n: translation updates from weblate
Co-authored-by: Hafidz Nasruddin <hafidz@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Languages add-on <noreply-addon-languages@weblate.org>
Co-authored-by: Zahid Rizky Fakhri <zahidrizkyfakhri@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/id/
Translation: Pop OS/libcosmic
2026-01-30 19:10:49 -07:00
Ashley Wulber
fdcba7d8ec fix(segmented_button): dnd hover 2026-01-29 00:07:00 +01:00
Vukašin Vojinović
cf19ac665f chore: update dependencies 2026-01-27 18:07:35 -07:00
Vukašin Vojinović
b71a7c9edf improv: remove double coloring of content_container windows
This sets the main content and the header bar to transparent when `content_container` is true, so that things aren't colored twice and overlayed on top of each other.
This ensures that modifying color alpha behaves as expected, especially for frosted glass.
2026-01-27 18:07:35 -07:00
Ashley Wulber
9fcd449611 fix(segmented_button): hover state handling
when hover state changes, paragraphs also need to be updated. I'll make a not to check this again after the rebase though.
2026-01-27 14:10:04 -05:00
Hosted Weblate
f1c43f79ab i18n: translation updates from weblate
Co-authored-by: Aman Alam <aalam@users.noreply.hosted.weblate.org>
Co-authored-by: Baurzhan Muftakhidinov <baurthefirst@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Jun Hwi Ku <siguning@gmail.com>
Co-authored-by: Walter William Beckerleg Bruckman <spayk.99@protonmail.com>
Co-authored-by: gift983 <983649@my.leicestercollege.ac.uk>
Co-authored-by: summoner001 <summoner@disroot.org>
Co-authored-by: 김유빈 <k.sein1016@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/hu/
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/kk/
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/ko/
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/zh_Hans/
Translation: Pop OS/libcosmic
2026-01-27 10:33:22 -07:00
Ashley Wulber
927035809f refactor(segmented button): only clear tab drag after source event cancel or finish 2026-01-24 00:53:30 +01:00
Ashley Wulber
beddbf1770 improv(segmented_button): dnd state handling 2026-01-22 10:26:58 -05:00
Ashley Wulber
d71c42102d fix(segmented button): tab dnd 2026-01-22 02:11:08 +01:00
vacenty
689f25be53
feat(spin_button): when value is min/maxed, disable decrease/increase button 2026-01-21 14:08:25 +01:00
Hosted Weblate
097c76f0e5 i18n: translation updates from weblate
Co-authored-by: Baurzhan Muftakhidinov <baurthefirst@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
2026-01-16 10:12:11 -07:00
Jonatan Pettersson
3e6c9a6add feat: add optional placeholder text to dropdown 2026-01-16 08:50:58 -07:00
Michael Aaron Murphy
85709b5c29
fix(iced): fix for crash in cosmic-launcher 2026-01-15 15:23:51 +01:00
Michael Aaron Murphy
03c440b97a
chore(cargo): update all crate dependencies 2026-01-14 18:46:53 +01:00
Michael Aaron Murphy
b0cbb54bf2
chore(widget): remove unused RcWrapper method 2026-01-13 17:01:57 +01:00
Michael Aaron Murphy
f000433690
fix(spin_button): compiler error on build without a11y 2026-01-13 17:01:27 +01:00
Mateusz Mikuła
f453db2425 chore: update iced submodule
This pulls in the fix made in https://github.com/pop-os/iced/pull/253.
2026-01-12 21:17:52 +01:00
Michael Aaron Murphy
b9c24d2421 feat(a11y): screen reader name and description support for button widgets 2026-01-09 23:35:28 +01:00
Hosted Weblate
f6039597b7 i18n: translation updates from weblate
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Walter William Beckerleg Bruckman <spayk.99@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/zh_Hans/
Translation: Pop OS/libcosmic
2026-01-06 17:17:11 +01:00
Michael Aaron Murphy
421552dea1
fix!(desktop): IconSourceExt::as_cosmic_icon should return Handle with SVG preference 2026-01-06 02:25:46 +01:00
Michael Aaron Murphy
e9bb5ed97d
chore: update freedesktop-desktop-entry 2026-01-06 02:25:11 +01:00
Michael Murphy
a9f64c33ce i18n: removing translation for Frankish 2025-12-30 08:45:53 -07:00
Hosted Weblate
6f92465fcb i18n: translation updates from weblate
Co-authored-by: Amadɣas <massiin@proton.me>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Walter William Beckerleg Bruckman <spayk.99@protonmail.com>
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/pt_BR/
Translation: Pop OS/libcosmic
2025-12-30 08:45:53 -07:00
Ashley Wulber
dd3610b8ae fix(dnd_destination): layout for dnd rectangle children 2025-12-19 16:05:40 -05:00
Michael Aaron Murphy
fa26e0e241
docs: add link to cosmic-applet-template 2025-12-17 03:25:00 +01:00
Hosted Weblate
e4978693b9 i18n: translation updates from weblate
Co-authored-by: Aindriú Mac Giolla Eoin <aindriu80@gmail.com>
Co-authored-by: Ekramul Reza <ekramulreza@users.noreply.hosted.weblate.org>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Temuri Doghonadze <temuri.doghonadze@gmail.com>
Co-authored-by: Vilius Paliokas <viliuspaliokas@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/ga/
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/lt/
Translation: Pop OS/libcosmic
2025-12-16 16:56:04 +01:00
Bryan Hyland
aabc8dcda5
build(windows): change icon path separator for native windows builds 2025-12-09 20:01:57 +01:00
Hosted Weblate
3b8ad45950 i18n: translation updates from weblate
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: jonnysemon <jonnysemon@users.noreply.hosted.weblate.org>
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/ar/
Translation: Pop OS/libcosmic
2025-12-09 16:13:34 +01:00
Ian Douglas Scott
2f0b333491 Add helper for accumulating scroll into discrete delta
This converts `ScrollDelta::Pixels` and `ScrollDelta::Lines` into
integer values, accumulating partial scrolls until a full integer is
reached.

It also has a configurable rate-limit, so discrete integer events can
occur at a certain maximum frequency. This may need tuning for different
use cases, though I haven't tried using it for things other than
changing workspaces so far.
2025-12-06 20:00:59 -08:00
Michael Aaron Murphy
05c6608842
examples: fix libcosmic features, warnings, etc. 2025-12-05 17:59:42 +01:00
Michael Aaron Murphy
f39ad728c9
examples(calendar): update and fix compile 2025-12-05 17:29:11 +01:00
Michael Aaron Murphy
cdf4eafc9e
fix(segmented_button): set icon to symbolic 2025-12-05 17:18:26 +01:00
Michael Aaron Murphy
6793950bbc
fix(icon): from_svg_bytes should not default to symbolic 2025-12-05 17:16:35 +01:00
Michael Aaron Murphy
2ffd1f32f4
examples(application): update and fix compile 2025-12-05 17:05:57 +01:00
Hosted Weblate
8a9cd0da32 i18n: translation updates from weblate
Co-authored-by: CYAXXX <cyaxxx@users.noreply.hosted.weblate.org>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
2025-12-05 08:59:03 -07:00
Michael Aaron Murphy
e13ab24151
revert: "fix(popover): match popup styling to designs"
Some application popovers required the previous behavior

This reverts commit 882481e518.
2025-12-05 16:46:23 +01:00
Michael Aaron Murphy
866da0f94b
revert: "fix(popover): set default position to Bottom"
Causes popups to be misplaced in applications that required the previous
behavior.

This reverts commit 18182e5f97.
2025-12-05 16:44:39 +01:00
Michael Aaron Murphy
45fd683bc9
examples(about): update and fix compile 2025-12-05 16:42:29 +01:00
Frederic Laing
c2b7d7847a feat: add Flatpak sandbox support for config paths
Implement get_config_dir() and get_state_dir() helper functions that detect
Flatpak sandboxing via FLATPAK_ID and use HOST_XDG_CONFIG_HOME/HOST_XDG_STATE_HOME
environment variables or fallback to HOME-based paths.

This allows libcosmic apps running in Flatpak sandboxes to properly read
system-wide COSMIC configuration (themes, corner radii, etc.) from the host.
2025-12-04 11:30:03 -07:00
Kyle Scheuing
54934a961f fix: cross compiling for windows from linux
#[cfg(not(unix))] applies to the host machine (since that's where the
build script is running) rather than the compilation target. Instead,
environment variables are available to provide the information relevant
to the build target at the build script's runtime.
2025-12-04 11:28:39 -07:00
Kyle Scheuing
80875d5962
fix: compiling on windows requires cosmic-icons in project root
* fix: compiling on windows requires cosmic-icons in project root

crabtime provides crabtime::WORKSPACE_PATH to refer to the
CARGO_MANIFEST_DIR of the top level crate being built, which means when
building libcosmic directly, crabtime::WORKSPACE_PATH will work, but
when building it as a dependency of another crate,
crabtime::WORKSPACE_PATH will no longer refer to the path to libcosmic.

I don't think there's a good workaround, since when in the context of
crabtime, CARGO_MANIFEST_DIR refers to the path to the crate generated
by crabtime rather than to libcosmic.

This replaces crabtime with a simple build.rs script that generates a
file in OUT_DIR.

* fix: do not generate icon bundle for unix targets

---------

Co-authored-by: Michael Aaron Murphy <michael@mmurphy.dev>
2025-12-04 17:31:47 +01:00
Vukašin Vojinović
18182e5f97 fix(popover): set default position to Bottom
I didn't see this part in my previous PR (sorry!).
2025-12-02 18:03:05 +01:00
Vukašin Vojinović
14cbebbadc chore: update iced 2025-12-02 17:43:20 +01:00
Vukašin Vojinović
882481e518 fix(popover): match popup styling to designs 2025-12-02 16:37:20 +01:00