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:
ericholguin
2024-10-21 19:25:40 -06:00
parent d9f2317728
commit b7b8c7f175
2 changed files with 2 additions and 2 deletions

View File

@@ -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))))
}
}

View File

@@ -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))))
}
}
}