From 62c539afbf02edf86196fa2be246be2f8f1d8207 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Fri, 23 Jun 2023 10:12:37 +0200 Subject: [PATCH] nozaps: never show orange button --- damus/Components/ZapButton.swift | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/damus/Components/ZapButton.swift b/damus/Components/ZapButton.swift index 753f17a7..14078760 100644 --- a/damus/Components/ZapButton.swift +++ b/damus/Components/ZapButton.swift @@ -39,6 +39,10 @@ struct ZapButton: View { } var zap_img: String { + if damus_state.settings.nozaps { + return "zap" + } + switch our_zap { case .none: return "zap" @@ -50,19 +54,16 @@ struct ZapButton: View { } var zap_color: Color { + if damus_state.settings.nozaps { + return Color.gray + } + if our_zap == nil { return Color.gray } // always orange ! return Color.orange - /* - if our_zap.is_paid { - return Color.orange - } else { - return Color.yellow - } - */ } func tap() {