20 Commits

Author SHA1 Message Date
Bruno Martins
ba1c3db829 lemonadep: overlay: Align brightness configs with stock
Change-Id: Id299ad9f3613b821318eb6e9986a3450db023682
2021-06-06 11:00:59 +02:00
LuK1337
87a8f755a5 lemonadep: overlay: Set mask size for proper rounded corner curves
Change-Id: I8c83c30762025d1ff8091ce75bf4d3784c5a6f76
2021-06-04 12:04:40 +02:00
Bruno Martins
e27a97442e lemonadep: Tweak keyguard indication bottom margin
Not perfect, but it's a good compromise to keep the text below
the FOD icon without actually appear behind it.

Change-Id: I96df93d87865a0e05f4b8fe894659087b5496ace
2021-06-02 23:55:32 +02:00
Bruno Martins
8947388735 lemonadep: overlay: Import stock power profile
Change-Id: Iaf3d246b83db150112a183e29bb87989d0a3a437
2021-06-01 15:59:11 +01:00
LuK1337
9fb5a66b4b lemonadep: overlay: Replace display cutout overlay with self made one
It appears that OnePlus is not using AOSP resources for display cutout.
Instead they are drawing it manually thus I used their x, y and radius
to prepare my own vector path:
  <dimen name="op_draw_cutout_circle_r">43.0px</dimen>
  <dimen name="op_draw_cutout_circle_x">155.0px</dimen>
  <dimen name="op_draw_cutout_circle_y">83.0px</dimen>

Change-Id: Ia061229717cd84277d792269aa1985ded07d1ae3
2021-06-01 15:59:11 +01:00
Bruno Martins
977f347ce7 lemonadep: Initial device tree conversion
Change-Id: I943e61b56a9e42b228dbed3872037ed84f933d48
2021-06-01 01:22:12 +02:00
LuK1337
88932432e6 instantnoodlep: Set default Settings.Global.DEVICE_NAME according to OOS
OxygenOS uses ro.display.series for default device name.

Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16
2021-05-21 15:44:35 +02:00
Andrew Fluck
364cfca344 instantnoodlep: Add cutout approximation + set status bar padding start to 0px
[LuK1337]: Modified vector path so that its height matches regular
           cutout path + converted it from relative to absolute.

Change-Id: I792a85826041c7debf7f70e65318855c0cce65fe
2021-04-29 17:28:32 +02:00
LuK1337
116c280205 instantnoodlep: overlay: Set config_screenBrightnessSettingMaximumFloat=1.0
When config_screenBrightnessSettingMaximumFloat is unset
we are falling back to legacy (0-255 int) configuration.

Change-Id: Iecb9ad8fcc25178160e2114dd40337f59af3cf66
2021-04-06 11:26:47 +02:00
LuK1337
35e9463221 instantnoodlep: Update power profile config
* Apparently we should be using one extracted from /odm overlays
  rather than /vendor ones.

Change-Id: Id2f8858f3c6779623875f5419daf146102d46d1f
2021-03-07 11:08:07 +01:00
LuK1337
c562e9f7da instantnoodlep: Set matching status bar padding for landscape mode
Change-Id: I5ad572fb8452c9f8db213adbfc9c1022e6755d56
2021-02-12 10:39:20 +01:00
LuK1337
1e7ad0f70c instantnoodlep: Relocate fwb dimens to dimens.xml
* Also unset status_bar_height_landscape while at it.

Change-Id: I2d030b46d94482878aa260e2edfd3a6a07c641ac
2021-02-11 21:48:26 +01:00
LuK1337
ad5c96a66f instantnoodlep: Use config_roundedCornerMultipleRadius
* Because of config_roundedCornerMultipleRadius being set to
  obnoxiously high value we end up having too high corner
  border radius for Android recents.
* Also we still need to set rounded_corner_radius to something
  other than 0 so that we'll have our rounded border drawables
  applied. I guess that 8dp is a fair value for that.

Change-Id: Ib39ac6c4aaf6c00c247b2945e4f0a71ab0789df5
2021-02-06 16:22:27 +01:00
LuK1337
aea57606ea instantnoodlep: Import rounded corners config from OOS
* Set rounded_corner_radius instead of _top + _bottom
  as they are exactly the same.
* Overlay rounded.xml with _top drawable as _bottom one
  is the pretty much the same as _top after manually
  rotating it by 90 degrees.

Change-Id: I89ce857d15804f9a9361ff3825a9426a9382c578
2021-02-06 11:04:36 +01:00
ultranoob-5
ced25a6b00 instantnoodlep: Pull auto-brightness values from OOS
Change-Id: If174ffcbdbe3f2d11955763965a2eccc2c8a46d8
2021-02-03 12:03:24 +01:00
Giuseppe Barillari
bf60d86bc1 instantnoodlep: Avoid aliasing in display cutout
Change-Id: I24e5c4e385b38352a9aabeaa4d5d5666469570cb
2021-02-02 14:55:46 +01:00
LuK1337
a9ea1ade22 instantnoodlep: overlay: Import display white balance config from OOS
Change-Id: I94ce623e57ff16687281b228e6e09ce2d12ce3e8
2021-02-02 11:15:27 +01:00
LuK1337
0df1febb68 instantnoodlep: Pull config_mainBuiltInDisplayCutout from OOS
Change-Id: Ia2720956065137696c1a8a935f554080cd7e2c72
2021-01-31 16:51:07 +01:00
LuK1337
4dbaefed27 instantnoodlep: overlay: Update cutout/padding related overlays
Change-Id: I5c74d72e388043c68c58bb3b835fad3db9fa814a
2020-11-21 23:33:59 +01:00
LuK1337
a443131d82 instantnoodlep: Initial commit 2020-06-26 21:34:58 +02:00