Commit Graph

12 Commits

Author SHA1 Message Date
Fabrizio Iannetti 977c3f4c02 differentiate top-bar between month and year views
* prev and next buttons change year in year view
* do not show month name in year view

Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2023-09-11 07:49:01 +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 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 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 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
Fabrizio Iannetti 6f00d075c1 Refactor
* use std::date instead of plain integers and own functions
* add a drop down for view type (not functional)

Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2022-10-16 14:51:37 +02:00
fab a0406c0da7 mixed changes
- weeks column
- start using chrono for date caluclations
2022-09-25 08:23:14 +02:00
fab d91f44e410 Adapt to iced pure (stateless widgets)
Signed-off-by: fab <fab@pop-os.localdomain>
2022-08-15 12:05:00 +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