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:
@@ -83,6 +83,6 @@ struct TabBar: View {
|
|||||||
TabButton(timeline: .notifications, img: "notification-bell", selected: $selected, nstatus: nstatus, settings: settings, action: action).keyboardShortcut("4")
|
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))
|
self.active_sheet = .post(.posting(.none))
|
||||||
}
|
}
|
||||||
.padding(.bottom, tabHeight + getSafeAreaBottom())
|
.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