use super::modes::SettingsConfigScope;
#[derive(Clone, Debug)]
pub struct SettingsPaneState {
pub scope: SettingsConfigScope,
pub left_cursor: usize,
pub right_scroll: u16,
pub layout_unlocked: bool,
pub layout_left_buf: String,
pub layout_mid_buf: String,
pub layout_right_buf: String,
pub opacity_unlocked: bool,
pub opacity_buf: String,
pub editing_path: Option<std::path::PathBuf>,
}
impl Default for SettingsPaneState {
fn default() -> Self {
Self {
scope: SettingsConfigScope::Global,
left_cursor: 0,
right_scroll: 0,
layout_unlocked: false,
layout_left_buf: String::new(),
layout_mid_buf: String::new(),
layout_right_buf: String::new(),
opacity_unlocked: false,
opacity_buf: String::new(),
editing_path: None,
}
}
}