pub struct DebugStyle {Show 20 fields
pub banner_bg: Style,
pub title_style: Style,
pub key_styles: KeyStyles,
pub scrollbar: ScrollbarStyle,
pub label_style: Style,
pub value_style: Style,
pub dim_factor: f32,
pub accent: Color,
pub text_primary: Color,
pub text_secondary: Color,
pub bg_deep: Color,
pub bg_surface: Color,
pub bg_highlight: Color,
pub overlay_bg: Color,
pub overlay_bg_alt: Color,
pub overlay_bg_dark: Color,
pub neon_purple: Color,
pub neon_cyan: Color,
pub neon_amber: Color,
pub neon_green: Color,
}Expand description
Style configuration for debug UI.
Includes both high-level composed styles (banner, keys, scrollbar) and a color palette that can be overridden to theme the entire debug overlay.
§Example
use ratatui::style::Color;
use tui_dispatch_debug::debug::DebugStyle;
let mut style = DebugStyle::default();
style.accent = Color::Rgb(255, 0, 128);
style.neon_green = Color::Rgb(0, 200, 100);Fields§
Background style for the banner
title_style: StyleTitle style (e.g., “DEBUG” label)
key_styles: KeyStylesKey styles for different actions (toggle, state, copy, mouse)
scrollbar: ScrollbarStyleScrollbar styling for debug overlays
label_style: StyleLabel style (e.g., “resume”)
value_style: StyleValue style for status items
dim_factor: f32Dim factor for background (0.0-1.0)
accent: ColorAccent color used for titles, headers, and highlights
text_primary: ColorPrimary text color
text_secondary: ColorSecondary/muted text color
bg_deep: ColorDeep background color
bg_surface: ColorSurface background color
bg_highlight: ColorHighlight background (selected items)
overlay_bg: ColorOverlay background
overlay_bg_alt: ColorAlternate overlay background (for striped rows)
overlay_bg_dark: ColorDarker overlay background (headers, footers)
neon_purple: ColorPurple accent for types, keywords, section headers
neon_cyan: ColorCyan accent for type names, links
neon_amber: ColorAmber accent for keys, field names
neon_green: ColorGreen accent for strings, IDs
Implementations§
Source§impl DebugStyle
impl DebugStyle
pub const fn neon_purple() -> Color
use the neon_purple field on a DebugStyle instance
pub const fn neon_cyan() -> Color
use the neon_cyan field on a DebugStyle instance
pub const fn neon_amber() -> Color
use the neon_amber field on a DebugStyle instance
pub const fn neon_green() -> Color
use the neon_green field on a DebugStyle instance
pub const fn accent() -> Color
use the accent field on a DebugStyle instance
pub const fn bg_deep() -> Color
use the bg_deep field on a DebugStyle instance
Sourcepub const fn bg_panel() -> Color
pub const fn bg_panel() -> Color
Returns the panel background color (not exposed as instance field).
pub const fn bg_surface() -> Color
use the bg_surface field on a DebugStyle instance
pub const fn bg_highlight() -> Color
use the bg_highlight field on a DebugStyle instance
pub const fn overlay_bg() -> Color
use the overlay_bg field on a DebugStyle instance
pub const fn overlay_bg_alt() -> Color
use the overlay_bg_alt field on a DebugStyle instance
pub const fn overlay_bg_dark() -> Color
use the overlay_bg_dark field on a DebugStyle instance
pub const fn text_primary() -> Color
use the text_primary field on a DebugStyle instance
pub const fn text_secondary() -> Color
use the text_secondary field on a DebugStyle instance
Trait Implementations§
Source§impl Clone for DebugStyle
impl Clone for DebugStyle
Source§fn clone(&self) -> DebugStyle
fn clone(&self) -> DebugStyle
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DebugStyle
impl Debug for DebugStyle
Source§impl Default for DebugStyle
impl Default for DebugStyle
Source§fn default() -> DebugStyle
fn default() -> DebugStyle
Auto Trait Implementations§
impl Freeze for DebugStyle
impl RefUnwindSafe for DebugStyle
impl Send for DebugStyle
impl Sync for DebugStyle
impl Unpin for DebugStyle
impl UnsafeUnpin for DebugStyle
impl UnwindSafe for DebugStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more