aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/assets/prost/api.action.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2026-04-28 17:14:59 +0200
committerGitHub <noreply@github.com>2026-04-28 17:14:59 +0200
commit227142dd567ee72bcc137c116bc1ce2b818975e7 (patch)
tree8958a994dddb80bf20ce1e6bf2694687736b0b19 /zellij-utils/assets/prost/api.action.rs
parentupgrade rustls-webpki (#5106) (diff)
downloadsl0ppij-227142dd567ee72bcc137c116bc1ce2b818975e7.tar.gz
sl0ppij-227142dd567ee72bcc137c116bc1ce2b818975e7.tar.xz
sl0ppij-227142dd567ee72bcc137c116bc1ce2b818975e7.zip
Support CSI2031 (dark/light theme switching) + remove STDIN cache to avoid stale color queries (#5105)
* initial phase 1 implementation * various fies * some fixes * fix fragmented stdin cases * some fixes * renaming * guard against old clients * implement csi 2031 * allow toggling theme with actions * rustfmt * fix: finalize trailing characters in ansi parser as well * add pr
Diffstat (limited to 'zellij-utils/assets/prost/api.action.rs')
-rw-r--r--zellij-utils/assets/prost/api.action.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/zellij-utils/assets/prost/api.action.rs b/zellij-utils/assets/prost/api.action.rs
index 267b900c..17bdc9c0 100644
--- a/zellij-utils/assets/prost/api.action.rs
+++ b/zellij-utils/assets/prost/api.action.rs
@@ -1117,6 +1117,9 @@ pub enum ActionName {
ShowFloatingPanes = 98,
HideFloatingPanes = 99,
AreFloatingPanesVisible = 100,
+ SetDarkTheme = 101,
+ SetLightTheme = 102,
+ ToggleTheme = 103,
}
impl ActionName {
/// String value of the enum field names used in the ProtoBuf definition.
@@ -1223,6 +1226,9 @@ impl ActionName {
ActionName::ShowFloatingPanes => "ShowFloatingPanes",
ActionName::HideFloatingPanes => "HideFloatingPanes",
ActionName::AreFloatingPanesVisible => "AreFloatingPanesVisible",
+ ActionName::SetDarkTheme => "SetDarkTheme",
+ ActionName::SetLightTheme => "SetLightTheme",
+ ActionName::ToggleTheme => "ToggleTheme",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -1326,6 +1332,9 @@ impl ActionName {
"ShowFloatingPanes" => Some(Self::ShowFloatingPanes),
"HideFloatingPanes" => Some(Self::HideFloatingPanes),
"AreFloatingPanesVisible" => Some(Self::AreFloatingPanesVisible),
+ "SetDarkTheme" => Some(Self::SetDarkTheme),
+ "SetLightTheme" => Some(Self::SetLightTheme),
+ "ToggleTheme" => Some(Self::ToggleTheme),
_ => None,
}
}