Ashley Wulber
d654743234
fix: format of month can overflow bounds of panel if Long
2024-08-01 19:05:40 +02:00
Ian Douglas Scott
293a91e8b1
Update for spawn_desktop_exec that calls SpawnTransientUnit
...
Allows `xdg-desktop-portal` to get app id from PID.
Also updates calls to `cosmic::process::spawn` to spawn in future.
2024-07-28 20:25:23 -07:00
Vukašin Vojinović
0640e88412
chore: merge imports
2024-07-09 16:26:27 +02:00
wiiznokes
406cab9a91
Time applet localization v2 ( #455 )
2024-05-24 23:16:25 -04:00
Ashley Wulber
37a60b7759
fix(input-sources): text size
2024-05-18 02:01:40 +02:00
Ashley Wulber
afff0793aa
feat: applet text scaling based on panel size
2024-05-16 18:41:47 +02:00
Michael Aaron Murphy
8527257ddd
chore: add SPDX license identifiers
2024-05-06 21:56:50 +02:00
Ashley Wulber
8bf340aa8e
chore: update applet icon sizes
2024-04-15 23:46:48 -04:00
Lyu Ji
32b7012b79
feat(time): implement date selection
2024-04-04 13:53:33 +02:00
maciekk64
52aa97945b
feat(time): first_day_of_week config
2024-04-02 23:29:00 +02:00
maciekk64
51eed6ec12
feat(time): military_time and show_date_in_top_panel config
2024-04-02 23:29:00 +02:00
Ashley Wulber
71cb9e64ec
fix: better button sizing so there are no gaps
2024-03-28 19:54:24 -04:00
Michael Aaron Murphy
3c4acdacd7
refactor: compile applets as multicall binary
2024-03-14 23:37:37 +01:00
Ian Douglas Scott
fee7eefe5b
time: Calculate period to wait on each iteration ( #237 )
...
Computing the delay only once won't work; it has to be be done each time
to stay properly in sync.
The time widget should now reliably update at the minute.
Co-authored-by: Michael Murphy <michael@mmurphy.dev>
2024-02-27 13:51:42 -08:00
Lyu Ji
5be328f8ad
feat(time): implement prev/next month
2024-02-26 19:24:07 +01:00
Ashley Wulber
f00fd8bc1a
chore: update fixes
2024-02-06 16:21:16 -05:00
Ashley Wulber
e5db5ab1dd
chore: update libcosmic ( #168 )
2023-12-11 14:45:36 -05:00
Ashley Wulber
f5c51ecc92
chore: open settings when time settings is pressed
2023-11-22 08:03:54 -05:00
daniel.eades
b9723dd5e0
use 'Self' to refer to own type
2023-11-16 15:47:20 -05:00
daniel.eades
6ae90bd94f
use char as split pattern
2023-11-16 15:47:20 -05:00
Ashley Wulber
1c8e610b09
fix(time): use ignore_bounds so that the layout of the time text is not affected by the previous layout
2023-10-30 16:22:41 -04:00
PixelDots
74998b5b16
remove comments of old styling
2023-10-24 18:40:53 -04:00
PixelDots
2efc93a38c
update styling
2023-10-24 18:40:53 -04:00
PixelDots
e5f135a76e
use chrono for day of week labels
...
move `window::get_sunday` to `time::get_calender_first`
2023-10-24 18:40:53 -04:00
PixelDots
ee73884b07
remove events text
...
cleanup calender week of day labels
Use `Next` and `Previous` icons
2023-10-24 18:40:53 -04:00
PixelDots
57b2c71804
Time Applet Window design implementation
2023-10-24 18:40:53 -04:00
Ashley Wulber
3338cb74b6
refactor: styling improvements
2023-10-24 15:34:21 -04:00
Ashley Wulber
d80a801fe5
refactor: use menu button
2023-10-24 15:34:21 -04:00
Ashley Wulber
4107f18d81
fix: app-list panic on activate and build
2023-10-11 19:46:07 -04:00
Eduardo Flores
486eff3eb3
Apply suggestions
2023-10-11 19:46:07 -04:00
Eduardo Flores
276ecc7d6c
Switch back to libcosmic upstream
2023-10-11 19:46:07 -04:00
Eduardo Flores
c7b25daa71
Update libcosmic
2023-10-11 19:46:07 -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
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
903a5589a3
update libcosmic
2023-04-06 15:12:49 -04:00
Ashley Wulber
a4ea05d718
fix(time): use autosized surface for correct sizing of time widget and add support for Left/Right anchors
2023-03-13 15:54:18 -04: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
Ashley Wulber
88b4a7d20b
update applets using latest libcosmic auto-sizing popups
2022-12-27 18:35:06 -05:00
13r0ck
11eb4cefc2
Time: Set minimum wait for subscription to 1ms
...
The Clock was freezing with
```
ERRO thread 'main' panicked at '`period` must be non-zero.', /home/system76/ca/cosmic-applets/applets/cosmic-applet-time/vendor/iced_futures/src/backend/native/tokio.rs:62:21
```
2022-12-23 16:14:55 -05:00
13r0ck
a682b8deb0
Move Cosmic Applets into new Dir & remove old applets
2022-12-23 16:14:55 -05:00