Port statistics and the news tablet to the Modern UI (by Codex)

This commit is contained in:
Codex committed 2026-10-25 20:10:57 +01:00
1 parent 349c416f3a
commit a45217c362
32 files changed
+2493 -23

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
// SPDX-License-Identifier: GPL-3.0-only
// Included within App: navigation is transient and has no save authority.
Json news_view_ = {{"folder", "inbox"}, {"query", ""}, {"feedback", ""}};
std::string news_dialog_, news_return_focus_;
Json news_undo_;
uint64_t news_undo_revision_ = 0;
std::shared_ptr<const Catalog> news_world_;
const DataSource *news_source_ = nullptr;
float news_scroll_ = 0.f;
bool news_restore_scroll_ = false;
std::string render_news();
std::string render_news_widget(const Json &);
std::string render_news_feed(const Json &);
std::string render_news_art(const Json &, double size = 150);
std::string render_news_detail(const Json &);
bool dispatch_news(const std::string &, Rml::Element *);
bool news_event(Rml::Event &);
void reset_news(bool preserve_view = false);
void news_before_render();
void news_after_render();
void news_update_feed();
bool news_commit(const Json &, const std::string &, bool remember = true);