Commit graph

914 commits

Author SHA1 Message Date
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
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ć
882481e518 fix(popover): match popup styling to designs 2025-12-02 16:37:20 +01:00
Kyle Scheuing
62f661e077 fix: compile errors on windows
calendar.rs had some left over icon! macro_rules macros referencing now
deleted files.

bundle::get was defined twice on non-unix platforms.

A known remaining issue is that projects using libcosmic need to have
cosmic-icons in their project root, since the crabtime macro uses
crabtime::WORKSPACE_PATH rather than the path to wherever cargo puts
libcosmic's git submodule.

See: 639326fcc3
2025-11-26 15:39:32 -05:00
Michael Aaron Murphy
639326fcc3 feat(icon): optimize & bundle icons with crabtime for non-unix platforms 2025-11-21 18:37:49 +01:00
Stephan Buys
ce0868582b tests: fix env guard and pipe read for tab dnd 2025-11-20 22:33:13 +01:00
Stephan Buys
7f321cb0a3 segmented button: support tab drag + drop 2025-11-20 22:33:13 +01:00
Michael Aaron Murphy
fc85fcac3e fix(dropdown): refresh popup when selections change 2025-11-18 19:03:23 +01:00
Michael Aaron Murphy
7eecbe30d7 feat(dropdown): add Id support with custom close, open operations 2025-11-18 19:03:23 +01:00
Stephan Buys
690f1d331d
feat(desktop): add DesktopEntryCache and unit tests for known problematic entries 2025-11-13 16:02:12 +01:00
Ashley Wulber
2296e8e94d
feat(applets): configurable applet overlap and padding increases 2025-11-11 21:04:09 +01:00
Cheong Lau
bc744bd4e3
fix(segmented_button): use less restrictive FnOnce for builder method over Fn 2025-11-11 17:18:38 +01:00
Michael Aaron Murphy
6439507aa2
fix(icon): default to prefer_svg if symbolic 2025-11-06 07:57:03 +01:00
Vukašin Vojinović
37ae722320 fix(context_drawer): match to designs 2025-11-06 07:33:31 +01:00
Vukašin Vojinović
b6c6d1cb7b improv(context_drawer): move title out of header row
This moves the title below the header row containing actions and the close button, allowing more room for the title and actions.
Also makes actions an `Element` instead of a `Vec<Element>`, providing more flexibility for developers.
2025-11-04 16:58:33 +01:00
Ashley Wulber
a1b64dde3e fix(input): handle ctrl shortcuts with caps lock 2025-10-27 13:22:05 -04:00
Ashley Wulber
0c6c85429e
chore: update iced (#1029) 2025-10-27 16:24:02 +01:00
UchiWerfer
e49a30104b added localization for month and weekday to calendar-widget 2025-10-22 04:31:38 +02:00
Cheong Lau
1d6a43486e remove redundant clones, use mul_add on f32s 2025-10-22 04:30:57 +02:00
Cheong Lau
bd438a8581 perf: reduce memory allocations
This also changes `widget::column::with_children` and
`widget::row::with_children` to take an `impl IntoIterator` instead
of a `Vec`, like the `iced` variants of these functions do.

This shouldn't be a breaking change since passing in a `Vec` will still
compile and function exactly as before.

(Using `iced::widget::Column::from_vec` or
`iced::widget::Row::from_vec` isn't possible, since the elements of the
`Vec` aren't checked, so the size of the resulting `Column` or `Row`
won't adapt to the size of its children. Perhaps a new function could
be added to mirror `iced`'s?)
2025-10-22 04:30:57 +02:00
Ashley Wulber
840ef21e4d fix(dnd_destination): Don't capture leave events 2025-10-22 04:29:04 +02:00
Ashley Wulber
2e87bd7c41 fix(segmented_button): ensure modifier state exact match for tab 2025-10-21 19:29:48 +02:00
Eduardo Flores
f2e965c76c fix: dialog body overflows 2025-10-20 13:53:58 -06:00
Ashley Wulber
529eeebaeb fix: avoid focus effects if already focused 2025-10-20 11:58:40 -04:00
Ian Douglas Scott
76c1897d4d Update iced for input_zone change
https://github.com/pop-os/iced/pull/241
2025-10-17 12:06:47 -07:00
Michael Aaron Murphy
f44d82a7e8
fix(spin_buttton): change text style to body 2025-10-14 16:28:43 +02:00
Ashley Wulber
a929829521 fix(color picker): avoid 0 in color picker slider value 2025-10-09 05:28:10 +02:00
Ashley Wulber
f17cd2928a fix: forward events to trailing element regardless of cursor position 2025-10-09 05:28:10 +02:00
Ashley Wulber
d40e9fa4e4 fix: support NotShowIn 2025-10-07 21:59:45 +02:00
Ashley Wulber
dc4e0edd73 fix(input): drag threshold 2025-10-07 19:43:26 +02:00
Ashley Wulber
4c4eddb50c fix: use is_maximized 2025-10-06 12:58:46 -06:00
Cheong Lau
a27bb5e05d chore: apply clippy suggestions 2025-10-05 04:40:51 +02:00
Ashley Wulber
34f55d6720 fix: surface cleanup 2025-10-03 18:02:44 -04:00
Vukašin Vojinović
ad1672b881 fix: window corner handling 2025-10-03 14:28:34 -04:00
Vukašin Vojinović
5cd7742413 chore(about): styling fixes
Also reduces code duplication a bit.
2025-10-03 18:18:16 +02:00
Ashley Wulber
0059fe182b refactor: set sharp corner window radius to 0 instead of unsetting 2025-10-03 18:15:27 +02:00
Michael Aaron Murphy
6a0c06a368 chore: update taffy crate to crates.io release 2025-09-30 22:31:43 +02:00
Michael Aaron Murphy
df9df40963 chore(about): drop license dependency
Not needed since the application can already give URLs to their license
2025-09-30 22:31:32 +02:00
Ashley Wulber
03f07d2f1e fix: sharp corners & window state handling 2025-09-30 10:59:51 -04:00
Ashley Wulber
27f591e5aa fix(corner-radius): fix radius from array to match iced and better respect sharp corners 2025-09-30 10:59:51 -04:00
Ashley Wulber
ab41b83cd8 cargo fmt 2025-09-30 10:59:51 -04:00
Ashley Wulber
9815d4d981 feat(wayland): corner-radius protocol support 2025-09-30 10:59:51 -04:00
Ashley Wulber
9ff208e9d7 fix: if editable input is focused by operation, emit a message 2025-09-17 22:27:37 +02:00
Ashley Wulber
c01254dd18 fix(menu): overlays should be used when multi-window is not active 2025-09-17 13:50:47 +02:00
Ashley Wulber
0e797b2440 improv(input): better initial handling of focus state 2025-09-16 00:27:25 +02:00
Vukašin Vojinović
e568122083 fix(context_drawer): title alignment
Something caused text alignment to break, so this gets around it by wrapping the text in a container.
2025-09-11 10:49:26 -04:00
Vukašin Vojinović
e83e43bf1e fix(icon): always set size
Fixes an oversight in my previous commit 39a5607400.
2025-09-09 16:53:18 +02:00
Vukašin Vojinović
39a5607400 improv(icon): use correct size variant for Named
Update`Icon::size` method to correctly handle `Named` icons by using the provided size retroactively.
2025-09-09 15:57:11 +02:00