Commit graph

31 commits

Author SHA1 Message Date
Victoria Brekenfeld
b71d1b0e1b app-list: Use cosmic theme instead of pop 2023-09-29 10:43:12 -04:00
Victoria Brekenfeld
02ec3a1bf2 app-list: Merge wm_class with app_id and preferr the latter 2023-09-29 14:35:13 +02:00
Victoria Brekenfeld
3488600e82 app-list: Fix default icon 2023-09-29 14:35:13 +02:00
Victoria Brekenfeld
6e15d8e282 app-list: Match by startup WM Class for Xwayland compatibility 2023-09-29 11:43:32 +02:00
Victoria Brekenfeld
d93282c084 app-list: Try to use generic application icon, if icon is missing 2023-09-21 19:21:03 +02:00
Victoria Brekenfeld
353985170c app-list: Don't skip DesktopEntry if icon is missing 2023-09-21 13:20:56 +02:00
Ashley Wulber
2552578eab fix(app-list): increment id counter before use 2023-09-20 18:28:13 -04:00
Ashley Wulber
c67c1911c5 fix: autosize the app list 2023-09-18 11:30:10 -04:00
Ashley Wulber
56d96e5282 fix: clear popup state when it is dismissed by the compositor 2023-09-12 16:27:25 -04:00
Ian Douglas Scott
a23f181b7f Use cosmic::Application/cosmic::app::applet
This saves a bit of duplicated boilerplate.

Applets seem to work fairly well with this. Though we should see if any
other changes to initial window settings are needed in certain applets
for the exact behavior we want.
2023-08-23 10:24:56 -07:00
Ashley Wulber
6726873761 fix build 2023-08-03 12:33:09 -04:00
Ian Douglas Scott
294cf6f3a7 Update dependencies, and use workspace dependencies
Using `[workspace.dependencies]`, we can update `rev =` for a dependency
in one place, instead of each individual applet.
2023-08-02 12:36:01 -06:00
Ashley Wulber
ff6e9e3483 refactor(app-list): use channel subscription 2023-08-02 12:35:26 -06:00
Ashley Wulber
aaf0aa674c fix: app-list ordering of favorites and config updates on drop 2023-07-28 19:21:38 -04:00
Ashley Wulber
eb810a1436 fix: make windows not resizable 2023-06-21 20:49:35 -04:00
Ashley Wulber
76bf6a4519 feat: theme management 2023-06-21 20:49:35 -04:00
Ashley Wulber
9ebd9b511a
wip: update libcosmic (#93)
* wip: update libcosmic

* fix: damge issue resolved by updating iced

* fix: high cpu usage by time applet and app-list

* refactor subscriptions to produce fewer events

* refactor network applet to use less cpu

* fix: text size

* refactor: i18n for audio applet

* refactor: power applet i18n setup

* fix (battery): always send profile update

* fix (battery): set toggler width to layout correctly

* fix (app-list): backoff for restarts of toplevel subscription

* fix (network): alignment

* feat: ask for comfirmation before applying power applet actions

* wip: integrate cosmic-config

* update zbus

* feat: update to use latest libcosmic

* update iced

* udpate deps

* update deps

* refactor: move applet helpers to this repo, outside of libcosmic.

this should help alleviate some dependency hell

* chore update deps

* update deps

* cleanup
2023-06-01 12:23:12 -04:00
Ashley Wulber
8b46cc209f cleanup app-list 2023-04-11 19:26:43 -04:00
Ashley Wulber
1391388ec0 feat: polish app list dnd 2023-04-11 19:26:43 -04:00
Ashley Wulber
8a040dd338 feat: basic DnD support 2023-04-11 19:26:43 -04:00
Ashley Wulber
96cc393692 feat: drag source 2023-04-11 19:26:43 -04:00
Ashley Wulber
020e76ad8a refactor: use separate lists for active & favorites on the app-list 2023-04-11 19:26:43 -04:00
Ashley Wulber
903a5589a3 update libcosmic 2023-04-06 15:12:49 -04:00
Ian Douglas Scott
6d7727a5d0 Update sctk, libcosmic, cosmic-client-toolkit 2023-03-02 14:06:52 -05:00
Enver Balalic
d621fb8936 fix: crash when no icon found
Specific case when using vscode, the open file/folder dialog
doesn't succeed in looking up the icon on my system. This would
cause lookup to return None, thus the ret vector is empty.
Since we removed the id before the lookup, the append below would
append an empty vec. This would cause an error in AddTopLevel
message handler when trying to remove the first item of the
returned vec.

Move the id remove directly within the map, so it only gets
removed if we succeed in looking up the icon.
2023-02-06 08:39:11 -05:00
Ashley Wulber
b692cdcc05 chore: use latest libcosmic 2023-02-02 23:47:33 -05:00
Ashley Wulber
982b8f5fd1
update: use dyrend & use autosized window in app-list & fix button size in workspaces & only update popup text in time when creating popup 2023-01-20 11:25:53 -05:00
Ian Douglas Scott
72a75eabc7 Use cosmic::SingleThreadExecutor
This cuts down the number of threads per applet process. This is probably
no benefit to having multiple tokio worker threads for a typical applet.
2023-01-19 10:06:39 -05:00
Ian Douglas Scott
ba832143fc app-list: Fix clippy lints 2023-01-05 10:05:19 -08:00
Ashley Wulber
88b4a7d20b
update applets using latest libcosmic auto-sizing popups 2022-12-27 18:35:06 -05:00
13r0ck
a682b8deb0 Move Cosmic Applets into new Dir & remove old applets 2022-12-23 16:14:55 -05:00