Skip to content

Commit

Permalink
Merge pull request #101 from jacekpoz/typos
Browse files Browse the repository at this point in the history
fix Fith typo
  • Loading branch information
gabm authored Jul 14, 2024
2 parents 5a7e0c1 + 188eee4 commit 2bd25b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ui/toolbars.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ pub enum ColorButtons {
Second = 1,
Third = 2,
Fourth = 3,
Fith = 4,
Fifth = 4,
Custom = 5,
}

Expand Down Expand Up @@ -295,7 +295,7 @@ impl StyleToolbar {
ColorButtons::Second => config.color_palette().second(),
ColorButtons::Third => config.color_palette().third(),
ColorButtons::Fourth => config.color_palette().fourth(),
ColorButtons::Fith => config.color_palette().fifth(),
ColorButtons::Fifth => config.color_palette().fifth(),
ColorButtons::Custom => self.custom_color,
}
}
Expand Down Expand Up @@ -358,7 +358,7 @@ impl Component for StyleToolbar {

create_icon(APP_CONFIG.read().color_palette().fifth()),

ActionablePlus::set_action::<ColorAction>: ColorButtons::Fith,
ActionablePlus::set_action::<ColorAction>: ColorButtons::Fifth,
},
gtk::Separator {},
gtk::ToggleButton {
Expand Down Expand Up @@ -530,7 +530,7 @@ impl FromVariant for ColorButtons {
1 => Some(ColorButtons::Second),
2 => Some(ColorButtons::Third),
3 => Some(ColorButtons::Fourth),
4 => Some(ColorButtons::Fith),
4 => Some(ColorButtons::Fifth),
5 => Some(ColorButtons::Custom),
_ => None,
})
Expand Down

0 comments on commit 2bd25b2

Please sign in to comment.