From a1177a0839fad11eaca911d24d83a46a37e2960f Mon Sep 17 00:00:00 2001 From: Miraclx Date: Wed, 24 Feb 2021 23:42:12 +0100 Subject: [PATCH] gray out options toggle on crypto greying out, not hide the options toggle when crypto is selected --- src/widget/stock.rs | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/src/widget/stock.rs b/src/widget/stock.rs index a2b8319..7ff93dd 100644 --- a/src/widget/stock.rs +++ b/src/widget/stock.rs @@ -723,16 +723,20 @@ impl CachableWidget for StockWidget { THEME.background() }), ))); - } - if state.options_enabled() && loaded { right_info.push(Spans::from(Span::styled( "Options 'o'", - style().bg(if state.show_options { - THEME.highlight_unfocused() - } else { - THEME.background() - }), + style() + .bg(if state.show_options { + THEME.highlight_unfocused() + } else { + THEME.background() + }) + .fg(if state.options_enabled() { + THEME.text_normal() + } else { + THEME.gray() + }), ))); }