Fabrizio Iannetti
24995d8021
remove hard-coded weekday/month names
...
* use chrono format functions
* use locale to get localized names
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2024-04-28 15:30:36 +02:00
Fabrizio Iannetti
f670e0c83d
use segmented_button from iced_aw (personal branch for latest iced)
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2024-04-27 09:40:47 +02:00
Fabrizio Iannetti
d2a1092a7c
adapt to latest iced ("program" paradigm)
...
* CalendarApp does not derive from Application
* use Program::run_with to run the calendar with state
(from list of calndar files as cli args)
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2024-04-06 11:08:48 +02:00
Fabrizio Iannetti
ee34ecc130
adapt to new iced style functions
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2024-03-09 10:29:46 +01:00
Fabrizio Iannetti
3ae7c8bb6b
adapt to latest iced: Widget trait now has a Theme parameter
...
Theme was made a trait parameter instead of using it from Renderer
and needs to be added to signatures
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2024-02-06 12:03:27 +01:00
Fabrizio Iannetti
ae9abb7768
use simplelog to log messages
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2024-01-28 10:20:02 +01:00
Fabrizio Iannetti
80a05b0b04
refactor: unify month and year calendar views
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-12-09 19:45:05 +01:00
Fabrizio Iannetti
4d81501fa6
Adapt to latest iced, improve event bar render consistency
...
* adapt to latest text render interface from iced
* same number of event bars in each row
* accidentally reformatted :-)
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-09-23 10:54:17 +02:00
Fabrizio Iannetti
5788a8fffa
Code cleaning
2023-09-10 11:01:05 +02:00
Fabrizio Iannetti
ab28f9227e
many improvements
...
* latest iced
* read events from ical files (using the icalendar crate)
* ical files specified on command line (using clap, bit overkill)
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-07-09 18:49:42 +02:00
Fabrizio Iannetti
e28288b2c6
updated Cargo.lock
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-06-17 09:21:24 +02:00
Fabrizio
36d3ce3a09
disable generation of lttng tracepoints if no tracing feature set
...
Signed-off-by: Fabrizio <fab@pop-os.localdomain>
2023-06-04 09:36:26 +02:00
Fabrizio Iannetti
ae13e98388
Adapt to new iced version, show events in month view
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-05-21 13:41:16 +02:00
Fabrizio Iannetti
6fb0761911
adapt to iced 0.8
...
* font size is now an f32
* Alignment::Fill was removed
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-03-05 08:21:38 +01:00
Fabrizio Iannetti
e01b2b3ceb
add text to events
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-02-11 11:43:24 +01:00
Fabrizio Iannetti
ca0bc137ad
debug: add optional tracing via lttng-ust
...
* new feature `tracing`, enable with `--features tracing`
* draw entry/exit tracepoints
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-01-28 09:30:33 +01:00
Fabrizio Iannetti
7c682495d7
Some refactoring:
...
- use iced Application instead of Sandbox
- use CellGrid to create the calendar widgets
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2022-12-25 12:14:01 +01:00
Fabrizio Iannetti
8e8f06cd56
year view
2022-11-23 21:54:17 +01:00
fab
a0406c0da7
mixed changes
...
- weeks column
- start using chrono for date caluclations
2022-09-25 08:23:14 +02:00
Fabrizio Iannetti
23a3102df0
First version of calendar app
...
- Monthly View
- prev/next month buttons
- year hard-coded to 2022
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2022-08-09 21:18:11 +02:00