From 188eee4aec802714bf5bea3ed4c30df2ea03f4ff Mon Sep 17 00:00:00 2001 From: jacekpoz Date: Sun, 14 Jul 2024 10:32:55 +0200 Subject: [PATCH] fix Fith typo --- src/ui/toolbars.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/toolbars.rs b/src/ui/toolbars.rs index 2d22e72..3ba40d0 100644 --- a/src/ui/toolbars.rs +++ b/src/ui/toolbars.rs @@ -244,7 +244,7 @@ pub enum ColorButtons { Second = 1, Third = 2, Fourth = 3, - Fith = 4, + Fifth = 4, Custom = 5, } @@ -287,7 +287,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, } } @@ -350,7 +350,7 @@ impl Component for StyleToolbar { create_icon(APP_CONFIG.read().color_palette().fifth()), - ActionablePlus::set_action::: ColorButtons::Fith, + ActionablePlus::set_action::: ColorButtons::Fifth, }, gtk::Separator {}, gtk::ToggleButton { @@ -522,7 +522,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, })