Started to try and rebrand this?
This commit is contained in:
@@ -10,6 +10,7 @@ rust-version.workspace = true
|
||||
workspace = true
|
||||
|
||||
[dependencies]
|
||||
effectcraft-rustmotion-common = { workspace = true }
|
||||
craft-ui = { workspace = true }
|
||||
effectcraft-time = { workspace = true }
|
||||
effectcraft-geom = { workspace = true }
|
||||
|
||||
@@ -656,18 +656,18 @@ fn ws_menu(app: &mut EffectcraftApp, ui: &mut egui::Ui) {
|
||||
|
||||
/// The ArtCraft mark as supplied in `docs/brand` (the README's and getartcraft.com's logo; used
|
||||
/// unmodified, see `docs/brand/LICENSE-brand.txt`).
|
||||
static ARTCRAFT_MARK: &[u8] = include_bytes!("../../../docs/brand/artcraft-mark.png");
|
||||
static ARTCRAFT_MARK: &[u8] = include_bytes!("../../../docs/brand/rustmotion-mark.png");
|
||||
|
||||
/// The ArtCraft mark in `r` (decoded once into a mipmapped texture, so it stays crisp from the
|
||||
/// 24 px Tools bar to the About dialog). Nothing is drawn if it can't be decoded.
|
||||
pub fn paint_logo(p: &egui::Painter, r: Rect) {
|
||||
let ctx = p.ctx();
|
||||
let id = egui::Id::new("artcraft-mark");
|
||||
let id = egui::Id::new("rustmotion-mark");
|
||||
let tex = ctx.data(|d| d.get_temp::<Option<egui::TextureHandle>>(id)).unwrap_or_else(|| {
|
||||
let tex = image::load_from_memory_with_format(ARTCRAFT_MARK, image::ImageFormat::Png).ok().map(|img| {
|
||||
let img = img.to_rgba8();
|
||||
let ci = egui::ColorImage::from_rgba_unmultiplied([img.width() as usize, img.height() as usize], img.as_raw());
|
||||
ctx.load_texture("artcraft-mark", ci, egui::TextureOptions::LINEAR.with_mipmap_mode(Some(egui::TextureFilter::Linear)))
|
||||
ctx.load_texture("rustmotion-mark", ci, egui::TextureOptions::LINEAR.with_mipmap_mode(Some(egui::TextureFilter::Linear)))
|
||||
});
|
||||
ctx.data_mut(|d| d.insert_temp(id, tex.clone()));
|
||||
tex
|
||||
|
||||
+10
-10
@@ -278,7 +278,7 @@ pub(crate) fn submenu(app: &EffectcraftApp, source: &str, shown: String) -> Stri
|
||||
/// Chinese After Effects documentation and the catalogs the sibling Craft apps ship; see the
|
||||
/// pull request for the rows taken from #321.
|
||||
const SIMPLIFIED_CHINESE: &[(&str, &str, &str)] = &[
|
||||
("", "EffectCraft", "EffectCraft"),
|
||||
("", crate::APP_NAME, crate::APP_NAME),
|
||||
("app.about", "About EffectCraft...", "关于 EffectCraft..."),
|
||||
("", "Settings...", "设置..."),
|
||||
("app.settings", "General...", "常规..."),
|
||||
@@ -912,7 +912,7 @@ const SIMPLIFIED_CHINESE: &[(&str, &str, &str)] = &[
|
||||
/// entry per fixed menu row of the engine's menu tree, mirroring `SIMPLIFIED_CHINESE` in the
|
||||
/// vocabulary the sibling Craft apps' zh-hant catalogs use.
|
||||
const TRADITIONAL_CHINESE: &[(&str, &str, &str)] = &[
|
||||
("", "EffectCraft", "EffectCraft"),
|
||||
("", "crate::APP_NAME", "crate::APP_NAME"),
|
||||
("app.about", "About EffectCraft...", "關於 EffectCraft..."),
|
||||
("", "Settings...", "設定..."),
|
||||
("app.settings", "General...", "一般..."),
|
||||
@@ -1543,7 +1543,7 @@ const TRADITIONAL_CHINESE: &[(&str, &str, &str)] = &[
|
||||
];
|
||||
|
||||
const JAPANESE: &[(&str, &str, &str)] = &[
|
||||
("", "EffectCraft", "EffectCraft"),
|
||||
("", "crate::APP_NAME", "crate::APP_NAME"),
|
||||
("app.about", "About EffectCraft...", "EffectCraftについて..."),
|
||||
("", "Settings...", "設定..."),
|
||||
("app.settings", "General...", "一般..."),
|
||||
@@ -2177,7 +2177,7 @@ const JAPANESE: &[(&str, &str, &str)] = &[
|
||||
/// Ukrainian motion-graphics vocabulary. Product names and technical identifiers stay verbatim.
|
||||
/// The (command, source) keys match the other catalogs; no proprietary localization was used.
|
||||
const UKRAINIAN: &[(&str, &str, &str)] = &[
|
||||
("", "EffectCraft", "EffectCraft"),
|
||||
("", "crate::APP_NAME", "crate::APP_NAME"),
|
||||
("app.about", "About EffectCraft...", "Про EffectCraft..."),
|
||||
("", "Settings...", "Налаштування..."),
|
||||
("app.settings", "General...", "Загальні..."),
|
||||
@@ -2812,7 +2812,7 @@ const UKRAINIAN: &[(&str, &str, &str)] = &[
|
||||
/// Wording follows Adobe's Spanish After Effects documentation (helpx.adobe.com/es) where it
|
||||
/// names the feature, and macOS Spanish for the app menu.
|
||||
const SPANISH: &[(&str, &str, &str)] = &[
|
||||
("", "EffectCraft", "EffectCraft"),
|
||||
("", "crate::APP_NAME", "crate::APP_NAME"),
|
||||
("app.about", "About EffectCraft...", "Acerca de EffectCraft..."),
|
||||
("", "Settings...", "Ajustes..."),
|
||||
("app.settings", "General...", "General..."),
|
||||
@@ -3445,7 +3445,7 @@ const SPANISH: &[(&str, &str, &str)] = &[
|
||||
/// Brazilian Portuguese: the same (command, English label) keys as `JAPANESE`, one entry
|
||||
/// per fixed menu row of the engine's menu tree.
|
||||
const PORTUGUESE: &[(&str, &str, &str)] = &[
|
||||
("", "EffectCraft", "EffectCraft"),
|
||||
("", "crate::APP_NAME", "crate::APP_NAME"),
|
||||
("app.about", "About EffectCraft...", "Sobre o EffectCraft..."),
|
||||
("", "Settings...", "Configurações..."),
|
||||
("app.settings", "General...", "Geral..."),
|
||||
@@ -4086,7 +4086,7 @@ const RUSSIAN: &[(&str, &str, &str)] = &[
|
||||
("", "Side", "Боковая грань"),
|
||||
("", "Back", "Задняя грань"),
|
||||
("layer.addTextAnimator", "Color", "Цвет"),
|
||||
("", "EffectCraft", "EffectCraft"),
|
||||
("", "crate::APP_NAME", "crate::APP_NAME"),
|
||||
("app.about", "About EffectCraft...", "О EffectCraft..."),
|
||||
("", "Settings...", "Настройки..."),
|
||||
("app.settings", "General...", "Общие..."),
|
||||
@@ -4719,7 +4719,7 @@ const FRENCH: &[(&str, &str, &str)] = &[
|
||||
("", "Side", "Côté"),
|
||||
("", "Back", "Arrière"),
|
||||
("layer.addTextAnimator", "Color", "Couleur"),
|
||||
("", "EffectCraft", "EffectCraft"),
|
||||
("", "crate::APP_NAME", "crate::APP_NAME"),
|
||||
("app.about", "About EffectCraft...", "À propos d’EffectCraft..."),
|
||||
("", "Settings...", "Préférences..."),
|
||||
("app.settings", "General...", "Général..."),
|
||||
@@ -5352,7 +5352,7 @@ const GERMAN: &[(&str, &str, &str)] = &[
|
||||
("", "Side", "Seite"),
|
||||
("", "Back", "Rückseite"),
|
||||
("layer.addTextAnimator", "Color", "Farbe"),
|
||||
("", "EffectCraft", "EffectCraft"),
|
||||
("", "crate::APP_NAME", "crate::APP_NAME"),
|
||||
("app.about", "About EffectCraft...", "Über EffectCraft..."),
|
||||
("", "Settings...", "Voreinstellungen..."),
|
||||
("app.settings", "General...", "Allgemein..."),
|
||||
@@ -5985,7 +5985,7 @@ const CZECH: &[(&str, &str, &str)] = &[
|
||||
("", "Side", "Boční strana"),
|
||||
("", "Back", "Zadní strana"),
|
||||
("layer.addTextAnimator", "Color", "Barva"),
|
||||
("", "EffectCraft", "EffectCraft"),
|
||||
("", "crate::APP_NAME", "crate::APP_NAME"),
|
||||
("app.about", "About EffectCraft...", "O aplikaci EffectCraft..."),
|
||||
("", "Settings...", "Nastavení..."),
|
||||
("app.settings", "General...", "Obecné..."),
|
||||
|
||||
@@ -47,6 +47,8 @@ use serde_json::json;
|
||||
use state::UiState;
|
||||
use theme::Tokens;
|
||||
|
||||
use effectcraft_rustmotion_common::APP_NAME;
|
||||
|
||||
const SCREENSHOT_TIMEOUT_S: f64 = 4.0;
|
||||
/// Seconds without a project change before paused prefetch resumes (see
|
||||
/// [`EffectcraftApp::editing`]).
|
||||
|
||||
@@ -327,7 +327,7 @@ fn about_main(app: &mut EffectcraftApp, ui: &mut egui::Ui, t: &Tokens, cmd: &mut
|
||||
let p = ui.painter();
|
||||
p.rect_filled(r, 10.0, Color32::from_rgb(0x1b, 0x22, 0x3c));
|
||||
crate::header::paint_logo(p, Rect::from_min_size(r.min + vec2(18.0, 20.0), vec2(56.0, 56.0)));
|
||||
p.text(r.min + vec2(90.0, 34.0), Align2::LEFT_CENTER, "EffectCraft", Tokens::semibold(24.0), Color32::WHITE);
|
||||
p.text(r.min + vec2(90.0, 34.0), Align2::LEFT_CENTER, crate::APP_NAME, Tokens::semibold(24.0), Color32::WHITE);
|
||||
p.text(
|
||||
r.min + vec2(90.0, 62.0),
|
||||
Align2::LEFT_CENTER,
|
||||
|
||||
Reference in New Issue
Block a user