Skip to main content

codetether_agent/tui/ui/webview/
layout_mode.rs

1/// Chat layout mode: Classic (default) or Webview (IDE-style).
2#[derive(Debug, Clone, Copy, PartialEq, Eq, Default)]
3pub enum ChatLayoutMode {
4    #[default]
5    Classic,
6    Webview,
7}
8
9impl ChatLayoutMode {
10    pub fn toggle(self) -> Self {
11        match self {
12            Self::Classic => Self::Webview,
13            Self::Webview => Self::Classic,
14        }
15    }
16}