mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 18:51:04 +02:00
refactor: rename get_orientation
method to orientation
This commit is contained in:
parent
0cc1f79be0
commit
a55ba8c523
9 changed files with 12 additions and 14 deletions
|
@ -38,7 +38,7 @@ impl<'de> Deserialize<'de> for MonitorConfig {
|
|||
impl BarPosition {
|
||||
/// Gets the orientation the bar and widgets should use
|
||||
/// based on this position.
|
||||
pub fn get_orientation(self) -> Orientation {
|
||||
pub fn orientation(self) -> Orientation {
|
||||
if self == Self::Top || self == Self::Bottom {
|
||||
Orientation::Horizontal
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue