This commit is contained in:
Mars 2025-05-01 14:51:41 -04:00
parent 44c2c99468
commit 9a95178095
Signed by: pupbrained
GPG key ID: 874E22DF2F9DFCB5
6 changed files with 118 additions and 43 deletions

View file

@ -4,6 +4,7 @@
#include <ftxui/dom/node.hpp> // ftxui::{Render}
#include <ftxui/screen/color.hpp> // ftxui::Color
#include <ftxui/screen/screen.hpp> // ftxui::{Screen, Dimension::Full}
#include <print> // std::println
#include <ranges> // std::ranges::{iota, to, transform}
#include "src/config/config.hpp"
@ -151,7 +152,10 @@ namespace {
};
// System info rows
content.push_back(createRow(calendarIcon, "Date", data.date));
if (data.date)
content.push_back(createRow(calendarIcon, "Date", *data.date));
else
error_at(data.date.error());
// Weather row
if (weather.enabled && data.weather) {