mirror of
https://github.com/bleackstorm/SteamFrame-FPV-Control-Center.git
synced 2026-12-03 07:31:57 +01:00
feat: complete overhaul of UI using GPUI (GPU-accelerated modern cockpit)
This commit is contained in:
1 parent
886eed7825
commit
be48fbdedf
29 files changed
+7422
-136
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user