buflist: Use different color when only non-messages are unread
Some checks failed
CI / lint (push) Failing after 2m30s
CI / Build and test (, 1.73.0) (push) Successful in 5m1s
CI / Build and test (, beta) (push) Successful in 6m8s
CI / Build and test (, nightly) (push) Successful in 5m24s

This commit is contained in:
2023-11-19 18:24:26 +01:00
parent b60834ebb3
commit 30b1e4282a
6 changed files with 127 additions and 66 deletions

View File

@ -25,7 +25,7 @@ use tokio::sync::mpsc::UnboundedReceiver;
use tracing_error::ErrorLayer;
use tracing_subscriber::prelude::*;
use super::{Buffer, BufferId, BufferItem, BufferItemContent};
use super::{Buffer, BufferId, BufferItem, BufferItemContent, FullyReadStatus};
use crate::widgets::Prerender;
/// Maximum number of log lines to be stored in memory
@ -103,8 +103,8 @@ impl Buffer for LogBuffer {
Default::default()
}
fn fully_read(&self) -> bool {
fn fully_read(&self) -> FullyReadStatus {
// TODO
true
FullyReadStatus::All
}
}