Alex
da562a9172
Merge remote-tracking branch 'origin/master' into refactor/generic-tooltip
...
# Conflicts:
# src/modules/wireplumber.cpp
2026-07-04 00:29:26 +02:00
Alex
cdfd3cb08a
refactor: migrate complex-tooltip modules to ALabel dedup setters
...
Switch direct label_.set_markup/set_tooltip_markup calls to the
deduplicating setLabelMarkup/setTooltipMarkup helpers in clock, custom
and mpris, keeping their custom tooltip construction logic intact.
taskbar is left untouched: its tooltip lives on per-task Gtk::Button,
not on an ALabel label_.
2026-07-03 23:59:55 +02:00
Alex
331fe0e963
Fix clang-format
2026-07-03 23:52:24 +02:00
Alex
15e0c9cb1c
Merge remote-tracking branch 'origin/master' into pr-4760
2026-07-03 23:52:11 +02:00
Alexis Rouillard
8587474821
Merge pull request #4896 from nickjj/feature-clock-calendar-css-classes
...
feat (clock): Add support for optional CSS classes to the clock module's calendar tooltip
2026-07-03 23:20:39 +02:00
Alexis Rouillard
2916a0afa0
Merge branch 'master' into aksel.aase/clock-exec
2026-07-03 22:21:41 +02:00
Alex
573ad779ba
Apply clang-format to clock.cpp
2026-07-03 22:21:03 +02:00
Prakhar Chhalotre
16430b44a9
Merge branch 'master' into pr-4841
2026-07-04 01:42:43 +05:30
Alex
e736a934ba
fix(clock): correct parentheses in fmt::format for calendar tooltip color
2026-07-03 22:10:13 +02:00
Alex
8aa8de90d6
Merge remote-tracking branch 'origin/master' into feature-clock-calendar-css-classes
2026-07-03 22:09:30 +02:00
Alex
9ac3f9b951
clock: make calendar padding portable across FormatStream char types
...
std::setfill is templated on the fill char type, which must match the
Glib::ustring FormatStream's char type. That type is wchar_t with
libstdc++/glibmm but char with libc++, so no fixed literal (' ' or L' ')
compiles everywhere. The stream's default fill is already a space, so
drop std::setfill entirely; std::setw/std::left/std::right are
char-type-agnostic and keep the exact padding behavior.
2026-07-03 21:41:10 +02:00
Alexis Rouillard
6e24923f6d
Merge branch 'master' into patch-1
2026-07-03 21:30:54 +02:00
Nick Janetakis
c85f2a23de
Add readability improvements and optimizations
...
Replace the inner loop with regex_replace. We're already using this
elsewhere and the performance difference isn't worth the loss of human
readability.
Use static const to pre-calc the search string.
2026-03-02 21:29:15 -05:00
Nick Janetakis
0c8acbf39e
Add support for optional CSS classes
2026-03-02 19:10:55 -05:00
Prakhar Chhalotre
a6a65cb6b7
feat: add support for configurable first day of the week in calendar
2026-02-24 12:30:59 +05:30
Aksel Lunde Aase
5870c4ba0e
feat(clock): Add action to execute external command
2026-01-09 13:26:27 +01:00
Austin Horstman
bf0ccfd90c
fix(clock): fix freebsd compatibility
...
Recently introduced for ISO 8601 calendar compatibility. But, lib
differences causing the explicit type to break freebsd.
Signed-off-by: Austin Horstman <khaneliman12@gmail.com >
2025-10-21 23:07:04 -05:00
Alex
151cf54532
fix: lint
2025-10-05 09:58:34 +02:00
Alexis Rouillard
18a9835b7c
Merge pull request #4246 from edeustua/master
...
feat: Add ISO 8601 calendar to clock module
2025-10-01 14:29:37 +02:00
Alexis Rouillard
23220eb541
Merge pull request #4410 from lfos/fix-clock-asan-use-after-scope
...
clock: fix use after scope
2025-10-01 14:20:34 +02:00
Jason Chiu
eee0362367
Fix clang build error
2025-09-17 22:09:49 +00:00
guttermonk
d45ce841e3
Keep the local timezone from being in the tooltip.
2025-09-06 08:40:09 -05:00
guttermonk
97fa6aa4dd
Added option to show timezones in tooltip only and removed the extra
...
blank line at the bottom of the timezone list.
2025-09-05 21:01:23 -05:00
Lukas Fleischer
8e488b4d5e
clock: fix use after scope
...
Signed-off-by: Lukas Fleischer <lfleischer@lfos.de >
2025-08-23 00:25:50 -04:00
Emiliano Deustua
08a39dd9eb
refactor: Change config key name
2025-06-30 10:44:46 -05:00
Emiliano Deustua
649a98a679
feat: Add ISO 8601 calendar to clock module
2025-06-28 19:42:55 -05:00
Alexis Rouillard
bfedb7c446
Merge pull request #4155 from Yutsuten/fix/wide-char-calendar
...
Fix calendar extra padding if there are wide characters
2025-06-22 08:32:50 +01:00
Alexis Rouillard
ae777c65a6
Merge pull request #4212 from notpeelz/fix-namespace-pollution
...
Fix namespace pollution
2025-06-22 08:21:24 +01:00
peelz
8daaad1e13
fix: don't use c++20 chrono literals
...
Unfortunately we can't use these yet because the freebsd build (clang)
still uses HowardHinnant/date, which doesn't provide literal suffixes.
2025-06-22 00:56:56 -04:00
peelz
e4dd2ecc5a
refactor: avoid namespace pollution in util/date.hpp
2025-06-22 00:50:25 -04:00
markx86
af9d61fa8f
fix: cldMonShift_ not getting initialized in Clock() constructor
...
Initialize `cldMonShift_` member in the `clock` module constructor. This
fixes a bug where the calendar tooltip would break after a reload, when
in month mode.
2025-06-19 00:35:54 +02:00
Mateus Eto
05cfd73804
Fix calendar extra padding if there are wide characters
2025-06-01 21:43:43 +09:00
Alex
481b01d9af
fix: lint
2025-01-25 09:31:32 +01:00
Viktar Lukashonak
b4e97eb2f4
FreeBSD format fix
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2024-09-23 16:06:50 +03:00
Viktar Lukashonak
773b1d4806
Default value for cldYearShift_ = 1900/01/01
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2024-09-23 15:51:01 +03:00
Alex
6417782af6
chore: lint
2024-09-13 08:55:14 +02:00
Rene D. Obermueller
ee0912a254
Issue #3414/clock: Shift ONLY calendar
...
Right now, for the tooltip, all times are shifted if shift-down/shift-up
actions are used. But it really only makes sense for this to apply to
the {calendar} replacement, so use shiftedNow there and now for all
the rest.
2024-07-20 09:03:49 +02:00
Austin Horstman
b114b1155c
treewide: clang-format
2024-06-15 18:44:46 -05:00
giskard
1cd013a09b
clock: respect tooltip option
2024-06-10 17:31:00 +08:00
Viktar Lukashonak
b288fdf8c1
ISSUE#2240. Clock Gtk::Label as a calendar tooltip
...
Signed-off-by: Viktar Lukashonak <myxabeer@gmail.com >
2024-05-17 20:17:33 +03:00
drendog
2123995b03
fix: update clock tooltip without placeholders scenario
2024-04-21 18:02:26 +02:00
Alex
8ef4ddd7ef
fix: lint
2024-04-18 08:34:02 +02:00
Jan-Peter Dhallé
fb88c06d78
calendar: add shift_reset action
2024-04-15 21:59:35 +02:00
Hristo Venev
f68ac9119a
Use $TZ for local time if it is set
...
libstdc++ doesn't.
2024-04-09 23:27:36 +03:00
encbar5
abd7ca2a1e
Fix clock on-scroll value not being used for calendar, which was broken by 86a3898
2024-03-24 10:37:31 -05:00
Aleksei Bavshin
f885baba61
fix(clock): remove literal operator with reserved name
...
```
../include/util/date.hpp:34:26: warning: literal operator suffixes not preceded by ‘_’ are reserved for future standardization [-Wliteral-suffix]
34 | constexpr decltype(auto) operator""d(unsigned long long d) noexcept {
```
2024-02-19 21:56:47 -08:00
Aleksei Bavshin
a2deff3689
fix(clock): crash on scrolling with local timezone ("") in the list
...
While we at it, eliminate use of non-portable GCC conditional expression
syntax. There are no significant side-effects that would justify use of
the language extension.
2024-02-19 21:56:46 -08:00
Alex
bd0bf836c7
fix: lint
2024-02-19 23:07:50 +01:00
Josh Jones
1fa1045af9
remove duplicated segment
2024-02-04 16:11:39 +01:00
Josh Jones
718dd4afae
add ordinal date toolbar format specifier to clock module
2024-02-04 15:41:39 +01:00