Skip to main content

zellij_utils/opt/rustwide/workdir/assets/prost/
api.style.rs

1#[allow(clippy::derive_partial_eq_without_eq)]
2#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct Style {
4    #[deprecated]
5    #[prost(message, optional, tag="1")]
6    pub palette: ::core::option::Option<Palette>,
7    #[prost(bool, tag="2")]
8    pub rounded_corners: bool,
9    #[prost(bool, tag="3")]
10    pub hide_session_name: bool,
11    #[prost(message, optional, tag="4")]
12    pub styling: ::core::option::Option<Styling>,
13}
14#[allow(clippy::derive_partial_eq_without_eq)]
15#[derive(Clone, PartialEq, ::prost::Message)]
16pub struct Palette {
17    #[prost(enumeration="ThemeHue", tag="1")]
18    pub theme_hue: i32,
19    #[prost(message, optional, tag="2")]
20    pub fg: ::core::option::Option<Color>,
21    #[prost(message, optional, tag="3")]
22    pub bg: ::core::option::Option<Color>,
23    #[prost(message, optional, tag="4")]
24    pub black: ::core::option::Option<Color>,
25    #[prost(message, optional, tag="5")]
26    pub red: ::core::option::Option<Color>,
27    #[prost(message, optional, tag="6")]
28    pub green: ::core::option::Option<Color>,
29    #[prost(message, optional, tag="7")]
30    pub yellow: ::core::option::Option<Color>,
31    #[prost(message, optional, tag="8")]
32    pub blue: ::core::option::Option<Color>,
33    #[prost(message, optional, tag="9")]
34    pub magenta: ::core::option::Option<Color>,
35    #[prost(message, optional, tag="10")]
36    pub cyan: ::core::option::Option<Color>,
37    #[prost(message, optional, tag="11")]
38    pub white: ::core::option::Option<Color>,
39    #[prost(message, optional, tag="12")]
40    pub orange: ::core::option::Option<Color>,
41    #[prost(message, optional, tag="13")]
42    pub gray: ::core::option::Option<Color>,
43    #[prost(message, optional, tag="14")]
44    pub purple: ::core::option::Option<Color>,
45    #[prost(message, optional, tag="15")]
46    pub gold: ::core::option::Option<Color>,
47    #[prost(message, optional, tag="16")]
48    pub silver: ::core::option::Option<Color>,
49    #[prost(message, optional, tag="17")]
50    pub pink: ::core::option::Option<Color>,
51    #[prost(message, optional, tag="18")]
52    pub brown: ::core::option::Option<Color>,
53}
54#[allow(clippy::derive_partial_eq_without_eq)]
55#[derive(Clone, PartialEq, ::prost::Message)]
56pub struct Color {
57    #[prost(enumeration="ColorType", tag="1")]
58    pub color_type: i32,
59    #[prost(oneof="color::Payload", tags="2, 3")]
60    pub payload: ::core::option::Option<color::Payload>,
61}
62/// Nested message and enum types in `Color`.
63pub mod color {
64    #[allow(clippy::derive_partial_eq_without_eq)]
65#[derive(Clone, PartialEq, ::prost::Oneof)]
66    pub enum Payload {
67        #[prost(message, tag="2")]
68        RgbColorPayload(super::RgbColorPayload),
69        #[prost(uint32, tag="3")]
70        EightBitColorPayload(u32),
71    }
72}
73#[allow(clippy::derive_partial_eq_without_eq)]
74#[derive(Clone, PartialEq, ::prost::Message)]
75pub struct RgbColorPayload {
76    #[prost(uint32, tag="1")]
77    pub red: u32,
78    #[prost(uint32, tag="2")]
79    pub green: u32,
80    #[prost(uint32, tag="3")]
81    pub blue: u32,
82}
83#[allow(clippy::derive_partial_eq_without_eq)]
84#[derive(Clone, PartialEq, ::prost::Message)]
85pub struct Styling {
86    #[prost(message, repeated, tag="1")]
87    pub text_unselected: ::prost::alloc::vec::Vec<Color>,
88    #[prost(message, repeated, tag="2")]
89    pub text_selected: ::prost::alloc::vec::Vec<Color>,
90    #[prost(message, repeated, tag="3")]
91    pub ribbon_unselected: ::prost::alloc::vec::Vec<Color>,
92    #[prost(message, repeated, tag="4")]
93    pub ribbon_selected: ::prost::alloc::vec::Vec<Color>,
94    #[prost(message, repeated, tag="5")]
95    pub table_title: ::prost::alloc::vec::Vec<Color>,
96    #[prost(message, repeated, tag="6")]
97    pub table_cell_unselected: ::prost::alloc::vec::Vec<Color>,
98    #[prost(message, repeated, tag="7")]
99    pub table_cell_selected: ::prost::alloc::vec::Vec<Color>,
100    #[prost(message, repeated, tag="8")]
101    pub list_unselected: ::prost::alloc::vec::Vec<Color>,
102    #[prost(message, repeated, tag="9")]
103    pub list_selected: ::prost::alloc::vec::Vec<Color>,
104    #[prost(message, repeated, tag="10")]
105    pub frame_unselected: ::prost::alloc::vec::Vec<Color>,
106    #[prost(message, repeated, tag="11")]
107    pub frame_selected: ::prost::alloc::vec::Vec<Color>,
108    #[prost(message, repeated, tag="12")]
109    pub frame_highlight: ::prost::alloc::vec::Vec<Color>,
110    #[prost(message, repeated, tag="13")]
111    pub exit_code_success: ::prost::alloc::vec::Vec<Color>,
112    #[prost(message, repeated, tag="14")]
113    pub exit_code_error: ::prost::alloc::vec::Vec<Color>,
114    #[prost(message, repeated, tag="15")]
115    pub multiplayer_user_colors: ::prost::alloc::vec::Vec<Color>,
116}
117#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
118#[repr(i32)]
119pub enum ColorType {
120    Rgb = 0,
121    EightBit = 1,
122}
123impl ColorType {
124    /// String value of the enum field names used in the ProtoBuf definition.
125    ///
126    /// The values are not transformed in any way and thus are considered stable
127    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
128    pub fn as_str_name(&self) -> &'static str {
129        match self {
130            ColorType::Rgb => "Rgb",
131            ColorType::EightBit => "EightBit",
132        }
133    }
134    /// Creates an enum from field names used in the ProtoBuf definition.
135    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
136        match value {
137            "Rgb" => Some(Self::Rgb),
138            "EightBit" => Some(Self::EightBit),
139            _ => None,
140        }
141    }
142}
143#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
144#[repr(i32)]
145pub enum ThemeHue {
146    Dark = 0,
147    Light = 1,
148}
149impl ThemeHue {
150    /// String value of the enum field names used in the ProtoBuf definition.
151    ///
152    /// The values are not transformed in any way and thus are considered stable
153    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
154    pub fn as_str_name(&self) -> &'static str {
155        match self {
156            ThemeHue::Dark => "Dark",
157            ThemeHue::Light => "Light",
158        }
159    }
160    /// Creates an enum from field names used in the ProtoBuf definition.
161    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
162        match value {
163            "Dark" => Some(Self::Dark),
164            "Light" => Some(Self::Light),
165            _ => None,
166        }
167    }
168}