Commit graph

518 commits

Author SHA1 Message Date
6736a596ac yoda: soft-fork pivot — keep Cargo name "libcosmic" for dep unification
The initial hard rename (255cf7cc) broke because Cargo's [patch] with
`package = libcosmic-yoda` does NOT unify across the transitive graph.
cosmic-files (still upstream) asks for "libcosmic"; patched with a
renamed package it ends up as a separate crate, leading to two copies
of cosmic::Theme/Action with incompatible types.

Soft fork keeps the yoda identity where it counts and stays compatible:
- Cargo name  : libcosmic (for patch/unification)
- Version     : 1.0.0 (same major as upstream so [patch] semver-accepts it)
- Lib name    : cosmic (unchanged)
- Repo        : leyoda/libcosmic-yoda on Forgejo (yoda lineage)
- Branch      : main (vs upstream master)

Revert parts:
- examples/*/Cargo.toml dep refs back to libcosmic
- i18n/*/libcosmic_yoda.ftl renamed back to libcosmic.ftl

Added:
- Compat stub features: winit = [], x11 = [] — empty so Cargo can satisfy
  upstream deps asking for these, but no code is actually gated on them
  any more (all removed in Phase 2).

Ungates done to make the Wayland path self-sufficient after winit removal:
- src/lib.rs: pub mod app + pub use Application/ApplicationExt no longer
  gated on winit; prelude exports ApplicationExt unconditionally
- src/surface/action.rs: 6 functions had #[cfg(all(wayland, linux, winit))]
  triple-gates; simplified to #[cfg(all(wayland, linux))] since winit is
  no longer a meaningful gate (wayland is now the only shell)
- 12 standalone #[cfg(feature = "winit")] annotations removed from src/
  (their gated code is now always compiled)

cargo check --lib + cargo check in cosmic-yoterm both pass with a single
libcosmic v1.0.0 in the tree.
2026-04-23 15:05:31 +02:00
255cf7cc0b rename: libcosmic → libcosmic-yoda (fork 0.1.0-yoda)
Fork point: pop-os/libcosmic 1.0.0 + perf/quickwins-bundle + macOS
window controls feature. From here the crate diverges under the yoda
lineage with its own versioning.

Changes:
- Cargo.toml: name = libcosmic-yoda, version = 0.1.0-yoda
- [lib] name = cosmic kept unchanged — consumer code still does 'use cosmic::...'
- examples/*/Cargo.toml: updated all libcosmic dep references to libcosmic-yoda
- i18n/*/libcosmic.ftl renamed to libcosmic_yoda.ftl (71 locales) to match
  the new name expected by fluent_language_loader!() macro

cargo check --lib passes. Examples not yet validated — Phase 2 (Wayland-only
cut) will rework them anyway.
2026-04-23 07:35:22 +02:00
Vukašin Vojinović
95756b1a57 improv(circular): prevent caps from touching
Some checks failed
Continuous Integration / format (push) Has been cancelled
Continuous Integration / tests (--no-default-features --features "") (push) Has been cancelled
Continuous Integration / tests (--no-default-features --features "applet") (push) Has been cancelled
Continuous Integration / tests (--no-default-features --features "desktop,smol") (push) Has been cancelled
Continuous Integration / tests (--no-default-features --features "desktop,tokio") (push) Has been cancelled
Continuous Integration / tests (--no-default-features --features "wayland") (push) Has been cancelled
Pages / pages (push) Has been cancelled
Continuous Integration / tests (--no-default-features --features "winit") (push) Has been cancelled
Continuous Integration / tests (--no-default-features --features "winit_debug") (push) Has been cancelled
Continuous Integration / tests (--no-default-features --features "winit_tokio") (push) Has been cancelled
Continuous Integration / tests (--no-default-features --features "winit_wgpu") (push) Has been cancelled
Continuous Integration / tests (-p cosmic-theme) (push) Has been cancelled
Continuous Integration / examples (application) (push) Has been cancelled
Continuous Integration / examples (context-menu) (push) Has been cancelled
Continuous Integration / examples (nav-context) (push) Has been cancelled
Continuous Integration / examples (open-dialog) (push) Has been cancelled
2026-04-18 16:08:34 -04:00
Ashley Wulber
a44cff8011 fix(text_input): always clip input text with the text bounds
this issue seems unique to tiny-skia
2026-04-08 17:05:40 +02:00
Adam Cosner
5d1dfc4c54
refactor!: remove cosmic::iced_* re-exports 2026-04-08 03:12:10 +02:00
Ashley Wulber
b963fbfea9
feat(widget): progress bars 2026-04-07 17:02:58 +02:00
Vukašin Vojinović
fdf3369cea chore: re-export iced row and column
This removes the custom row and column implementations and uses the iced ones directly.
2026-04-03 20:39:31 +02:00
Ashley Wulber
4541c6a275 fix: example deps 2026-03-31 21:34:26 +02:00
Vukašin Vojinović
54bcb9ec12
chore: update dependencies and examples 2026-03-18 15:54:07 +01:00
Ashley Wulber
14a5d0c0ba
fix(iced): reversed scroll direction 2026-03-06 17:55:53 +01:00
Ashley Wulber
904133397b fix: toggler width fixes & cleanup 2026-03-04 12:04:32 -05:00
Ashley Wulber
bee2d591db chore: update iced 2026-03-04 12:04:32 -05:00
Ashley Wulber
fb1a7d3640 fix: open-dialog example 2026-03-04 12:04:32 -05:00
Ashley Wulber
71e2c7c99e fix: responsive menu layout 2026-03-04 12:04:32 -05:00
Ashley Wulber
e8d53b14ea chore: various fixes and some cleanup 2026-03-04 12:04:32 -05:00
Ashley Wulber
e10459fb37 wip rebase updates 2026-03-04 12:04:32 -05:00
Vukašin Vojinović
990e2e291b refactor(calendar): use jiff instead of chrono
This refactors the calendar widget to use `jiff` instead of `chrono`.
Also mostly matches the design of the widget to the time applet.
2026-02-17 21:18:55 +01:00
Michael Aaron Murphy
03c440b97a
chore(cargo): update all crate dependencies 2026-01-14 18:46:53 +01: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
2ffd1f32f4
examples(application): update and fix compile 2025-12-05 17:05:57 +01:00
Michael Aaron Murphy
45fd683bc9
examples(about): update and fix compile 2025-12-05 16:42:29 +01:00
Ashley Wulber
9815d4d981 feat(wayland): corner-radius protocol support 2025-09-30 10:59:51 -04:00
Tony4dev
2dd6dce053
improv(about): support custom license URLs 2025-09-03 14:49:35 +02:00
Ashley Wulber
ba72aed6fb feat: context menu popups 2025-06-11 16:46:31 -04:00
Ashley Wulber
92ec78ba29
feat: menu bar popups 2025-06-10 18:22:07 +02:00
Ashley Wulber
1fce5df160 refactor: add optional parameter for layout offset and bounds for button handlers
Buttons are often used for toggling popups, so something allowing more straightforward positioning is important.
2025-05-23 19:19:42 +02:00
Ashley Wulber
bbcd874d9c refactor: responsive headers should allow some options 2025-04-15 17:02:32 -04:00
Ashley Wulber
99d2478d98 cargo fmt 2025-04-14 14:16:17 +02:00
Ashley Wulber
cc3ca6ed14 refactor: applet tooltips may be for an overflow window 2025-04-14 14:16:17 +02:00
Vukašin Vojinović
1486569481 chore: use theme::spacing() where applicable 2025-04-02 00:33:21 +02:00
Adam Cosner
2753941aad
feat(widget): add table widget 2025-03-24 17:48:20 +01:00
Michael Aaron Murphy
92b2756e26
chore: update dependencies; including ron 0.9 2025-03-21 13:20:45 +01:00
Michael Aaron Murphy
ab887aeeac
feat: add cosmic::theme::spacing() 2025-03-21 13:20:45 +01:00
Ashley Wulber
337b80d4ca
feat: Tooltips and Better Surface Management 2025-03-14 16:56:21 +01:00
Victoria Brekenfeld
fdfd80f8b1 chore: Update ron to 0.9 2025-01-22 15:50:44 +01:00
Tony4dev
8211fb68bd
improv!(calendar): do not select date when navigating prev/next months 2025-01-16 06:30:21 +01:00
Vukašin Vojinović
de0c1921f7 fix(list_column): match padding/spacing to designs 2024-12-02 17:43:19 +01:00
Adam Cosner
a64529af17 Changed cosmic::command module to cosmic::task and changed cosmic::Task to reexport cosmic::app::Task instead of iced::Task 2024-11-21 10:45:21 -05:00
Bryan Hyland
b14fde9033 feat!(spin_button): refactor and support vertical widget variant 2024-11-20 05:03:29 +01:00
Eduardo Flores
f3d9e4c0d3 fix: examples 2024-11-18 08:39:37 -05:00
Eduardo Flores
e7b9c6493a improv: icon support for menus 2024-11-18 08:39:37 -05:00
wiiznokes
a355a049d9
feat!(app): ContextDrawer return type for context_drawer method 2024-11-16 03:38:29 +01:00
Eduardo Flores
d8357d0ea3
refactor: about page as a widget 2024-11-10 02:42:16 +01:00
Eduardo Flores
8d4afb90da
feat(app): add context view method for creating About views 2024-11-06 03:36:33 +01:00
Vukašin Vojinović
127ce17b85 improv: add window border 2024-11-05 10:02:19 +01:00
Ashley Wulber
533e099cf6 fix: text input icon render 2024-10-21 15:46:55 +02:00
Ashley Wulber
accb65b7ec fix(applet): toggler 2024-10-21 07:46:37 -06:00
netengy-dakotaraptor
d718a4a61c fix: remove non-existent cosmic-time feature from cosmic example
Removes the "libcosmic" feature of cosmic-time from the cosmic example. This feature appears to no longer exist.
2024-10-20 07:08:44 -06:00
Ashley Wulber
45f3999f9c refactor: include winit in the applet feature 2024-10-18 14:04:39 -04:00