Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pixel Navbar, reverse engineered from smali.
Notes: - This is forcing the Pixel Home button on people, and it looks ugly with the other nav buttons being hollow - There MAY still be a few fixes yet to be found in this code because it WAS a big file to RE from smali. I have yet to find any, but time is the best tester. - Shoutout to @bigrushdog for providing a decompiled form used to verify the smali and as a guideline for the more obsure smali sections. It was a big help. - Tagging myself here to see adoption rate. @USA-RedDragon CarbonROM Edits: Strip out the different Navbar Icons. We use the AOSP ones, but add the Pixel features. Adjusted for R33s smaller navbar buttons. Fix landscape pixel animation view Cleanup pixel navbar code *cleaned up alot of leftovers from jadx and some else statements CarbonROM Edits: Strip out the different Navbar Icons. We use the AOSP ones, but add the Pixel features. fwb: Pixel Navbar: Hide opa when not pressed, also remove halo Since we use the AOSP Navbar Icon, that is transparent in the middle, we don't want the opa to always show. Instead, only show them when a press is getting executed (when they need to be shown for the animation). fadeInButton and fadeOutButton are based on this Stackoverflow answer: http://stackoverflow.com/a/22669115 Pixel navbar: allow disabling based on config Create new config_allowOpaLayout bool to allow themers to disable the Pixel Navbar Fixes the dreaded "yellow" home button...that doesn't exist for CarbonROM. Oh well, still useful! Pixel Navbar animation toggle [1/2] *made to work with the exposure for themers to disable navbar animation [1/2] Reload Pixel Home Animation without reboot @beanstown104 this shit hot fwb: Pixel Navbar: hide OPA after initialisation This fixes a certain case where the OPAs are not hidden in idle-state OpaLayout: setLandscape -> setVertical OpaLayout: fix logic behind setVertical PixelNavbar: Fixed to work with oreo PixelNavbar: Fix colors for light colored navbar OpaLayout: Evaluate intensity correctly - R.color.dark_mode_icon_color_single_tone already has reduced intensity. Calculating intensity from dark_mode_icon_color_single_tone and light_mode_icon_color_single_tone results in a much lighter shade on the home button. - Instead, evaluate color from intensity using black and white to have all icons display the same shade. Before: https://i.imgur.com/SwBjxYt.jpg After: https://i.imgur.com/tjFPEz0.jpg PixelNavbar: layout: Fix home button size - On 8.1, the home button appears larger than the other buttons in the navigation bar, with OpaLayout. - To the home button ImageView, Add top and bottom padding to fix size in portrait mode Add left and right padding to fix size in landscape mode - Also clean up while we're at it. Before: https://i.imgur.com/D1WB41o.jpg After: https://i.imgur.com/toAHDpS.jpg
- Loading branch information
Showing with 827 additions and 16 deletions.
- +6 −0 core/java/android/provider/Settings.java
- +6 −0 packages/SystemUI/res/drawable/halo.xml
- +6 −0 packages/SystemUI/res/drawable/ic_sysbar_opa_blue.xml
- +6 −0 packages/SystemUI/res/drawable/ic_sysbar_opa_green.xml
- +6 −0 packages/SystemUI/res/drawable/ic_sysbar_opa_red.xml
- +6 −0 packages/SystemUI/res/drawable/ic_sysbar_opa_yellow.xml
- +11 −16 packages/SystemUI/res/layout/home.xml
- +20 −0 packages/SystemUI/res/values/cr_config.xml
- +14 −0 packages/SystemUI/res/values/dimens.xml
- +7 −0 packages/SystemUI/res/values/styles.xml
- +9 −0 packages/SystemUI/src/com/google/android/systemui/Constants.java
- +730 −0 packages/SystemUI/src/com/google/android/systemui/OpaLayout.java
There are no files selected for viewing
Oops, something went wrong.