Skip to main content

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

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