Commit graph

65 commits

Author SHA1 Message Date
Sachin Malik
546811981e fix(time): align calendar 2025-03-22 23:46:33 +01:00
Jonathan Capps
2d248ae17e
fix(time): current date highlight not respecting timezones 2025-03-21 17:55:08 +01:00
Ashley Wulber
619550cf61 fix: handling of surface action 2025-03-18 08:13:03 -04:00
Ashley Wulber
c54ddeb38a chore: udpate libcosmic 2025-03-14 14:26:42 -04:00
Ashley Wulber
61d1d1b91d fix: use fixed window width for all applets 2025-03-14 14:26:42 -04:00
Ashley Wulber
a2c4268eb9 cargo fmt 2025-03-14 14:26:42 -04:00
Ashley Wulber
0de336d0d7 update libcosmic: adds tooltip support 2025-03-14 14:26:42 -04:00
Jonathan Capps
38982176f0 feat: date applet - add highlight for current day 2025-03-13 20:13:23 +01:00
Josh Megnauth
7932be526d fix(time): Update calendar on timezone change
Closes: #698
2024-12-31 17:07:27 +01:00
LazyTanuki
110c68d9a8 fix: use on_press_down to toggle time applet 2024-11-07 09:56:32 -05:00
Vukašin Vojinović
6b740c59be fix(app-list): use context menu radius from theme 2024-11-04 08:47:36 -05:00
Ashley Wulber
5b5cd77e7c update iced 2024-10-31 17:52:33 -04:00
Vukašin Vojinović
941cbf546b
fix: padding, spacing, context menu style, and settings buttons 2024-09-24 15:52:17 +02:00
wiiznokes
58a61b7eee
fix(time): improve display of time 2024-09-06 17:55:28 +02:00
Vukašin Vojinović
02b3fbdb11 fix: use cosmic::widget::text instead of cosmic::iced::widget::text 2024-09-03 16:52:59 +02:00
Joshua Megnauth
77e6fc5908
fix(time): Try LC_TIME before LANG 2024-09-01 15:30:20 +02:00
Josh Megnauth
93e3b0f8f3 feat(time): Option to show seconds on the clock
Closes: #496
Requires: pop-os/cosmic-settings#509

I based some of this code off of `i3status-rust` to double check that I
handled it efficiently.
2024-08-29 21:08:17 +02:00
Joshua Megnauth
0d0a13a062
fix(time): Timezone stream spams updates 2024-08-20 14:20:47 +02:00
Josh Megnauth
323e8a55b2 fix(time): Update applet timezone on change
Closes: #582

The chrono crate caches the local timezone but doesn't update it. This
makes sense because it'd be inefficient to constantly evaluate the local
timezone.

Instead of using the local timezone, this patch changes the applet to
use a fixed offset internally which is updated if the external timezone
changes.
2024-08-17 13:24:19 +02:00
Vukašin Vojinović
e61de72c9c update libcosmic
Also fixes the padding of some things to better match designs.
2024-08-15 10:18:19 +02:00
lazytanuki
e51ca81f7d
feat: toggle popups on press down 2024-08-13 19:03:34 +02:00
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