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