Commit graph

411 commits

Author SHA1 Message Date
Ashley Wulber
000ac7b8b4 wip: bluetooth applet 2023-02-15 11:17:44 -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
Gildemberg Santos
aee2213ed8
I18n pt-BR (#71) 2023-02-06 08:38:23 -05:00
Ashley Wulber
b692cdcc05 chore: use latest libcosmic 2023-02-02 23:47:33 -05:00
Nima Fanniasl
d1c251d6b7 Create cosmic_applet_workspaces.ftl 2023-02-02 15:54:39 -05:00
Nima Fanniasl
19d59e1183 Create cosmic_applet_network.ftl 2023-02-02 15:54:39 -05:00
Nima Fanniasl
84515b9853 Create cosmic_applet_graphics.ftl 2023-02-02 15:54:39 -05:00
Nima Fanniasl
dbd8104c72 Create cosmic_applet_battery.ftl 2023-02-02 15:54:39 -05:00
Nima Fanniasl
b3e1822b7d Create cosmic_app_list.ftl 2023-02-02 15:54:39 -05:00
Ashley Wulber
a76353981f feat: update pulse connection every time the audio applet popup is opened 2023-01-31 16:11:45 -05:00
Ian Douglas Scott
62ec66ab4e
Merge pull request #62 from pop-os/dyrend_jammy
feat: update libcosmic to use dyrend
2023-01-25 08:10:34 -08:00
Ashley Wulber
fee32fb1f8
update iced 2023-01-23 14:00:37 -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
Ron Waldon-Howe
9b229c6e72 fix: disable default-features for zbus 2023-01-20 08:38:16 -07: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
Ashley Wulber
acc639f5e7 cleanup: unnecessary return 2023-01-17 15:22:12 -05:00
Ashley Wulber
899cc0f459 refactor: applet more like mockup 2023-01-17 15:22:12 -05:00
Ashley Wulber
dc1dc3e27b fix: button border radius and padding 2023-01-17 13:11:43 -05:00
Ashley Wulber
ebe34377cb refactor: border radius and padding 2023-01-17 13:02:49 -05:00
Ashley Wulber
b224e4b3f4 refactor: more like mockup with border radius, padding and some new elements 2023-01-17 13:02:34 -05:00
Ashley Wulber
a253dee83a refactor: make the graphics applet more like the mockup 2023-01-12 18:23:56 -05:00
Ian Douglas Scott
c009d14eea
Merge pull request #54 from pop-os/network-applet-mockup_jammy
Refactor network applet to be more like mockup
2023-01-11 07:46:12 -08:00
Ashley Wulber
a423aaa27a
refactor: Vec::with_capacity where possible 2023-01-10 17:29:19 -05:00
Ashley Wulber
cbbd350fc6
update power applet to use latest zbus 2023-01-10 14:56:34 -05:00
Ashley Wulber
4b5cc64e30
fix: longer timeouts & cleanup 2023-01-10 14:56:16 -05:00
Ashley Wulber
d35732d120
refactor nm state 2023-01-10 14:56:15 -05:00
Ashley Wulber
e43fe95b99
fix: use timeouts 2023-01-10 14:53:27 -05:00
Ashley Wulber
6b5ce0f35f
wip: handle state after activating connections 2023-01-10 14:53:27 -05:00
Ashley Wulber
cdca1d96ac
feat: select access point 2023-01-10 14:53:26 -05:00
Ashley Wulber
d377e8055c
feat: handle passwords 2023-01-10 14:53:26 -05:00
Ashley Wulber
833e68d63b
refactor: simplify state updates from network manager subscription 2023-01-10 14:53:25 -05:00
Ashley Wulber
c10087a55d
feat: more improvements to network applet 2023-01-10 14:53:25 -05:00
Ashley Wulber
13ccc03676
wip: network applet more like mockup 2023-01-10 14:53:24 -05:00
Ian Douglas Scott
b5371f58f7
Merge pull request #55 from pop-os/cleanup_jammy
Fix some warnings and clippy lints
2023-01-05 14:35:22 -08:00
Ian Douglas Scott
966e6aa8f6 power: Bump nix dependency 2023-01-05 10:20:46 -08:00
Ian Douglas Scott
3ccfee3c45 graphics: Fix clippy lints 2023-01-05 10:11:38 -08:00
Ian Douglas Scott
f2affe52fb workspaces: Fix clippy lints 2023-01-05 10:09:10 -08:00
Ian Douglas Scott
ba832143fc app-list: Fix clippy lints 2023-01-05 10:05:19 -08:00
Ian Douglas Scott
d1dcbd4915 battery: Fix clippy lints 2023-01-05 09:58:48 -08:00
Ian Douglas Scott
7dbab103a8 battery: Fix zbus dependency specification, and use tokio feature 2023-01-05 09:56:56 -08:00
Ian Douglas Scott
b9a2655210 audio: Fix clippy lints 2023-01-05 09:55:44 -08:00
Shuxian Wang
5c16665b7b Add Nix flake. 2023-01-04 10:45:36 -05:00
Ian Douglas Scott
a38b216924
Merge pull request #36 from pop-os/workspaces-client-toolkit_jammy
Use `cosmic-client-toolkit` helpers in workspace applet
2023-01-03 20:23:55 -08:00
Ian Douglas Scott
27e19828fd Use cosmic-client-toolkit helpers in workspace applet 2023-01-03 15:16:59 -08:00
Ian Douglas Scott
442e59073f Update dependencies
Update `sctk` to version used in `cosmic-protocols`, and then `cargo
update`.
2023-01-03 15:16:56 -08:00
13r0ck
435ee7f7a6 Fix power container build code
A tiny fix, no point in useing the macro to push widgets anyway.
2023-01-03 16:36:13 -05:00
Ashley Wulber
3aaa272499 fix: increase popup size limits to fix text for each button 2023-01-03 14:29:23 -05:00
Ashley Wulber
cbe57ab95f fix: calculation of read backlight values 2023-01-03 11:47:49 -05:00
Ashley Wulber
16f8cd7812 fix: clamp screen brightness to reasonable range 2023-01-03 11:47:49 -05:00
Gildemberg Santos
ca3209ef19 Update cosmic_applet_battery.ftl 2023-01-03 00:11:43 -05:00