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:
1 parent
5bd47f7676
commit
d33f05c62c
19 files changed
+101
-21
No files matched your search
@@ -256,15 +256,20 @@ fn verify_all(dir: &Path) -> Result<()> {
|
||||
|
||||
/// Copies each component of `from` (the release's) into `bin` when `bin` lacks it or holds
|
||||
/// another version: staged, verified file by file, swapped in. What it did, as lines.
|
||||
/// Whether `seed` replaces `name` in `bin`: the release has the version the manifest wants,
|
||||
/// and `bin` another (or none).
|
||||
pub fn seeds(from: &Path, bin: &Path, name: &str) -> bool {
|
||||
let manifest = ps_core::components::manifest();
|
||||
let Some(comp) = manifest.components.get(name) else { return false };
|
||||
installed_version(from, name).as_deref() == Some(comp.version.as_str()) && installed_version(bin, name).as_deref() != Some(comp.version.as_str())
|
||||
}
|
||||
|
||||
pub fn seed(from: &Path, bin: &Path) -> Vec<String> {
|
||||
let manifest = ps_core::components::manifest();
|
||||
let mut notes = Vec::new();
|
||||
for (name, comp) in &manifest.components {
|
||||
let src = from.join(name);
|
||||
if installed_version(from, name).as_deref() != Some(comp.version.as_str()) {
|
||||
continue;
|
||||
}
|
||||
if installed_version(bin, name).as_deref() == Some(comp.version.as_str()) {
|
||||
if !seeds(from, bin, name) {
|
||||
continue;
|
||||
}
|
||||
let staging = bin.join(format!("{name}.staging"));
|
||||
|
||||
Reference in new issue
Block a user