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
Dock settings name the islands top and bottom when the Dock is on the right (907)
gelenmedya317d62ae6d8e
diff --git a/crates/rf-app/src/dock_page.rs b/crates/rf-app/src/dock_page.rsindex c90559ab..e84000b0 100644--- a/crates/rf-app/src/dock_page.rs+++ b/crates/rf-app/src/dock_page.rs@@ -43,6 +43,16 @@ impl Section {Section::Right => t!("SAĞ ADA"),}}++ /// The title where the Dock is: on the right edge of the screen its islands stand top, middle and bottom (issue 907: "LEFT+ /// ISLAND" named the island at the top).+ pub(crate) fn title_at(self, position: crate::settings::DockPosition) -> &'static str {+ match (self, position) {+ (Section::Left, crate::settings::DockPosition::Right) => t!("ÜST ADA"),+ (Section::Right, crate::settings::DockPosition::Right) => t!("ALT ADA"),+ _ => self.title(),+ }+ }}/// What a setting needs before it does anything.@@ -579,7 +589,7 @@ pub(crate) fn page(p: &Palette, s: &Settings, size_slider: Option<AnyElement>) -let mut out: Vec<AnyElement> = vec![div().pb_1().text_sm().text_color(p.text_secondary).child(intro()).into_any_element()];let mut size_slider = size_slider;for (sec, rows) in grouped(&entries()) {- out.push(section(p, sec.title()));+ out.push(section(p, sec.title_at(s.dock_position)));for e in rows {let slider = if matches!(e.control, Control::Size(..)) { size_slider.take() } else { None };out.push(row(p, s, &e, slider));@@ -1020,6 +1030,7 @@ mod tests {}for sec in Section::ALL {assert!(has(sec.title()), "{sec:?}");+ assert!(has(sec.title_at(crate::settings::DockPosition::Right)), "{sec:?}");}for text in [intro(), Needs::DockOn.reason()] {assert!(has(text), "{text}");