[READ-ONLY] Mirror of https://github.com/probablykasper/time-machine-inspector. Time Machine backup size inspector app
backup macos tauri time-machine
0

Configure Feed

Select the types of activity you want to include in your feed.

Remove unused vibrancy

Kasper (Jul 9, 2022, 9:07 PM +0200) ac1038ce 50ccaffb

+2 -25
-13
src-tauri/Cargo.lock
··· 2754 2754 "serde_json", 2755 2755 "tauri", 2756 2756 "tauri-build", 2757 - "window-vibrancy", 2758 2757 ] 2759 2758 2760 2759 [[package]] ··· 3204 3203 version = "0.4.0" 3205 3204 source = "registry+https://github.com/rust-lang/crates.io-index" 3206 3205 checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" 3207 - 3208 - [[package]] 3209 - name = "window-vibrancy" 3210 - version = "0.1.3" 3211 - source = "registry+https://github.com/rust-lang/crates.io-index" 3212 - checksum = "0b66a7f578d164c3f53425ecb73241246ed56a7c3383a15e741684c949a88c86" 3213 - dependencies = [ 3214 - "cocoa", 3215 - "objc", 3216 - "raw-window-handle", 3217 - "windows-sys", 3218 - ] 3219 3206 3220 3207 [[package]] 3221 3208 name = "windows"
+1 -2
src-tauri/Cargo.toml
··· 14 14 [dependencies] 15 15 serde_json = "1.0" 16 16 serde = { version = "1.0", features = ["derive"] } 17 - tauri = { version = "1.0", features = ["dialog-message", "macos-private-api", "shell-open"] } 18 - window-vibrancy = "0.1" 17 + tauri = { version = "1.0", features = ["devtools", "dialog-message", "macos-private-api", "shell-open"] } 19 18 plist = { version = "1.3", features = ["serde"] } 20 19 open = "3.0" 21 20
+1 -10
src-tauri/src/main.rs
··· 50 50 cmd::backups_info, 51 51 ]) 52 52 .setup(|app| { 53 - let window = WindowBuilder::new(app, "main", WindowUrl::default()) 53 + let _window = WindowBuilder::new(app, "main", WindowUrl::default()) 54 54 .title("Time Machine Inspector") 55 55 .resizable(true) 56 56 .decorations(true) 57 - // .transparent(true) // disabled because it removed the window border 58 57 .always_on_top(false) 59 58 .inner_size(1000.0, 700.0) 60 59 .min_inner_size(600.0, 250.0) ··· 62 61 .fullscreen(false) 63 62 .build() 64 63 .expect("Unable to create window"); 65 - #[cfg(target_os = "macos")] 66 - { 67 - use window_vibrancy::apply_vibrancy; 68 - let _ = apply_vibrancy( 69 - &window, 70 - window_vibrancy::NSVisualEffectMaterial::WindowBackground, 71 - ); 72 - } 73 64 Ok(()) 74 65 }) 75 66 .menu(Menu::with_items([