windows: the dark theme's off and disabled controls readable; upgrades with tunnels up

Dark theme: a switch that is off has a lighter track (#737373, was #404040
under a near-black thumb), radio buttons, checkboxes and text fields a
lighter edge (#525252); a disabled button's text is the muted colour itself
rather than half of it (widgets::Inactive). The title bar is set again a
moment after Windows' appearance changes, as GPUI resets it to Windows' own.

Upgrades: a running system-wide AmneziaWG tunnel is stopped while the
release's newer amneziawg replaces bin\amneziawg, and started again;
WinDivert's driver is let go of before zapret or zapret2 is replaced. The
fetched setup program goes once the update it brought is running.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
faumarayandClaude Opus 5.5 committed 2026-10-27 22:39:10 +03:00
1 parent 5bd47f7676
commit d33f05c62c
19 files changed
+101 -21

No files matched your search

+7 -1
View File
@@ -194,7 +194,9 @@ fn published_sum(text: &[u8]) -> Result<String> {
}
}
/// The release's setup program in `dir` (older ones gone), once its SHA-256 matches.
/// The release's setup program in `dir` (older ones gone), once its SHA-256 matches. `dir` is
/// under the state root, whose protected DACL (SYSTEM and Administrators only, inherited)
/// keeps anyone else from replacing the file between this check and its run as SYSTEM.
async fn download(release: &Release, routes: &[Route], dir: &Path) -> Result<PathBuf> {
let sum = first(routes, |r| {
let url = release.checksum.clone();
@@ -295,6 +297,10 @@ pub fn report(dir: &Path) {
let _ = std::fs::remove_file(&path);
if wanted.trim() == env!("CARGO_PKG_VERSION") {
tracing::info!("updated to {}", env!("CARGO_PKG_VERSION"));
// Done with: ~80 MB.
for e in std::fs::read_dir(dir).into_iter().flatten().flatten() {
let _ = std::fs::remove_file(e.path());
}
} else {
tracing::warn!("the update to {} did not finish; this is still {}", wanted.trim(), env!("CARGO_PKG_VERSION"));
}