Skip to content

Instantly share code, notes, and snippets.

View Waxaranai's full-sized avatar
🏠
Working from home

Wisnu Prabowo Waxaranai

🏠
Working from home
View GitHub Profile
@Waxaranai
Waxaranai / MATERIAL_COLORSCHEME.md
Created September 22, 2026 10:17
Material 3 ColorScheme roles (green seed #2eff2e) — SPEC_2026 device-accurate + 2021 comparison

Material 3 Color Scheme — Green seed (SPEC_2026)

  • Seed color: #2eff2e (HCT hue 142.71°, chroma 102.52, tone 88.11)
  • Algorithm: Material Color Utilities (HCT), SchemeTonalSpot, SpecVersion.SPEC_2026, Platform.PHONE, contrast 0.0
  • Generated with: external/libmonet (com.google.ux.material.libmonet) — the exact library used by packages/apps/ThemePicker (MaterialColorsGenerator → com.android.systemui.monet.DynamicColors → com.android.systemui.monet.ColorScheme) and consumed in SystemUI by PlatformTheme.kt.
  • Generated: 2026-09-22 10:17

Note: this is the device-accurate 2026 spec. In SPEC_2025/2026 the TonalSpot tertiary hue is not seed+60° — it uses a piecewise rotation (breakpoints {0,20,71,161,333,360}, rotations {-40,48,-32,40,-32}). Seed hue 142.71° lands in [71,161) → rotation −32° → tertiary hue 110.71° (yellow-green), and chroma is much lower (pastel). This is why a green wallpaper yields a yellow-green tertiary, not cyan.

`Platfo

SettingsLib Material Theme Color Scheme

Source: frameworks/base/packages/SettingsLib/SettingsTheme/res/values/colors.xml (day) and values-night/colors.xml (night).

Swatches are rendered as inline HTML color chips (GitHub strips raw HTML in some contexts, but renders it in <details>/browsers and many MD viewers).

Core Material 3 Roles

Role Day Night
@Waxaranai
Waxaranai / INA.XD.12.0.r2-542202-mojito.OBT.txt
Created February 22, 2022 08:10
INA.XD.12.0.r2-542202-mojito.OBT Changelog
• Initial build
• Import devicesettings from sweet (Settings > System > Device Specific Settings)
• Update fingerprint to redfin-user 12 SQ1A.220205.002 8010174 release-keys
• Using GcamGo as default Camera
• Prebuild libcameraservice (current workaround for camera recording with NetErnels-r13-libcam2, idk if others kernel would support it)
• Super-powered by NetErnels
@Waxaranai
Waxaranai / build.sh
Created January 17, 2022 05:18
build script
. build/envsetup.sh
lunch aosp_mojito-userdebug
export SKIP_ABI_CHECKS=true
export SKIP_API_CHECKS=true
export BUILD_USERNAME=waku
export TZ=Asia/Jakarta
make aosp -j$(nproc --all)
@Waxaranai
Waxaranai / clone-conquer.sh
Last active January 17, 2022 04:52
clone trees for conquerOS | Android 12
git clone -b 12-conquer https://github.com/Waxaranai/device_xiaomi_mojito device/xiaomi/mojito
git clone -b 12-conquer https://github.com/Waxaranai/device_xiaomi_sm6150-common device/xiaomi/sm6150-common
git clone -b 12-conquer https://github.com/Waxaranai/vendor_xiaomi_sm6150-common vendor/xiaomi/sm6150-common
git clone -b twelve https://gitlab.pixelexperience.org/android/vendor-blobs/vendor_xiaomi_mojito vendor/xiaomi/mojito
git clone -b https://github.com/Neternels/android_kernel_xiaomi_mojito kernel/xiaomi/sm6150