Commit Graph
19 Commits
Author SHA1 Message Date
Eilionoir Tunnicliff 0f89fdc0e2 Readd hidden sidebar option and fix issue with portrait mode on compact iPhones 2023-03-05 16:08:05 -05:00
Eilionoir Tunnicliff 8c90010b61 An actual workaround for the UI initialization bug without forcing the iPad UI
Basically consists of pushing the LauncherNewsViewController from LauncherNavigationController when the app first starts up, and setting the navigation bar items from the LNVC class. This commit also moves the account button to the right of the bar, removes the profile name outside of the list view, and does not appear on the Settings view. Removes the hidden sidebar option in favor of always hidden. Moves PID to the bottom of the General section footer. Tested on my iPad Pro (12.9-inch, 2nd generation), iPhone 14 Pro Max, iPhone 6s Plus, and iPhone SE (1st generation) over a grueling week of staring at code and banging my head against a wall. I'm going to bed now.
2023-03-05 00:23:31 -05:00
khanhduytran0 43f122ad72 Revert "Take 3 billion on fixing the UI init bug temporarily"
This reverts commit 4b23d34254.
2023-02-14 06:16:49 +07:00
Eilionoir Tunnicliff 4b23d34254 Take 3 billion on fixing the UI init bug temporarily
hidden sidebar no longer does anything, don't revert this because it's
the only thing we can currently use that works on iPhone, iPad and
iPod. breaks Apple TV but that doesn't matter atm
2023-02-13 17:55:05 -05:00
khanhduytran0 03cb93245f Workaround(iPhone, UI): set default ipados_ui to true
This workaround fixes 2 issues:
* Pointer lock does not work for some reason
* iPhones running iOS 15+ do not initialize UI
2023-02-09 21:59:49 +07:00
khanhduytran0 bc084c8112 Revert "Temporary fix for UI initialization bug"
This reverts commit 256cd3846d.
2023-02-09 20:05:45 +07:00
Eilionoir Tunnicliff 256cd3846d Temporary fix for UI initialization bug
Using the iOS 14.0+ API for UISplitViewControllers broke init on those systems. Needs more investigation, to be done on another branch to prevent mainline breakage.
2023-02-09 00:14:03 -05:00
Duy Tran Khanh 8577636a4e Fix: user interaction issue on iOS below 14
The following changes apply for iOS 13.7 and below.
* Actually, a fake toolbar view is added on top of the real one, in
order for subviews (the version picker and the play button) to receive
user interaction properly
* Tweaked Split behavior to fix another dead-locked sidebar issue
* The toggle of hiding sidebar is now available
2023-01-19 20:45:34 +07:00
Duy Tran Khanh ab597ba745 Fix: unset jna-5.8 SHA1 leading to verify failure
Fix: proper split display mode when autohide enabled
2023-01-05 22:07:50 +07:00
Duy Tran Khanh de66a9720b Fix flipped hidden_sidebar condition
why @crystall1nedev :woe:
2022-12-20 18:26:40 +07:00
Eilionoir Tunnicliff fe38eacf9d Port hidden sidebar stuffs from 2.1.1 branch
As well as add a new preference to enable hiding by default and when rotating for iOS 14 and newer.
2022-12-18 18:10:29 -05:00
Eilionoir Tunnicliff 37b479bbe1 Fix warnings, drop 1GB devices 2022-12-18 13:40:51 -05:00
khanhduytran0 78b788262c Move LoginViewController to parts
- The account selector now has Add Account item
- Last selected account is kept
- Account token refreshment is done on startup and on select if need
- Moved JIT status to LauncherMenuViewController's toolbar
- Primary View Controller is now LauncherSplitViewController
- More unmentioned(?), see diff.
2022-12-04 11:41:54 +07:00
Duy Tran Khanh 1af09ca02d Tweak NSLocalizedString; Keep split display mode
Tweak NSLocalizedString to return English if not yet localized.
Keep Split display mode between rotations.
New debug option: skip JIT wait, for #423
2022-11-17 21:46:38 +07:00
Duy Tran Khanh 0a88ed672b Tweak SplitViewController for vertical iPhone
In vertical orientation, the primary view controller is set to overlay
mode.
2022-11-17 11:07:05 +07:00
Duy Tran Khanh c616cb152f Moved toolbar code, added WIP News tab 2022-09-25 11:13:59 +07:00
Duy Tran Khanh b806c5df3c Many changes and fixes
Changes:
- Decreased multithreaded download max threads to 10
- Moved launcher buttons to match Android UI
- Moved UIKit hooking code to separate file
- The Launcher tab is now marked as under construction.
- Updated README.md to avoid confusion between self-JIT and auto-JIT.

New settings section: UI debugging
- Unlock iPadOS UI: allow iPhone users to unlock every iPadOS-only
features (floating keyboard, popover alert, sheet-styled view
controllers, etc.)
- Show layout bounds, like the one in Android's developer setting
- Show layout overlapping

Fixes:
- App container data is not shown in the Files app due to
`no-container` entitlement, replaced it with `no-sandbox`.
- Ignore jinput-platform libraries to avoid download error
- Multithreaded assets download breaks
- `Send your logs` crashes on iPadOS
2022-09-22 09:52:56 +07:00
Duy Tran Khanh 292fb8166f Custom controls: safe area is now customizable
Other changes:
- Cleanup unused functions
- Internal changes to access ViewController globally
- Moved ControlLayout to a separate file
2022-08-03 12:23:27 +07:00
Duy Tran Khanh d8459effc0 WIP: New User interface
UISplitViewController is being used to create split menu.
Currently, autolayout is not yet done.
Added account switcher to the split view.

Fixes:
- auth_session parameter for legacy Minecraft versions
- Updating self.view background color is now automated by
UIColor.systemBackgroundColor
2022-07-22 08:02:40 +07:00