| 1 | use serderust-analyzer cargo serde 1.0.228 crate/::{Deserializerust-analyzer cargo serde_core 1.0.228 de/Deserialize#, Serializerust-analyzer cargo serde_core 1.0.228 ser/Serialize#}; |
| 2 | |
| 3 | use superrust-analyzer cargo bottom 0.14.9 options/config/style/::{ColourStrrust-analyzer cargo bottom 0.14.9 options/config/style/ColourStr#, TextStyleConfigrust-analyzer cargo bottom 0.14.9 options/config/style/TextStyleConfig#, bordersrust-analyzer cargo bottom 0.14.9 options/config/style/borders/::WidgetBorderTyperust-analyzer cargo bottom 0.14.9 options/config/style/borders/WidgetBorderType#}; |
| 4 | |
| 5 | /// General styling for generic widgets. |
| 6 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Deserializerust-analyzer cargo serde_derive 1.0.228 Deserialize:, Serializerust-analyzer cargo serde_derive 1.0.228 Serialize:)] |
| 7 | #[cfg_attr(feature = "generate_schema", derive(schemars::JsonSchema))] |
| 8 | #[cfg_attr(test, serde(deny_unknown_fields), derive(PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:, Eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/Eq:))] |
| 9 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) struct WidgetStylerust-analyzer cargo bottom 0.14.9 options/config/style/widgets/WidgetStyle# { |
| 10 | /// The colour of the widgets' borders. |
| 11 | #[serderust-analyzer cargo serde_derive 1.0.228 serde:(alias = "border_color")] |
| 12 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) border_colourrust-analyzer cargo bottom 0.14.9 options/config/style/widgets/WidgetStyle#border_colour.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<ColourStrrust-analyzer cargo bottom 0.14.9 options/config/style/ColourStr#>, |
| 13 | |
| 14 | /// The colour of a widget's borders when the widget is selected. |
| 15 | #[serderust-analyzer cargo serde_derive 1.0.228 serde:(alias = "selected_border_color")] |
| 16 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) selected_border_colourrust-analyzer cargo bottom 0.14.9 options/config/style/widgets/WidgetStyle#selected_border_colour.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<ColourStrrust-analyzer cargo bottom 0.14.9 options/config/style/ColourStr#>, |
| 17 | |
| 18 | /// Text styling for a widget's title. |
| 19 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) widget_titlerust-analyzer cargo bottom 0.14.9 options/config/style/widgets/WidgetStyle#widget_title.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<TextStyleConfigrust-analyzer cargo bottom 0.14.9 options/config/style/TextStyleConfig#>, |
| 20 | |
| 21 | /// Text styling for text in general. |
| 22 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) textrust-analyzer cargo bottom 0.14.9 options/config/style/widgets/WidgetStyle#text.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<TextStyleConfigrust-analyzer cargo bottom 0.14.9 options/config/style/TextStyleConfig#>, |
| 23 | |
| 24 | /// Text styling for text when representing something that is selected. |
| 25 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) selected_textrust-analyzer cargo bottom 0.14.9 options/config/style/widgets/WidgetStyle#selected_text.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<TextStyleConfigrust-analyzer cargo bottom 0.14.9 options/config/style/TextStyleConfig#>, |
| 26 | |
| 27 | /// Text styling for text when representing something that is disabled. |
| 28 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) disabled_textrust-analyzer cargo bottom 0.14.9 options/config/style/widgets/WidgetStyle#disabled_text.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<TextStyleConfigrust-analyzer cargo bottom 0.14.9 options/config/style/TextStyleConfig#>, |
| 29 | |
| 30 | /// Text styling for text when representing process threads. Only usable |
| 31 | /// on Linux at the moment. |
| 32 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) thread_textrust-analyzer cargo bottom 0.14.9 options/config/style/widgets/WidgetStyle#thread_text.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<TextStyleConfigrust-analyzer cargo bottom 0.14.9 options/config/style/TextStyleConfig#>, |
| 33 | |
| 34 | /// Widget borders type. |
| 35 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) widget_border_typerust-analyzer cargo bottom 0.14.9 options/config/style/widgets/WidgetStyle#widget_border_type.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<WidgetBorderTyperust-analyzer cargo bottom 0.14.9 options/config/style/borders/WidgetBorderType#>, |
| 36 | |
| 37 | /// Background colour for widgets. |
| 38 | #[serderust-analyzer cargo serde_derive 1.0.228 serde:(alias = "bg_color")] |
| 39 | pub(craterust-analyzer cargo bottom 0.14.9 crate/) bg_colourrust-analyzer cargo bottom 0.14.9 options/config/style/widgets/WidgetStyle#bg_colour.: Optionrust-analyzer cargo core https://github.com/rust-lang/rust/library/core option/Option#<ColourStrrust-analyzer cargo bottom 0.14.9 options/config/style/ColourStr#>, |
| 40 | } |