-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove code for supporting older systems #4977
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reviewed all of the code changes. I pulled the PR, built IINA and tested under macOS Ventura and macOS Catalina.
Changes look good to me.
We should hold off doing more refactoring until we have merged more of the outstanding PRs to avoid merge conflicts.
@@ -1127,11 +1125,11 @@ | |||
<point key="canvasLocation" x="14" y="-292"/> | |||
</customView> | |||
<customView id="1fz-oP-RhZ" userLabel="Prefs > UI > PIP"> | |||
<rect key="frame" x="0.0" y="0.0" width="480" height="124"/> | |||
<rect key="frame" x="0.0" y="-14" width="480" height="138"/> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess Xcode makes odd changes like setting y
to negative values due to constraints not being quite right? We have quite a few problems in the XIBs that should be fixed at some point.
mainView.layer?.backgroundColor = CGColor(gray: 0.1, alpha: 1) | ||
visualEffectView.material = .ultraDark | ||
window.appearance = NSAppearance(iinaTheme: theme) | ||
if #available(macOS 10.16, *) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recall something about needing to retain #available referencing 10.16 instead of 11 due to the need to support old SDKs. We might want to consider cutting off support for older Xcode versions, updating this, and allow use of the latest Swift features. But first we should merge a lot of the outstanding PRs before doing refactoring that can introduce merge conflicts.
I may need to pull my approval. Hang on… |
I confirmed what I found is a regresison in |
Description:
Remove code previously used for 10.11 - 10.14 systems. The major ones include a lot of colors, appearance, PIP and touchbar support.