damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 8b969021d5e74868c6e9f9aedd36ffeb0b5aaeef
parent 1e52982a5de68f0088a4e4450660d2ec6c27899e
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 26 Oct 2024 11:33:41 -0700

Merge 'ux: increase opacity of tabbar and post button' #2608

ericholguin (1):
      ux: increase opacity of tabbar and post button

Diffstat:
Mdamus/Views/MainTabView.swift | 2+-
Mdamus/Views/Timeline/PostingTimelineView.swift | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/damus/Views/MainTabView.swift b/damus/Views/MainTabView.swift @@ -83,6 +83,6 @@ struct TabBar: View { TabButton(timeline: .notifications, img: "notification-bell", selected: $selected, nstatus: nstatus, settings: settings, action: action).keyboardShortcut("4") } } - .opacity(selected != .home || (selected == .home && !navIsAtRoot) ? 1.0 : (abs(1.25 - (abs(headerOffset/100.0))))) + .opacity(selected != .home || (selected == .home && !navIsAtRoot) ? 1.0 : 0.35 + abs(1.25 - (abs(headerOffset/100.0)))) } } diff --git a/damus/Views/Timeline/PostingTimelineView.swift b/damus/Views/Timeline/PostingTimelineView.swift @@ -119,7 +119,7 @@ struct PostingTimelineView: View { self.active_sheet = .post(.posting(.none)) } .padding(.bottom, tabHeight + getSafeAreaBottom()) - .opacity((abs(1.25 - (abs(headerOffset/100.0))))) + .opacity(0.35 + abs(1.25 - (abs(headerOffset/100.0)))) } } }