Work through the console items in todo.md: - Lite filter toggles (#5): replace the single hasLogFilters() bool with a ConsoleLogFilterCaps struct so each backend advertises which toggles apply. Full node = daemon/errors/rpc-trace/app; lite = errors-only + app (its diagnostics ring maps to the App/Error channels; the text filter is always shown). Lite previously showed no toggles at all. - Color-coded toggles (#6): each filter checkbox is tinted with its channel's accent color (daemon=blue, errors=red, rpc=secondary, app=teal) via a new channelAccentColor() that also drives the output's left accent bar — one source of truth for channel color. - Darker terminal look (#7): drop the light glass rectangle on the input; both output and input now get a terminal-dark overlay (tabs.console.bg-darken-alpha, default 110) and the input field blends into it (transparent frame bg). - Monospace font (#8): bundle Ubuntu Mono (res/fonts/UbuntuMono-R.ttf, Ubuntu Font License — same family as the existing Ubuntu fonts) via INCBIN, load it at caption size as Type().mono(), and render console output + input in it so pretty-printed JSON columns and terminal text align. Falls back to the proportional caption font if unavailable. Full-node + lite build clean; ctest green; source hygiene clean; sandboxed startup smoke confirms the mono font loads + atlas builds without crashing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
39 lines
1.3 KiB
C++
39 lines
1.3 KiB
C++
// DragonX Wallet - Embedded font data declarations (INCBIN)
|
|
// Copyright 2024-2026 The Hush Developers
|
|
// Released under the GPLv3
|
|
//
|
|
// The actual data is emitted in generated/embedded_fonts.cpp via the
|
|
// assembler .incbin directive, so the compiler never parses 122K lines
|
|
// of hex literals.
|
|
|
|
#pragma once
|
|
#include <cstdint>
|
|
|
|
// These symbols are defined in generated/embedded_fonts.cpp (via INCBIN).
|
|
// INCBIN creates: g_<name>_data[] (const unsigned char)
|
|
// g_<name>_size (const unsigned int)
|
|
// g_<name>_end (const unsigned char*)
|
|
|
|
extern "C" {
|
|
extern const unsigned char g_ubuntu_regular_data[];
|
|
extern const unsigned int g_ubuntu_regular_size;
|
|
|
|
extern const unsigned char g_ubuntu_light_data[];
|
|
extern const unsigned int g_ubuntu_light_size;
|
|
|
|
extern const unsigned char g_ubuntu_medium_data[];
|
|
extern const unsigned int g_ubuntu_medium_size;
|
|
|
|
extern const unsigned char g_ubuntu_mono_data[];
|
|
extern const unsigned int g_ubuntu_mono_size;
|
|
|
|
extern const unsigned char g_material_icons_data[];
|
|
extern const unsigned int g_material_icons_size;
|
|
|
|
extern const unsigned char g_mdi_pickaxe_subset_data[];
|
|
extern const unsigned int g_mdi_pickaxe_subset_size;
|
|
|
|
extern const unsigned char g_noto_cjk_subset_data[];
|
|
extern const unsigned int g_noto_cjk_subset_size;
|
|
}
|