Create more specific dock position settings associated with each panel
This commit is contained in:
parent
e507eadb4b
commit
0ccb4a50e6
4 changed files with 44 additions and 38 deletions
|
@ -95,26 +95,6 @@ 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 From<DockPosition> for settings::DockPosition {
|
||||
fn from(value: DockPosition) -> settings::DockPosition {
|
||||
match value {
|
||||
DockPosition::Left => settings::DockPosition::Left,
|
||||
DockPosition::Bottom => settings::DockPosition::Bottom,
|
||||
DockPosition::Right => settings::DockPosition::Right,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl DockPosition {
|
||||
fn to_label(&self) -> &'static str {
|
||||
match self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue