Ashley Wulber
e125ae0b58
update libcosmic after reexports are removed
2026-04-16 15:27:25 -06:00
Ashley Wulber
71d9d6d5bb
chore: updates after iced-rebase
2026-03-31 22:34:59 +02:00
Vukašin Vojinović
7029fcccf6
Use ellipsizing and replace chrono with jiff ( #1323 )
...
* refactor(time): use `jiff` instead of `chrono`
* improv: use text ellipsizing
2026-03-03 15:57:49 -07:00
Vukašin Vojinović
588afe5a9d
improv(time): use medium fieldset in horizontal
...
It seems ICU changed the behavior of `long()`, so it displayed in the panel as e.g. `December 11 at 13:00` instead of `December 11, 13:00`.
It now displays as `Dec 11, 13:00`, making it more compact and matching GNOME.
2025-12-19 16:47:01 -05:00
Joshua Megnauth
fd01e07304
fix(time): handle invalid strftime formatters
...
Invalid format strings trigger a panic for the strftime formatter's Display implementation. This can occur frequently when the user is inputting a format string in COSMIC Settings. A plain '%' immediately causes a panic.
This commit handles invalid formatters correctly by writing to a buffer instead of relying on to_string() (Display).
2025-11-18 21:29:56 +01:00
Ashley Wulber
836c0e378b
applet overlap
...
chore: mpris dep
fix: dock buttons
improv: battery and audio improvements
feat: overlapping padding
fix: input source text button
fix: apply panel spacing to app tray
chore: update libcosmic
fix: spacing and padding
fix(minimize): hide when empty
2025-11-11 16:49:48 -05:00
Joshua Megnauth
bd98de8228
feat(time): formattable datetime strings with strftime
2025-11-07 19:42:36 +01:00
Cheong Lau
dd0158d8f0
perf: refactor to reduce memory allocations and cpu work
2025-10-07 17:04:51 +02:00
Cheong Lau
8e0f1c4a09
chore: apply recommendations from clippy
2025-10-04 02:51:18 +02:00
Vukašin Vojinović
c54bf8e189
chore: update dependencies
...
Also removes unused dependencies from workspace members.
2025-09-10 17:23:35 +02:00
Vukašin Vojinović
054cf4aca1
refactor(time): update to icu 2.0.0
2025-09-03 16:34:05 +02:00
Ashley Wulber
a795006633
fix(time): don't recreate timezone property stream
2025-09-02 09:15:10 -04:00
Vukašin Vojinović
2b7b4cba56
chore: update to Rust 2024 edition
2025-08-18 16:44:50 +02:00
Vukašin Vojinović
c3fafd3910
chore: use std::sync::LazyLock
...
Removes `once_cell` as a direct dependency.
2025-08-18 16:44:50 +02:00
Jason Hansen
2e4460b423
fix(time): update time when resuming from sleep
2025-07-08 16:58:08 +02:00
Jeremy Soller
515dbb3337
Restructure config to fix debian builds
2025-05-09 19:17:28 -06:00
Jeremy Soller
edaf5b994e
Expose applet configs, starting with time applet
2025-05-09 13:49:30 -06:00
Ashley Wulber
f26992e41a
fix(time): popup initial wrong size
2025-04-22 16:14:03 +02:00
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