From 3c5be0300f281d809cbe2ecdf52a4ef34598f084 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 21 Nov 2021 18:12:11 +0100 Subject: Show static events on the calendar --- Cargo.lock | 1 + Cargo.toml | 3 +- README.md | 17 +++--- src/main.rs | 171 +++++++++++++++++++++++++++++++++++++++++------------ src/model/event.rs | 39 ++++++++++++ src/model/mod.rs | 1 + src/style.css | 25 ++++++-- 7 files changed, 202 insertions(+), 55 deletions(-) create mode 100644 src/model/event.rs create mode 100644 src/model/mod.rs diff --git a/Cargo.lock b/Cargo.lock index 7dabba4..c25214f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -50,6 +50,7 @@ version = "0.1.0" dependencies = [ "chrono", "gtk4", + "pango", ] [[package]] diff --git a/Cargo.toml b/Cargo.toml index 0f6e92e..f240486 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,5 +5,6 @@ authors = ["Joris Guyonvarch"] edition = "2018" [dependencies] -gtk4 = { version = "0.3", features = ["v4_2"] } chrono = "0.4" +gtk4 = { version = "0.3", features = ["v4_2"] } +pango = "0.14" diff --git a/README.md b/README.md index c27e3f7..b6bfd91 100644 --- a/README.md +++ b/README.md @@ -4,16 +4,11 @@ nix develop --command cargo run ``` -# TODO +# Links -## Show events at specific days +- gtk4 documentation: https://gtk-rs.org/gtk4-rs/stable/latest/docs/gtk4/ -1. Modelize an event as Day + Option