This commit is contained in:
Nathan Sobo 2023-05-09 13:28:34 -06:00
parent 8f12489937
commit 6645323f1b
6 changed files with 92 additions and 17 deletions

View file

@ -92,6 +92,16 @@ pub enum DockPosition {
Right,
}
impl From<settings::DockPosition> for DockPosition {
fn from(value: settings::DockPosition) -> Self {
match value {
settings::DockPosition::Left => Self::Left,
settings::DockPosition::Bottom => Self::Bottom,
settings::DockPosition::Right => Self::Right,
}
}
}
impl DockPosition {
fn to_resizable_side(self) -> Side {
match self {