Fabrizio Iannetti
aaf6f46316
fix rendering of day number in month view
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-10-09 21:55:34 +02:00
Fabrizio Iannetti
801f6a5c81
improved event visualization
...
* margin between bars
* fix min row height computation
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-09-29 22:56:24 +02: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
6bc32790a1
remove debug prints
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-07-09 20:32:09 +02:00
Fabrizio Iannetti
d5b9799618
fix incorrect stacking of overlapping events from multiple calendars
...
sort the event collection after adding a calendar, as the drawing
functions rely on the event collection to be sorted by begin date
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-07-09 20:31:18 +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
fab
1a08bfbcdc
improved event rendering
...
* events that span over multiple days ar rendered as a single bar
instead of a series of per-day events
Signed-off-by: fab <fab@pop-os.localdomain>
2023-06-25 14:35:34 +02:00
Fabrizio Iannetti
f8e5887f24
adapt to latest iced (Widget::draw accepts a mouse::Cursor)
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-06-17 09:14:28 +02:00
Fabrizio Iannetti
7550842126
fix alignment of month names in month view
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-05-29 08:29:10 +02:00
Fabrizio Iannetti
3135507688
remove duplicate event rendering
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-05-21 14:56:29 +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
7085a2eed8
Start adding support for events
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-01-15 15:38:41 +01:00
Fabrizio Iannetti
966752614a
better names for day text colours
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2022-12-27 09:29:29 +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
deb2335fe8
Improved cell grid
...
* CellAxis struct to interate over cells in a direction (hor. or vert.)
* used in MontlyView
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2022-12-10 12:50:28 +01:00
Fabrizio Iannetti
1a2b7936c2
adapt to BorderRadius (4 corner radi instead of single value)
...
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2022-12-03 09:47:57 +01:00
Fabrizio Iannetti
8e8f06cd56
year view
2022-11-23 21:54:17 +01:00