Update branding
Update the Ferese symbols, appearance-specific wallpapers, and rounded wallpaper and theme previews. Bundle Figtree and add the Ferese name to the website header. Verified configuration, theme, Settings, wallpaper and installer tests, both UI renderers, the static site build, and browser layouts.
This commit is contained in:
1 parent
f81d8d50ea
commit
3533fac521
35 files changed
+1212
-309
No files matched your search
@@ -38,13 +38,26 @@ pub fn config_path() -> Option<PathBuf> {
|
||||
}
|
||||
|
||||
pub fn default_wallpaper() -> &'static str {
|
||||
static PATH: std::sync::OnceLock<String> = std::sync::OnceLock::new();
|
||||
PATH.get_or_init(|| {
|
||||
default_wallpaper_for(theme::Appearance::Dark)
|
||||
}
|
||||
|
||||
pub fn default_wallpaper_for(appearance: theme::Appearance) -> &'static str {
|
||||
static LIGHT: std::sync::OnceLock<String> = std::sync::OnceLock::new();
|
||||
static DARK: std::sync::OnceLock<String> = std::sync::OnceLock::new();
|
||||
let (slot, name) = match appearance {
|
||||
theme::Appearance::Light => (&LIGHT, "ferese-wallpaper-light.png"),
|
||||
theme::Appearance::Dark => (&DARK, "ferese-wallpaper-dark.jpg"),
|
||||
};
|
||||
slot.get_or_init(|| {
|
||||
let path = std::env::current_exe()
|
||||
.ok()
|
||||
.and_then(|path| path.parent().map(|dir| dir.join("wallpapers/ferese.png")))
|
||||
.and_then(|path| path.parent().map(|dir| dir.join("wallpapers").join(name)))
|
||||
.filter(|path| path.is_file())
|
||||
.unwrap_or_else(|| PathBuf::from(env!("CARGO_MANIFEST_DIR")).join("../../assets/wallpapers/ferese.png"));
|
||||
.unwrap_or_else(|| {
|
||||
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("../../assets/wallpapers")
|
||||
.join(name)
|
||||
});
|
||||
|
||||
path.canonicalize().unwrap_or(path).to_string_lossy().into_owned()
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user