From b7b8c7f17597c117d6fbe8f18e73dc16f608386c Mon Sep 17 00:00:00 2001 From: ericholguin Date: Mon, 21 Oct 2024 19:25:40 -0600 Subject: [PATCH] ux: increase opacity of tabbar and post button This PR simply increases the opacity of the tabbar and post button. The increase in opacity makes the post button active. Closes: #2598 Closes: #2599 Changelog-Changed: Changed opacity of tabbar and post button Signed-off-by: ericholguin --- damus/Views/MainTabView.swift | 2 +- damus/Views/Timeline/PostingTimelineView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/damus/Views/MainTabView.swift b/damus/Views/MainTabView.swift index f258fa8d..5f22e952 100644 --- 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 index 0ec55cea..dc5f3d04 100644 --- 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)))) } } }