Debian Codegraph @

src/options/config/style/cpu.rs

raw symbols SCIP
1 use serde::{Deserialize, Serialize};
2
3 use super::ColourStr;
4
5 /// Styling specific to the CPU widget.
6 #[derive(Clone, Debug, Default, Deserialize, Serialize)]
7 #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))]
8 #[cfg_attr(test, serde(deny_unknown_fields), derive(PartialEq, Eq))]
9 pub(crate) struct CpuStyle {
10 /// The colour of the "All" CPU label.
11 #[serde(alias = "all_entry_color")]
12 pub(crate) all_entry_colour: Option<ColourStr>,
13
14 /// The colour of the average CPU label and graph line.
15 #[serde(alias = "avg_entry_color")]
16 pub(crate) avg_entry_colour: Option<ColourStr>,
17
18 /// Colour of each CPU threads' label and graph line. Read in order.
19 #[serde(alias = "cpu_core_colors")]
20 pub(crate) cpu_core_colours: Option<Vec<ColourStr>>,
21 }