A fast file manager for Windows and macOS that never freezes: tabs, dual panes, archives as folders, Quick Look-style previews. A File Explorer and Finder alternative written in Rust.
Rust archive-managerdesktop-appdual-paneexplorer-alternativefile-browserfile-explorerfile-managerfluent-designgpu-acceleratedgpuimacosmicaproductivityquick-lookrustrust-guitabswindowswindows-11windows-explorer
Merge branch 'pr733'
gelenmedyaba06c0a3fcd9
diff --cc macos/Sources/RustyFiles/SelfTest.swiftindex a840404e,f0d0f448..50ae144a--- a/macos/Sources/RustyFiles/SelfTest.swift+++ b/macos/Sources/RustyFiles/SelfTest.swift@@@ -70,23 -70,69 +70,86 @@@ enum SelfTestscroll(sv, ended, dx: 0)check(swiped.isEmpty, "a short sideways nudge is not a swipe")- // 0c. light mode contrast and glass appearance (issue 682): active tabs, lenses and option+ // 0c. a full folder keeps room under its last row whose right click opens the+ // folder's own menu (Open in Terminal…): the inset below the document+ let room = SwipeScrollView(frame: NSRect(x: 0, y: 0, width: 400, height: 300))+ room.documentView = FlippedView(frame: NSRect(x: 0, y: 0, width: 400, height: 2000))+ room.automaticallyAdjustsContentInsets = false+ room.contentInsets = NSEdgeInsets(top: 4, left: 0, bottom: 4 + FileListController.tailRoom, right: 0)+ let roomWin = NSWindow(contentRect: room.frame, styleMask: [.borderless], backing: .buffered, defer: true)+ roomWin.contentView = room+ room.contentView.scroll(to: NSPoint(x: 0, y: 2000 - 300 + 4 + FileListController.tailRoom))+ room.reflectScrolledClipView(room.contentView)+ let below = room.hitTest(NSPoint(x: 200, y: 20))+ check(below != nil && below !== room.documentView, "the room under the last row is not a row (\(String(describing: below)))")+ let marker = NSMenu(title: "folder")+ room.emptyMenu = { marker }+ let click = NSEvent.mouseEvent(with: .rightMouseDown, location: NSPoint(x: 200, y: 20), modifierFlags: [], timestamp: 0,+ windowNumber: roomWin.windowNumber, context: nil, eventNumber: 0, clickCount: 1, pressure: 1)+ check(click.map { room.menu(for: $0) === marker } ?? false, "a right click there opens the folder's menu")++ // 0d. light mode contrast and glass appearance (issue 682): active tabs, lenses and option+ // labels stay readable in light mode across Liquid Glass, Translucent and Solid materials+ do {+ let d = UserDefaults.standard+ let savedMaterial = d.object(forKey: "material")+ let savedWash = d.object(forKey: "surfaceWash")+ let savedAccent = d.object(forKey: "accent")+ defer {+ if let savedMaterial { d.set(savedMaterial, forKey: "material") } else { d.removeObject(forKey: "material") }+ if let savedWash { d.set(savedWash, forKey: "surfaceWash") } else { d.removeObject(forKey: "surfaceWash") }+ if let savedAccent { d.set(savedAccent, forKey: "accent") } else { d.removeObject(forKey: "accent") }+ Palette.invalidate()+ }+ d.set(50, forKey: "surfaceWash")+ d.set("", forKey: "accent")+ let lightHost = NSView()+ lightHost.appearance = NSAppearance(named: .aqua)+ let darkHost = NSView()+ darkHost.appearance = NSAppearance(named: .darkAqua)+ let darkWallpaper = Palette.hex(0x1E1E1E)+ let whiteBg = Palette.hex(0xFFFFFF)++ for mat in AppSettings.Material.allCases {+ d.set(mat.rawValue, forKey: "material")+ Palette.invalidate()+ let p = Palette.of(lightHost)+ check(!p.dark, "aqua view resolves light palette (\(mat.rawValue))")+ let baseBg: NSColor+ switch mat {+ case .glass:+ baseBg = Palette.composite(p.windowBg, over: darkWallpaper)+ case .finder:+ baseBg = Palette.hex(0xE6E6E6)+ case .solid:+ baseBg = Palette.composite(p.windowBg, over: darkWallpaper)+ }+ let contentSurface = Palette.composite(p.contentBg, over: baseBg)+ let tabSurface = Palette.composite(mat == .glass ? p.tabActive.withAlphaComponent(0.65) : p.tabActive, over: baseBg)+ check(Palette.contrastRatio(p.text, over: tabSurface) >= 7.0, "light active tab text contrast (\(mat.rawValue))")+ check(Palette.contrastRatio(p.text, over: contentSurface) >= 7.0, "light option title contrast (\(mat.rawValue))")+ check(Palette.contrastRatio(p.textSecondary, over: contentSurface) >= 4.5, "light option detail contrast (\(mat.rawValue))")+ check(Palette.contrastRatio(p.textTertiary, over: whiteBg) >= 4.5, "light tertiary label contrast on white (\(mat.rawValue))")+ }++ d.set("glass", forKey: "material")+ Palette.invalidate()+ for hex in AppSettings.swatches {+ d.set(String(format: "#%06X", hex), forKey: "accent")+ Palette.invalidate()+ let p = Palette.of(lightHost)+ check(Palette.contrastRatio(p.accentText, over: p.accent) >= 4.5, String(format: "light accentText contrast on #%06X", hex))+ }++ let lightLens = LensView(cornerRadius: 8)+ lightLens.appearance = NSAppearance(named: .aqua)+ lightLens.applyAppearance()+ let darkLens = LensView(cornerRadius: 8)+ darkLens.appearance = NSAppearance(named: .darkAqua)+ darkLens.applyAppearance()+ check(lightLens.style == .regular, "light lens uses frosted regular glass")+ check(darkLens.style == .clear, "dark lens keeps clear glass")+ check(Palette.of(darkHost).dark, "darkAqua view resolves dark palette")+ }// 1. copy a file and a folder: both arrive wholeTransfer(.copy, [a.appendingPathComponent("big.bin"), a.appendingPathComponent("folder")], into: b).start(window: nil) { made in