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

ericholguin (1):
      ux: increase opacity of tabbar and post button
This commit is contained in:
William Casarin
2024-10-26 11:33:41 -07:00
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))))
}
}
}