Skip to content

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.

Dock, desktop and HyperGlass are not experimental; About shows the logo

gelenmedya7959577d2eb0
diff --git a/crates/rf-app/src/desktop_page.rs b/crates/rf-app/src/desktop_page.rs
index 8756c01d..26f7ae49 100644
--- a/crates/rf-app/src/desktop_page.rs
+++ b/crates/rf-app/src/desktop_page.rs
@@ -88,7 +88,7 @@ pub(crate) fn choice_labels() -> Vec<(IconChoice, String)> {
/// The intro at the top of the page.
pub(crate) fn intro() -> &'static str {
- t!("Masaüstü, Explorer'ın masaüstünün üstüne rustyfiles'ın çizdiği masaüstüdür: duvar kâğıdınız, simgeleriniz, sürükle-bırak ve menüler. Deneyseldir ve varsayılan olarak kapalıdır.")
+ t!("Masaüstü, Explorer'ın masaüstünün üstüne rustyfiles'ın çizdiği masaüstüdür: duvar kâğıdınız, simgeleriniz, sürükle-bırak ve menüler. Varsayılan olarak kapalıdır.")
}
/// What is Explorer's (Windows') and what is ours.
@@ -114,9 +114,8 @@ pub(crate) fn entries() -> Vec<Entry> {
Entry { id, field, section, icon, title, desc, kind, control }
}
vec![
- // The one part of the Dock that has a switch of its own (a user on Windows 10, issue 26: "I use a third-party desktop organizer
- // software, and RustyFiles's desktop replacement causes a severe conflict with it. Could you please add a toggle"; the owner:
- // "2. yi dediğin gibi yap"). It writes the part's own value (`dock/parts.rs`): on here means our desktop is NOT drawn.
+ // The one part of the Dock that has a switch of its own (issue 26: a third-party desktop organizer on Windows 10 conflicts with
+ // our desktop replacement). It writes the part's own value (`dock/parts.rs`): on here means our desktop is NOT drawn.
e(
"desktop-keep-windows",
"shell_desktop_cover",
diff --git a/crates/rf-app/src/dock/parts.rs b/crates/rf-app/src/dock/parts.rs
index d2a842d3..95942067 100644
--- a/crates/rf-app/src/dock/parts.rs
+++ b/crates/rf-app/src/dock/parts.rs
@@ -152,7 +152,7 @@ pub fn held_off_line(s: &Settings) -> Option<String> {
// ---------------------------------------------------------------- the texts of the one switch
pub fn switch_title() -> &'static str {
- t!("rustyfiles Dock'unu kullan (deneysel)")
+ t!("rustyfiles Dock'unu kullan")
}
/// What the one switch does, one short line each (the Settings search reads it, so the old names are in it: masaüstü, görev çubuğu,
@@ -479,7 +479,6 @@ mod tests {
for word in ["masaüstü", "görev çubuğu", "tepsi", "Windows tuşu", "Alt+Tab", "Başlat", "arama", "denetim merkezi"] {
assert!(hay.contains(&rf_core::entry::fold_case(word)), "the one switch's texts do not contain `{word}`");
}
- assert!(switch_title().contains("(deneysel)"));
assert!(switch_description().lines().count() >= 4 && switch_description().lines().all(|l| l.chars().count() < 110), "a few short lines");
});
}
diff --git a/crates/rf-app/src/dock_page.rs b/crates/rf-app/src/dock_page.rs
index 8e3493e6..55e3452a 100644
--- a/crates/rf-app/src/dock_page.rs
+++ b/crates/rf-app/src/dock_page.rs
@@ -133,7 +133,7 @@ pub(crate) fn size_desc() -> &'static str {
/// The intro at the top of the page.
pub(crate) fn intro() -> &'static str {
- t!("Dock, ekranın altındaki üç yüzen adadır: Başlat ve arama, uygulamalar, sistem simgeleri ve saat. Tek anahtarla açılır ve gereken her şeyi birlikte getirir. Deneyseldir ve varsayılan olarak kapalıdır.")
+ t!("Dock, ekranın altındaki üç yüzen adadır: Başlat ve arama, uygulamalar, sistem simgeleri ve saat. Tek anahtarla açılır ve gereken her şeyi birlikte getirir. Varsayılan olarak kapalıdır.")
}
/// Every dock setting that has a control, in the order of the page.
@@ -985,13 +985,12 @@ mod tests {
}
#[test]
- fn the_dock_switch_is_marked_experimental_and_every_text_has_its_english_pair() {
+ fn the_dock_switch_has_its_texts_and_every_text_has_its_english_pair() {
while_turkish(|| {
let en: HashSet<&str> = crate::i18n_en::EN.iter().map(|(k, _)| *k).collect();
let has = |text: &str| en.contains(text);
for e in entries() {
if e.field == "dock_enabled" {
- assert!(e.title.contains("(deneysel)"), "{} is experimental and must say so", e.field);
assert_eq!(e.title, parts::switch_title());
assert_eq!(e.desc, Some(parts::switch_description()));
}
diff --git a/crates/rf-app/src/settings_view.rs b/crates/rf-app/src/settings_view.rs
index 4b03bc62..987b1e04 100644
--- a/crates/rf-app/src/settings_view.rs
+++ b/crates/rf-app/src/settings_view.rs
@@ -66,7 +66,8 @@ const PAGES: [(Page, L, &str); 17] = [
/// The pages that are experimental: marked with a small "Deneysel" pill in the page list and "(deneysel)" in their title. The mark is
/// NOT part of the page name in [`PAGES`], so the search and the translations still know the pages as "Dock" and "Masaüstü".
fn experimental(page: Page) -> bool {
- matches!(page, Page::Dock | Page::Desktop | Page::Ferry)
+ // (the Dock and the desktop are no longer experimental since 1.0.7)
+ matches!(page, Page::Ferry)
}
/// The heading of a page: its name, and "(deneysel)" after it for an experimental page.
@@ -452,8 +453,7 @@ fn icon_button(id: impl Into<ElementId>, p: &Palette, icon: L, tip: impl Into<Sh
/// The narrowest a setting's words (its title and the line under it) are drawn, logical px.
///
-/// WHY (the user, with two pictures of the General page in a narrow window: "uygulamada çok yerde responsive problemi var", "şuraya
-/// bak. böyle olur mu hiç?"). A setting's row was: picture, words, control, side by side, and the words were what gave way: the
+/// WHY (the General page in a narrow window looked broken). A setting's row was: picture, words, control, side by side, and the words were what gave way: the
/// control kept its width (a list is never narrower than 180 px), so in a narrow window the words were pressed into a column one
/// letter wide and a title stood letter under letter. Now the words never go under this width. When the row has no room for the words
/// and the control side by side, the CONTROL goes to a line of its own under them ([`beside`]), as a form does on a narrow page.
@@ -1449,14 +1449,14 @@ fn backdrop_card(p: &Palette, s: &Settings) -> AnyElement {
(BackdropPref::Acrylic, t!("Akrilik").into()),
(BackdropPref::Solid, t!("Düz").into()),
// a product name: only the "(experimental)" is translated
- (BackdropPref::Glass, t!("HyperGlass (deneysel)").into()),
+ (BackdropPref::Glass, "HyperGlass".into()),
]
} else {
// Windows 10: Acrylic and HyperGlass for the main window only (issue 78); Mica left the window see-through there
vec![
(BackdropPref::Solid, t!("Düz").into()),
(BackdropPref::Acrylic, t!("Akrilik").into()),
- (BackdropPref::Glass, t!("HyperGlass (deneysel)").into()),
+ (BackdropPref::Glass, "HyperGlass".into()),
]
};
let control = dropdown("backdrop", p, s.backdrop_in_use(), choices, |s, v| s.backdrop = v);
@@ -1885,7 +1885,7 @@ fn appearance(p: &Palette, s: &Settings, cx: &mut App) -> Vec<AnyElement> {
(settings::MenuMaterial::MicaAlt, "Mica Alt".into()),
(settings::MenuMaterial::Acrylic, t!("Akrilik").into()),
(settings::MenuMaterial::Solid, t!("Düz").into()),
- (settings::MenuMaterial::Glass, t!("HyperGlass (deneysel)").into()),
+ (settings::MenuMaterial::Glass, "HyperGlass".into()),
],
|s, v| s.menu_material = v,
),
@@ -4247,12 +4247,37 @@ const DISCORD_URL: &str = "https://discord.gg/K2banZ36zJ";
const ISSUES_URL: &str = "https://github.com/gelenmedya/rustyfiles/issues/new";
const RELEASES_URL: &str = "https://github.com/gelenmedya/rustyfiles/releases";
+/// The About page's top: the logo beside the name (the brand wordmark, as on rustyfiles.com and the speed test card), drawn once per
+/// theme at twice its size so it stays sharp up to 200 % scaling.
+fn about_wordmark(p: &Palette) -> AnyElement {
+ use std::sync::{Arc, Mutex};
+ static DRAWN: Mutex<[Option<Arc<gpui_kit::RenderImage>>; 2]> = Mutex::new([None, None]);
+ const HEIGHT: f32 = 44.0;
+ let ink = if p.dark { crate::brand::WORDMARK_INK } else { "#1b1a1f" };
+ let image = {
+ let mut drawn = DRAWN.lock().unwrap_or_else(|e| e.into_inner());
+ let slot = &mut drawn[p.dark as usize];
+ if slot.is_none() {
+ *slot = crate::brand::wordmark_image((HEIGHT * 2.0) as u32, ink);
+ }
+ slot.clone()
+ };
+ let Some(image) = image else { return div().into_any_element() };
+ div()
+ .px_1()
+ .pt_2()
+ .pb_3()
+ .child(gpui_kit::img(image).h(px(HEIGHT)).w(px(HEIGHT * crate::brand::wordmark_aspect())))
+ .into_any_element()
+}
+
fn about(p: &Palette, cx: &mut App) -> Vec<AnyElement> {
let ver = crate::installer::version_full();
let version = format!("{} {ver}", t!("Sürüm:"));
let pp = *p;
let s = cx.global::<Settings>().clone();
vec![
+ about_wordmark(p),
card(
p,
L::FolderOpen,
@@ -4706,7 +4731,7 @@ mod desktop_page_tests {
fn the_experimental_pages_are_marked_and_the_mark_is_not_part_of_their_names() {
crate::dock_page::while_turkish(|| {
let exp: Vec<Page> = PAGES.iter().map(|x| x.0).filter(|p| experimental(*p)).collect();
- assert_eq!(exp, [Page::Dock, Page::Desktop, Page::Ferry], "exactly these");
+ assert_eq!(exp, [Page::Ferry], "exactly these (the Dock and the desktop are no longer experimental)");
for (page, _, name) in PAGES {
let title = page_title(page, name);
if experimental(page) {