Step 169: notification system

This commit is contained in:
Bill
2026-02-09 21:26:10 -07:00
parent 08b7d71a38
commit 454bd5eb8a
22 changed files with 637 additions and 167 deletions

View File

@@ -68,6 +68,16 @@ static void renderStatusBar(EditorState& state) {
ImGui::SameLine(0, 30);
ImGui::Text("UTF-8");
ImGui::SameLine(0, 30);
int unread = state.notifications.unreadCount();
std::string notifLabel = "Notifications";
if (unread > 0) {
notifLabel += " (" + std::to_string(unread) + ")";
}
if (ImGui::Button(notifLabel.c_str())) {
state.notifications.showHistory = !state.notifications.showHistory;
}
ImGui::PopFont();
ImGui::End();
ImGui::PopStyleVar();