Commit graph

2070 commits

Author SHA1 Message Date
16b4c5372b fix: complete le merge 1.9.0 — roxmltree (detection SVG amont) et is_selecting
checkout --ours sur Cargo.toml avait aussi ecarte l'ajout amont hors zone
de conflit ; is_selecting, prefixe _ par le fork, est de nouveau lu en 1.9.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 20:46:47 +02:00
83dfea34fd i18n: ca et oc — contenu amont dans libcosmic_yoda.ftl, retrait des doublons au nom amont
Le fork renomme libcosmic.ftl en libcosmic_yoda.ftl ; pour ca et oc le
fichier renomme etait vide alors que le contenu amont vivait sous l'ancien
nom, ignore par le chargement i18n du fork.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-09-24 20:46:03 +02:00
97f42e565a merge: upstream/libcosmic a l'etat pinne par epoch-1.9.0 (08a09e3df)
# Conflicts:
#	Cargo.toml
#	i18n/th/libcosmic.ftl
#	iced
#	src/surface/action.rs
#	src/surface/mod.rs
2026-09-24 20:45:53 +02:00
Hojjat
08a09e3dfa chore(iced): fix arrow keys in text editor on a layer_surface 2026-09-22 16:12:20 -04:00
Hojjat
3d3e4391f1 fix: make the keyboard bindings consistent in context menu 2026-09-22 16:12:20 -04:00
Hojjat
f0eed6e0c3 fix: close inner most menu on esc 2026-09-22 16:12:20 -04:00
Jeremy Soller
03c8f93b29
Live context menu (#1447)
Depends on:
- [x] https://github.com/pop-os/iced/pull/400

We refresh the open popup's items.
If the number and shape of the items don't change (just the labels
change) then we reuse the menu, otherwise we create a new one, so if you
right click on a file and some other process deletes the file, the menu
blinks and refreshes with different items. But if you press shift the
menu updates in place.

Also I noticed another bug that was there before, if you select both
files and directories in cosmic-files and right click, the menu that
opens is visually corrupted. It's because the "open" and "open with" are
removed, so the first item is a divider. I added a commit that removes
leading dividers (we were removing trailing dividers before).


___

- [x] I have disclosed use of any AI generated code in my commit
messages.
- If you are using an LLM, and do not fully understand the changes it is
making to the code base, do not create a PR.
- In our experience, AI generated code often results in overly complex
code that lacks enough context for a proper fix or feature inclusion.
This results in considerably longer code reviews. Due to this, AI
authored or partially authored PRs may be closed without comment.
- [x] I understand these changes in full and will be able to respond to
review comments.
- [x] My change is accurately described in the commit message.
- [x] My contribution is tested and working as described.
- [x] I have read the [Developer Certificate of
Origin](https://developercertificate.org/) and certify my contribution
under its conditions.
2026-09-21 17:52:00 -06:00
Hojjat
52b3f0728f chore(iced): shared modifier state 2026-09-21 17:45:18 -06:00
Hojjat
8c0e57835b fix: don't allow for leading dividers in the menu 2026-09-21 15:50:56 -06:00
Hojjat
34caca1387 fix(context_menu): refresh an open popup's items from the latest view 2026-09-21 15:50:56 -06:00
Vukašin Vojinović
eaa7a5a24c chore: update iced
Adapts to scrollable changes
2026-09-21 12:26:14 -04:00
Ashley Wulber
87ab8179e1 chain tasks where not already done 2026-09-15 22:48:20 -04:00
Ashley Wulber
3664828bf8 chore: session lock action 2026-09-15 22:48:20 -04:00
Hojjat
8cb86195ec chore: do not report unfocused if focus moved to one's own popup 2026-09-15 20:32:32 -04:00
Michael Murphy
2f99abe16f
i18n: translation update from Hosted Weblate (#1408)
Translations update from [Hosted Weblate](https://hosted.weblate.org)
for [Pop
OS/libcosmic](https://hosted.weblate.org/projects/pop-os/libcosmic/).



Current translation status:

![Weblate translation
status](https://hosted.weblate.org/widget/pop-os/libcosmic/matrix-auto.svg)
2026-09-15 21:56:13 +02:00
Vukašin Vojinović
d921602cde feat(progress_bar): custom style 2026-09-15 18:07:45 +02:00
Frederic Laing
d9431dc367 chore: resolve cargo fmt and clippy findings 2026-09-15 15:06:20 +02:00
Michael Aaron Murphy
d77e99fb15
fix(cosmic-config): in Config::get_entry, do not push to errors vec if config is NotFound 2026-09-15 14:44:02 +02:00
Michael Aaron Murphy
a29ab33d66
fix(cosmic-config): handle io::ErrorKind::NotFound as Error::NotFound
Fixes excess logs and inability to fallback to system default of config
2026-09-15 14:02:05 +02:00
jgrasso
23f5d63fed chore: update cosmic-protocols 2026-09-14 21:46:48 +02:00
Hojjat
e793c4552b Revert "fix: don't pass keyboard events to content if popover modal is open"
This reverts commit 9cc82abd9c.
2026-09-14 20:29:45 +02:00
Ian Douglas Scott
7e82198ab1 chore: update iced
Adds support for `cosmic-session-lock-layer-v1` protocol:
https://github.com/pop-os/iced/pull/388
2026-09-11 12:14:32 -07:00
Hojjat
53314201b0 fix(theme): draw selected label text in the on-accent color 2026-09-11 19:40:32 +02:00
Hojjat
56a210bb4e feat(text_context_menu): always show items, but disable them 2026-09-11 18:51:57 +02:00
Hojjat
a401af8b1c fix(wayland): deliver popup Done to the parent window's widgets too 2026-09-10 21:16:06 +02:00
Hojjat
ff7c753302 fix(text_input): draw selected text in the theme's selected_text_color 2026-09-10 21:02:41 +02:00
Hojjat
eec2f7619d Revert "fix(text_input): font color in selected mode (#1409)"
This reverts commit 7cc116803b.
2026-09-10 21:02:41 +02:00
04848eacce merge: upstream/libcosmic a l'etat pinne par epoch-1.8.0 (d4d71fd53)
# Conflicts:
#	iced
#	src/widget/toaster/widget.rs
2026-09-10 18:09:10 +02:00
Alex Klepov
7cc116803b
fix(text_input): font color in selected mode (#1409) 2026-09-10 17:33:57 +02:00
Hojjat
521f3c2baf fix(context_menu): pass through the content's overlays, cursor and drop targets 2026-09-10 17:32:27 +02:00
Hojjat
9f634b0ec2 fix(menu): give each popup instance its own id 2026-09-10 17:32:27 +02:00
Hojjat
6081a48cd3 fix(app): count a popup closed once now that Done also reaches its parent 2026-09-10 17:32:27 +02:00
Hojjat
a8fe59f388 refactor(surface): type surface actions on the message they carry 2026-09-10 17:32:27 +02:00
Hojjat
376f1b8850 fix(segmented_button): read the live menu state when drawing the context item 2026-09-10 17:32:27 +02:00
Hojjat
fd20f09729 feat(context_menu): report open/close and reset on compositor dismissal 2026-09-10 17:32:27 +02:00
Hojjat
aac833d37d feat(menu): add Item::Entry with a reservable icon slot 2026-09-10 17:32:27 +02:00
Hojjat
2fb052d134 feat(context_menu): add item_width setter 2026-09-10 17:32:27 +02:00
Hojjat
645ca8b906 fix(context_menu): place the context_menu in the correct place in X11 2026-09-10 17:32:27 +02:00
Hojjat
37c392a470 fix(context_menu): don't panic when no menu is set 2026-09-10 17:32:27 +02:00
Hosted Weblate
8aac70d894
i18n: translation updates from weblate
Co-authored-by: Blauen <butterflee555@gmail.com>
Co-authored-by: Hosted Weblate <hosted@weblate.org>
Co-authored-by: Kurt Harren Catindig <kurtharrencatindig03@gmail.com>
Translate-URL: https://hosted.weblate.org/projects/pop-os/libcosmic/th/
Translation: Pop OS/libcosmic
2026-09-09 17:51:37 +02:00
Frederic Laing
0304f1d92e fix: detect SVG icons by content 2026-09-07 15:27:32 +02:00
Hojjat
d4d71fd53e improv: better downsampler for small target images 2026-09-04 21:55:43 +02:00
Ashley Wulber
b728852754 chore: update iced
popup creation/cleanup fixes
2026-09-03 19:45:45 +02:00
Hojjat
6347ba2390 fix: keep content's overlays visible while showing toaster 2026-09-03 00:27:13 +02:00
Hojjat
9cc82abd9c fix: don't pass keyboard events to content if popover modal is open 2026-09-02 13:04:46 +02:00
Michael Aaron Murphy
c3ced76094
feat: update cosmic-icons 2026-08-31 23:58:52 +02:00
Hojjat Abdollahi
c003a58fff
feat(iced): hide-cursor and multi-popup features 2026-08-29 02:29:36 +02:00
173d6ebd32 Merge remote-tracking branch 'upstream/master'
# Conflicts:
#	iced
2026-08-27 07:49:01 +02:00
Eric Le Bihan
caec74c255 fix(menu example): fix key binds not being dispatched
The menu example advertised key binds (Ctrl+W / Ctrl+Shift+N) that were
never dispatched.

So add a subscription to take them into account.
2026-08-25 21:17:21 +02:00
Eric Le Bihan
3b62210d27 fix(menu): request redraw when menu bar opens
When using a menu bar without Wayland popup support, the menu items are
unclickable, as redrawing is never requested.

So, request a redraw after opening so the overlay menu is created and
drawn immediately.
2026-08-25 21:17:21 +02:00