Skip to content

KsuWebUI-SN 2.0-60

Choose a tag to compare

@dnascorpionofficial dnascorpionofficial released this 18 Nov 02:08
· 14 commits to main since this release
2de7726

Important

Still on the old KsuWebUI-SN (package io.github.a13e300.ksuwebui)? KsuWebUI-SN now uses a new package name, scorpion.ksuwebui.sn. Android treats it as a new app, so this release does not replace your current install, even if the in-app update popup offers it. Install it, then uninstall the old KsuWebUI-SN yourself. Your settings in the old app (pins, backgrounds, icons, theme) are not carried over.

Already using scorpion.ksuwebui.sn? Nothing to do, this is a normal update.

Tip

Highlights: new Blend Banners option that turns each module banner into its card background, a cleaner Export tab in Eruda, and a fix for Eruda settings storage keys.

✨ New

  • Blend Banners: a new switch under Module Banners in the settings drawer. When it's on, the banner no longer sits at the top of the card. It becomes the whole card background instead.
    • Always readable: the image is dimmed automatically so the text stays clear. Bright images get a stronger dim, darker ones a lighter dim, and it follows light and dark theme.
    • Only when banners are on: the switch appears only while Module Banners is on and hides when it's off.
    • Info and translations: it has its own entry in the Info dialog and is translated into Arabic, French, Japanese, Polish and Simplified Chinese.
    • Off by default: nothing changes for you until you turn it on.

🔁 Changed

  • Bolder module cards: the author, version, description, size, date and update labels on every module card are now bold, in light and dark theme, with or without banners, so text stays easy to read on banner backgrounds. The description also uses the same colour as the other lines now, instead of a dimmer grey, on every card. The Disabled Module, Hidden Module and Update available texts are extra bold, heavier than the other labels, so they stand out.
  • Chips: the size, date, disabled and hidden chips are now see-through with a visible border, so they look like proper chips on banner backgrounds. The Update available chip is now a solid green with white text and icon, in light and dark theme, so it stands out.
  • Cleaner Export tab (Eruda): the extra heading is gone, the description is lighter and better spaced, and the Export button is now a rounded accent button.
  • Eruda storage keys: the Executions tab's saved sort order now uses an eruda- prefix (eruda-ksu-exec-order), so Eruda's own keys all share one prefix. Export now picks up Eruda data by that prefix (plus active-eruda).
    • One-time reset: the Executions sort order goes back to newest first once, then is remembered as before.

⚠️ Moving from the old package

  1. Install this release.
  2. Open it and grant root as usual.
  3. Uninstall the old KsuWebUI-SN (the one with the previous package name).

The original KsuWebUI Standalone is not affected. It keeps its own package name and can stay installed.

⚙️ Under the hood

For developers ⚠️ (Click to expand)

Blend Banners

  • BannerBackdrop.kt (new): a small drawable that center-crops the banner to the card bounds and draws a flat scrim on top.
  • Scrim strength: it uses the card colour at 60% to 90% opacity in dark theme and 40% to 70% in light theme, so banners stay visible in light mode. In light theme the author, version and description text uses the stronger colorOnSurface colour while blended. The banner's average brightness (an 8 by 8 sample) is stored as Module.luma, and the card's theme decides which brightness needs the stronger dim.
  • MainActivity.kt: new opt_blend_banners preference, prepBanner() (skips the bottom fade used by the normal banner), and the card binding. Card text colours are cached once, and blended cards in light theme use colorOnSurface for the author, version and description text.
  • Layouts and strings: new sw_blend_banners switch in activity_main.xml, an id on the card content layout in item_module.xml, and opt_blend_banners / info_blend_banners_body in all six locales.

Module cards

  • item_module.xml: android:textStyle="bold" on the author, version, version code and description text, and a new TextAppearance.KsuWebUISN.ChipBold style (in themes.xml) on the size, date and update chips.
  • Chips: all six chips in item_module.xml set chipSurfaceColor to transparent (Material was filling them with its surface colour), and use colorOutline for the border. The update chips (module_update and the icon-only status_update) are the exception: they use a solid update_chip_solid fill and border with update_chip_on (white) text and icon, both new colours in colors.xml, the same in light and dark theme. update_chip stays for the Info dialog icon. The unused update_chip_text colour was removed.
  • Heavier status text: new TextAppearance.KsuWebUISN.ChipStatus style in themes.xml (Black font weight) on the module_update chip. MainActivity.kt switches the date chip to it only while it shows Disabled Module or Hidden Module, and back to ChipBold otherwise.

Eruda

  • assets/eruda/export.js: updated styles (.kex-open button, spacing) and isErudaKey now matches ^eruda or active-eruda. The title element is removed.
  • assets/eruda/executions.js: ORDER_KEY is now eruda-ksu-exec-order.
  • WebViewHelper.kt: the unused exportTitle text was removed.

Not changed

  • The package, AIDL interface, URI scheme and theme names from the package rename are as before.
  • The ksu, ksu_bars, ksu_download and ksu_exec_log JavaScript bridges and the R8 rules are as before.