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 <ericholguin@apache.org>
This commit is contained in:
@@ -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))))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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))))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user