Warning
Superseded by v2.0.3, which fixes horizontal scrollbars visible on every GUI column (present since v2.0.0) and text clipping at non-100% display scaling. Policy behaviour is identical.
An optimization pass. Zero behaviour change — every preset builds byte-identical policy to v2.0.1 (verified against the actual v2.0.1 code, not assumed), all 372 tests pass untouched, and the tri-state enums, embedded presets, and three-way implementation lockstep were all re-verified after the changes.
Net −22 lines across all four source files. Every change was adversarially reviewed before landing: three independent finders swept ~9,800 lines, and only six changes cleared the bar of measurably faster, strictly smaller, or clearly simpler with identical behaviour. Everything else found was rejected as churn.
Faster
- Dark-theme GUI startup drops one full in-process C# compilation. The dark-titlebar
DwmSetWindowAttributeP/Invoke lived in its ownAdd-Type, compiled on every dark-mode launch — measured at roughly 110–415ms depending on session state. It's now folded into the existingDpiHelpertype: one compile instead of two. - Every macOS
--persist onApply spawns one fewerprofilessubprocess. The install path re-checked and re-removed the Configuration Profile that its only caller had already torn down.
Smaller
- The Space/Enter activation dispatch, duplicated between the list handler and the button-row handler, is now a single shared
activate_row()— byte-identical in both Python scripts, one edit site instead of two per file. - Two identical 15-line curses prompt-overlay paint blocks in the macOS script collapsed into one helper.
- Test-suite duplication removed:
_check_featuredelegates to_get_feature, and four hand-rolled config-write blocks reuse the existing_write_confighelper. Collected test count is identical before and after (376).
Verifying this release
7531ecfedba8b29b269fa87a57d62fa5bbb45ee03330b9beda4287bc442bdb70 SlimBrave.ps1
3097f5c6528134bab496a2095abeb0b70d707803376dc603c469b5ef8c5dffc9 slimbrave-linux.py
d2fa88af008b5a32c5b9b2880148dcf5fd6cd4369fd46094a9b70c956df8e4ac slimbrave-mac.py
Get-FileHash -Algorithm SHA256 .\SlimBrave.ps1sha256sum slimbrave-linux.py # Linux
shasum -a 256 slimbrave-mac.py # macOSTags are not signed — there's no maintainer signing key published yet, so don't read an unsigned tag as a sign of tampering. See SECURITY.md.