Nova logo oficial: o guará com o anel laranja
A arte do usuário (assets/logo/*-fonte.png) passa a ser a logo do projeto. scripts/processar-logo.py tira o fundo (só o que toca a borda e os bolsões internos, com a faixa da borda refeita pela cor real do desenho, sem halo) e gera as variantes clara e escura (768 e 128 px) e o ícone do app. O app escolhe a variante pelo tema (barra lateral, topo e tela inicial), o favicon e o servidor do guara ui passam a PNG, os ícones do Tauri são regenerados e o README usa <picture> para claro e escuro. A logo SVG antiga e o gerador dela saem. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
82c1fb6c8f
commit
9c09f5dd8a
67 files changed
+219
-72
No files matched your search
@@ -12,9 +12,11 @@ const JS: &str = include_str!("../../../apps/gui/ui/app.js");
|
||||
const PREVIEW_JS: &str = include_str!("../../../apps/gui/ui/preview.js");
|
||||
const I18N_JS: &str = include_str!("../../../apps/gui/ui/i18n.js");
|
||||
const I18N_EN_JS: &str = include_str!("../../../apps/gui/ui/i18n-en.js");
|
||||
const LOGO: &str = include_str!("../../../apps/gui/ui/guara-logo.svg");
|
||||
const EXPLORER_JS: &str = include_str!("../../../apps/gui/ui/explorer.js");
|
||||
const ICON: &str = include_str!("../../../apps/gui/ui/guara.svg");
|
||||
const LOGO_DARK: &[u8] = include_bytes!("../../../apps/gui/ui/guara-dark.png");
|
||||
const LOGO_LIGHT: &[u8] = include_bytes!("../../../apps/gui/ui/guara-light.png");
|
||||
const LOGO_DARK_S: &[u8] = include_bytes!("../../../apps/gui/ui/guara-dark-s.png");
|
||||
const LOGO_LIGHT_S: &[u8] = include_bytes!("../../../apps/gui/ui/guara-light-s.png");
|
||||
const PDF_JS: &str = include_str!("../../../apps/gui/ui/vendor/pdf.min.mjs");
|
||||
const PDF_WORKER: &str = include_str!("../../../apps/gui/ui/vendor/pdf.worker.min.mjs");
|
||||
|
||||
@@ -98,8 +100,17 @@ fn handle(req: Request, eng: &Engine, token: &str, hosts: &[String]) {
|
||||
Response::from_string(I18N_EN_JS).with_header(ct("text/javascript; charset=utf-8")),
|
||||
);
|
||||
}
|
||||
(Method::Get, "/guara-logo.svg") => {
|
||||
let _ = req.respond(Response::from_string(LOGO).with_header(ct("image/svg+xml")));
|
||||
(Method::Get, "/guara-dark.png") => {
|
||||
let _ = req.respond(Response::from_data(LOGO_DARK).with_header(ct("image/png")));
|
||||
}
|
||||
(Method::Get, "/guara-light.png") => {
|
||||
let _ = req.respond(Response::from_data(LOGO_LIGHT).with_header(ct("image/png")));
|
||||
}
|
||||
(Method::Get, "/guara-dark-s.png") => {
|
||||
let _ = req.respond(Response::from_data(LOGO_DARK_S).with_header(ct("image/png")));
|
||||
}
|
||||
(Method::Get, "/guara-light-s.png") => {
|
||||
let _ = req.respond(Response::from_data(LOGO_LIGHT_S).with_header(ct("image/png")));
|
||||
}
|
||||
(Method::Get, "/explorer.js") => {
|
||||
let _ = req.respond(
|
||||
@@ -107,9 +118,6 @@ fn handle(req: Request, eng: &Engine, token: &str, hosts: &[String]) {
|
||||
.with_header(ct("text/javascript; charset=utf-8")),
|
||||
);
|
||||
}
|
||||
(Method::Get, "/guara.svg") => {
|
||||
let _ = req.respond(Response::from_string(ICON).with_header(ct("image/svg+xml")));
|
||||
}
|
||||
(Method::Get, "/vendor/pdf.min.mjs") => {
|
||||
let _ = req.respond(
|
||||
Response::from_string(PDF_JS).with_header(ct("text/javascript; charset=utf-8")),
|
||||
|
||||
Reference in new issue
Block a user