feat: complete overhaul of UI using GPUI (GPU-accelerated modern cockpit)

This commit is contained in:
bleackstorm committed 2026-11-05 20:42:14 +01:00
1 parent 886eed7825
commit be48fbdedf
29 files changed
+7422 -136

No files matched your search

+17
View File
@@ -8,6 +8,13 @@ use std::sync::Arc;
const MAX_LOG_ENTRIES: usize = 1000;
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum LogFilter {
All,
WarningsAndErrors,
ErrorsOnly,
}
#[derive(Debug, Clone)]
pub struct LogEntry {
pub timestamp: String,
@@ -48,6 +55,16 @@ impl GuiLogger {
impl Log for GuiLogger {
fn enabled(&self, metadata: &Metadata) -> bool {
let t = metadata.target();
if t.starts_with("blade_graphics")
|| t.starts_with("naga")
|| t.starts_with("zbus")
|| t.starts_with("tracing")
|| t.starts_with("calloop")
|| t.starts_with("winit")
{
return metadata.level() <= Level::Warn;
}
metadata.level() <= Level::Info
}