Commit graph

1183 commits

Author SHA1 Message Date
Peter Krull
4c5ae65eb2
improv(toggle): Make handle and border radius concentric 2024-08-05 12:22:51 +02:00
netengy-dakotaraptor
5de9b21e0b
fix: set window control icons as symbolic for non-linux sytems 2024-08-05 12:17:33 +02:00
Michael Aaron Murphy
756f4b6ba6
fix(text_input): prevent simultaneous input focus 2024-08-03 12:33:24 +02:00
Victoria Brekenfeld
1ad6877cb1 chore: Update MSRV 2024-08-02 20:36:15 +02:00
Victoria Brekenfeld
b40839638a fix: Use globals instead of thread-locals
Better support for multi-threaded applications,
especially cosmic-comp rendering in parallel on
multiple threads, each potentially accessing
global configurations such as the active theme,
icon_theme and more...
2024-08-02 20:27:08 +02:00
Ashley Wulber
f655710d55
fix(iced): lock surface scaling 2024-08-02 15:54:23 +02:00
Michael Aaron Murphy
9e344b15c3
fix: window controls on linux not clickable 2024-07-31 08:06:05 +02:00
wiiznokes
716b3dee56
feat: use cached window control icons on other OSes 2024-07-30 18:29:01 +02:00
Ashley Wulber
22138671b4 fix: keep the cursor at the end if it previously when diffing 2024-07-29 22:53:55 +02:00
Michael Aaron Murphy
2170a65c89
chore(readme): add cosmic-app-template 2024-07-29 13:24:33 +02:00
Ian Douglas Scott
4f77edd249 ci: Add smol/tokio features when testing desktop feature 2024-07-26 12:01:40 -07:00
Ian Douglas Scott
732c7aef5c Add smol implementation for spawn
Although this is used in apps that use `tokio`, if we're going to
support `smol`, this seems suboptimal to require.

This assumes the function will be called by a tokio executor if the
`tokio` feature is used. Otherwise it can be spawned from any executor.
That should be consistent with everything else.

This fails to compile without either the `tokio` or `smol` feature. This
seems reasonable, since `zbus` also fails to compile in that case.
2024-07-26 12:01:40 -07:00
Ian Douglas Scott
8c00bf3d8b Update ashpd and fraction 2024-07-26 12:01:40 -07:00
Ian Douglas Scott
82fb781746 Use tokio to asynchronously read from pipe
Avoids either `spawn_blocking`, or potentially blocking call in an async
function (though it shouldn't block for long).
2024-07-26 12:01:40 -07:00
Ian Douglas Scott
621de17cad Call systemd StartTransientUnit what starting app
This is needed for things like `xdg-desktop-portal` to get the app ID
from a pid, in unsandboxed apps.

https://systemd.io/DESKTOP_ENVIRONMENTS documents this, and this sets
things similarly to how Gnome does. Which should be good for now.

Making `spawn_desktop_exec` an `async` function is reasonable given it
is called in `async` functions in
`cosmic-app-list`/`cosmic-launcher`/`cosmic-applibrary`.
2024-07-26 12:01:40 -07:00
Ian Douglas Scott
fe035e37b0 Use rustix/libc instead of nix; use pipe to capture double-fork pid
`rustix` and `libc` are already in the dependency tree, and `rustix`
follows IO safety rules, so use those.

We can use a pipe to get the PID of the double-forked process.
2024-07-26 12:01:40 -07:00
Ashley Wulber
a5996b4e90 fix(toast): implement drag_destinations 2024-07-24 05:33:35 +02:00
leb-kuchen
8e67f3ce1c
feat(headerbar): double click to maximize 2024-07-23 11:58:55 +02:00
Michael Aaron Murphy
3d22fb8fe2
improv(toaster): actions accept closures 2024-07-22 17:48:17 +02:00
Michael Aaron Murphy
ece6edac8d
improv(toaster): API consistency improvements 2024-07-22 15:34:26 +02:00
Michael Aaron Murphy
1e5828e01c
improv: get window control icons from icon theme 2024-07-22 07:24:07 +02:00
Michael Aaron Murphy
5474232796 fix: widget unfocus on mouse click 2024-07-22 07:05:47 +02:00
Ashley Wulber
6f2c893cf5 feat: add overlay option to appearance for vertical icon button 2024-07-17 22:31:21 +02:00
Ashley Wulber
47dedfde74 fix: draw color picker handle on top of gradient 2024-07-17 22:26:13 +02:00
Ashley Wulber
cfa1adaf46 fix: return error if vscode config fails to parse, instead of overwriting 2024-07-17 19:48:34 +02:00
Michael Aaron Murphy
2dd55f2f20
fix(iced): add x11 device detection to wgpu renderer 2024-07-16 22:47:21 +02:00
Ashley Wulber
d35cc71b90
feat(applets): add overflow support 2024-07-16 17:15:22 +02:00
Jeremy Soller
1e566c13aa
fix(theme): use accent color for text button icons and text 2024-07-11 14:02:28 -06:00
Jeremy Soller
a268a98311
fix(toast): match toast to design 2024-07-11 13:36:53 -06:00
Michael Aaron Murphy
76667418d8
fix(widget): toggler settings controls should not flex 2024-07-11 09:49:36 +02:00
Michael Aaron Murphy
e04c9eaf6d fix: window menus now supported by windows using wayland feature 2024-07-10 16:55:28 +02:00
Jeremy Soller
c9a2265ab1 Make text wrap configurable 2024-07-09 11:14:49 -06:00
Tech_Priest_of_Rust
48f5966eaf Fixed broken link in README.md to point to docs. Added code to add libcosmic as dependency for lib. 2024-07-08 08:27:39 -06:00
Ashley Wulber
928b714d14 fix: toaster behind feature gate 2024-07-05 21:21:35 +02:00
wiiznokes
4da66f8cc0 fix: change message bound for toaster 2024-07-02 18:43:50 +02:00
wiiznokes
4449b29cc9
feat(widget): add toast widget 2024-07-02 17:55:38 +02:00
Jason Hansen
41d1f4a7cd
feat(segmented_button): add on_middle_press 2024-07-02 02:53:45 +02:00
Jason Hansen
bfbff0773a
fix(button): Closing tab with middle-click
Only close on middle button release if the middle button press event was on the same tab.
2024-07-01 21:18:48 +02:00
Ashley Wulber
3e0a480d42 update iced
fixes decorations setting when converting window settings
2024-06-28 09:30:40 -06:00
Ashley Wulber
2b7f0c55e1 cleanup: cargo fmt 2024-06-28 09:12:05 -06:00
Ashley Wulber
047039daab update iced
converts iced window actions to iced-sctk if possible
2024-06-28 09:12:05 -06:00
Michael Aaron Murphy
5c6fa840f4
fix(text_input): set read_only to false when focusing editable_input 2024-06-27 15:48:06 +02:00
Michael Aaron Murphy
ff3e4423f9
feat(text_input): add select_on_focus field 2024-06-27 00:20:05 +02:00
Michael Aaron Murphy
7e30695c52
chore(menu): fix warnings about public visibility 2024-06-27 00:19:03 +02:00
Victoria Brekenfeld
61760f8e4e cosmic-config: Update calloop 2024-06-26 16:16:31 +02:00
Ashley Wulber
8c6f2c9ebc update iced 2024-06-20 10:42:08 -06:00
Michael Aaron Murphy
bd84f1f07d
fix(inline_input): wrong colors for focused style 2024-06-20 14:00:25 +02:00
Michael Aaron Murphy
d8cb87cae7
fix(inline_input): add placeholder parameter 2024-06-20 13:45:46 +02:00
Ashley Wulber
f9af93c0f1 update iced 2024-06-19 19:06:29 +02:00
Jeremy Soller
8d735575cd Do not keep gh-pages history 2024-06-18 09:22:09 -06:00