diff --git a/src/components/wallet/accounts.rs b/src/components/wallet/accounts.rs index 114b82c..9ab86b9 100644 --- a/src/components/wallet/accounts.rs +++ b/src/components/wallet/accounts.rs @@ -306,7 +306,7 @@ impl Component for Accounts { } fn register_config_handler(&mut self, config: Config) -> Result<()> { - if let Some(style) = config.styles.get(&crate::app::Mode::Explorer) { + if let Some(style) = config.styles.get(&crate::app::Mode::Wallet) { self.palette.with_normal_style(style.get("normal_style").copied()); self.palette.with_hover_style(style.get("hover_style").copied()); self.palette.with_normal_border_style(style.get("normal_border_style").copied()); diff --git a/src/components/wallet/add_account.rs b/src/components/wallet/add_account.rs index 7f2f441..948acdc 100644 --- a/src/components/wallet/add_account.rs +++ b/src/components/wallet/add_account.rs @@ -83,7 +83,7 @@ impl Component for AddAccount { } fn register_config_handler(&mut self, config: Config) -> Result<()> { - if let Some(style) = config.styles.get(&crate::app::Mode::Explorer) { + if let Some(style) = config.styles.get(&crate::app::Mode::Wallet) { self.palette.with_normal_style(style.get("normal_style").copied()); self.palette.with_normal_border_style(style.get("normal_border_style").copied()); self.palette.with_normal_title_style(style.get("normal_title_style").copied()); diff --git a/src/components/wallet/add_address_book_record.rs b/src/components/wallet/add_address_book_record.rs index c75b31d..881b7cf 100644 --- a/src/components/wallet/add_address_book_record.rs +++ b/src/components/wallet/add_address_book_record.rs @@ -128,7 +128,7 @@ impl Component for AddAddressBookRecord { } fn register_config_handler(&mut self, config: Config) -> Result<()> { - if let Some(style) = config.styles.get(&crate::app::Mode::Explorer) { + if let Some(style) = config.styles.get(&crate::app::Mode::Wallet) { self.palette.with_normal_style(style.get("normal_style").copied()); self.palette.with_normal_border_style(style.get("normal_border_style").copied()); self.palette.with_normal_title_style(style.get("normal_title_style").copied()); diff --git a/src/components/wallet/address_book.rs b/src/components/wallet/address_book.rs index 3983566..41c1d86 100644 --- a/src/components/wallet/address_book.rs +++ b/src/components/wallet/address_book.rs @@ -277,7 +277,7 @@ impl PartialComponent for AddressBook { impl Component for AddressBook { fn register_config_handler(&mut self, config: Config) -> Result<()> { - if let Some(style) = config.styles.get(&crate::app::Mode::Explorer) { + if let Some(style) = config.styles.get(&crate::app::Mode::Wallet) { self.palette.with_normal_style(style.get("normal_style").copied()); self.palette.with_hover_style(style.get("hover_style").copied()); self.palette.with_normal_border_style(style.get("normal_border_style").copied()); diff --git a/src/components/wallet/balance.rs b/src/components/wallet/balance.rs index 0bd5476..66d5a48 100644 --- a/src/components/wallet/balance.rs +++ b/src/components/wallet/balance.rs @@ -60,7 +60,7 @@ impl PartialComponent for Balance { impl Component for Balance { fn register_config_handler(&mut self, config: Config) -> Result<()> { - if let Some(style) = config.styles.get(&crate::app::Mode::Explorer) { + if let Some(style) = config.styles.get(&crate::app::Mode::Wallet) { self.palette.with_normal_style(style.get("normal_style").copied()); self.palette.with_hover_style(style.get("hover_style").copied()); self.palette.with_normal_border_style(style.get("normal_border_style").copied()); diff --git a/src/components/wallet/event_logs.rs b/src/components/wallet/event_logs.rs index 678afb9..1f14a60 100644 --- a/src/components/wallet/event_logs.rs +++ b/src/components/wallet/event_logs.rs @@ -64,7 +64,7 @@ impl PartialComponent for EventLogs { impl Component for EventLogs { fn register_config_handler(&mut self, config: Config) -> Result<()> { - if let Some(style) = config.styles.get(&crate::app::Mode::Explorer) { + if let Some(style) = config.styles.get(&crate::app::Mode::Wallet) { self.palette.with_normal_style(style.get("normal_style").copied()); self.palette.with_hover_style(style.get("hover_style").copied()); self.palette.with_normal_border_style(style.get("normal_border_style").copied()); diff --git a/src/components/wallet/mod.rs b/src/components/wallet/mod.rs index 4b2396c..c0bbb28 100644 --- a/src/components/wallet/mod.rs +++ b/src/components/wallet/mod.rs @@ -102,10 +102,8 @@ impl Component for Wallet { } fn register_config_handler(&mut self, config: Config) -> Result<()> { - if let Some(_) = config.styles.get(&crate::app::Mode::Explorer) { - for component in self.components.iter_mut() { - component.register_config_handler(config.clone())?; - } + for component in self.components.iter_mut() { + component.register_config_handler(config.clone())?; } Ok(()) } diff --git a/src/components/wallet/overview.rs b/src/components/wallet/overview.rs index 906a7e4..23cb1a4 100644 --- a/src/components/wallet/overview.rs +++ b/src/components/wallet/overview.rs @@ -56,7 +56,7 @@ impl PartialComponent for Overview { impl Component for Overview { fn register_config_handler(&mut self, config: Config) -> Result<()> { - if let Some(style) = config.styles.get(&crate::app::Mode::Explorer) { + if let Some(style) = config.styles.get(&crate::app::Mode::Wallet) { self.palette.with_normal_style(style.get("normal_style").copied()); self.palette.with_hover_style(style.get("hover_style").copied()); self.palette.with_normal_border_style(style.get("normal_border_style").copied()); diff --git a/src/components/wallet/rename_account.rs b/src/components/wallet/rename_account.rs index 1948dd7..c4cfd0c 100644 --- a/src/components/wallet/rename_account.rs +++ b/src/components/wallet/rename_account.rs @@ -86,7 +86,7 @@ impl Component for RenameAccount { } fn register_config_handler(&mut self, config: Config) -> Result<()> { - if let Some(style) = config.styles.get(&crate::app::Mode::Explorer) { + if let Some(style) = config.styles.get(&crate::app::Mode::Wallet) { self.palette.with_normal_style(style.get("normal_style").copied()); self.palette.with_normal_border_style(style.get("normal_border_style").copied()); self.palette.with_normal_title_style(style.get("normal_title_style").copied()); diff --git a/src/components/wallet/transfer.rs b/src/components/wallet/transfer.rs index 7fd834b..8629ee6 100644 --- a/src/components/wallet/transfer.rs +++ b/src/components/wallet/transfer.rs @@ -41,7 +41,7 @@ impl PartialComponent for Transfer { impl Component for Transfer { fn register_config_handler(&mut self, config: Config) -> Result<()> { - if let Some(style) = config.styles.get(&crate::app::Mode::Explorer) { + if let Some(style) = config.styles.get(&crate::app::Mode::Wallet) { self.palette.with_normal_style(style.get("normal_style").copied()); self.palette.with_hover_style(style.get("hover_style").copied()); self.palette.with_normal_border_style(style.get("normal_border_style").copied());