pub struct AccNetTheme {Show 22 fields
pub canvas_bg: Color32,
pub grid_color: Color32,
pub panel_bg: Color32,
pub text_primary: Color32,
pub text_secondary: Color32,
pub accent: Color32,
pub asset_color: Color32,
pub liability_color: Color32,
pub equity_color: Color32,
pub revenue_color: Color32,
pub expense_color: Color32,
pub contra_color: Color32,
pub alert_low: Color32,
pub alert_medium: Color32,
pub alert_high: Color32,
pub alert_critical: Color32,
pub flow_normal: Color32,
pub flow_suspicious: Color32,
pub flow_fraud: Color32,
pub node_radius: f32,
pub edge_width: f32,
pub panel_rounding: Rounding,
}Expand description
Color theme for the application.
Fields§
§canvas_bg: Color32Background color for the main canvas.
grid_color: Color32Grid line color.
panel_bg: Color32Panel background.
text_primary: Color32Text color.
text_secondary: Color32Secondary text color.
accent: Color32Accent color for highlights.
asset_color: Color32Asset account color.
liability_color: Color32Liability account color.
equity_color: Color32Equity account color.
revenue_color: Color32Revenue account color.
expense_color: Color32Expense account color.
contra_color: Color32Contra account color.
alert_low: Color32Low severity.
alert_medium: Color32Medium severity.
alert_high: Color32High severity.
alert_critical: Color32Critical severity.
flow_normal: Color32Normal flow.
flow_suspicious: Color32Suspicious flow.
flow_fraud: Color32Fraudulent flow.
node_radius: f32Node radius.
edge_width: f32Edge width.
panel_rounding: RoundingPanel rounding.
Implementations§
Source§impl AccNetTheme
impl AccNetTheme
Sourcepub fn account_color(&self, account_type: AccountType) -> Color32
pub fn account_color(&self, account_type: AccountType) -> Color32
Get color for account type.
Sourcepub fn edge_stroke(&self, suspicious: bool, fraud: bool) -> Stroke
pub fn edge_stroke(&self, suspicious: bool, fraud: bool) -> Stroke
Get stroke for edges.
Trait Implementations§
Source§impl Clone for AccNetTheme
impl Clone for AccNetTheme
Source§fn clone(&self) -> AccNetTheme
fn clone(&self) -> AccNetTheme
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccNetTheme
impl Debug for AccNetTheme
Auto Trait Implementations§
impl Freeze for AccNetTheme
impl RefUnwindSafe for AccNetTheme
impl Send for AccNetTheme
impl Sync for AccNetTheme
impl Unpin for AccNetTheme
impl UnwindSafe for AccNetTheme
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.