diff --git a/ui/Makefile b/ui/Makefile index 8acca66..f9530de 100644 --- a/ui/Makefile +++ b/ui/Makefile @@ -57,8 +57,7 @@ install: $(COMPILED_OUTPUT) index.hbs install -m0644 images/favicon.svg $(DESTDIR)$(UIDIR)/images install -m0644 images/icon-cpu.svg $(DESTDIR)$(UIDIR)/images install -m0644 images/icon-memory.svg $(DESTDIR)$(UIDIR)/images - install -m0644 images/proxmox_logo.png $(DESTDIR)$(UIDIR)/images - install -m0644 images/proxmox_logo_white.png $(DESTDIR)$(UIDIR)/images + install -m0644 images/proxmox_logo.svg $(DESTDIR)$(UIDIR)/images install -dm0755 $(DESTDIR)$(UIDIR)/fonts install -m0644 pwt-assets/assets/fonts/RobotoFlexVariableFont.ttf $(DESTDIR)$(UIDIR)/fonts diff --git a/ui/images/proxmox_logo.png b/ui/images/proxmox_logo.png deleted file mode 100644 index 4f99b8c..0000000 Binary files a/ui/images/proxmox_logo.png and /dev/null differ diff --git a/ui/images/proxmox_logo.svg b/ui/images/proxmox_logo.svg new file mode 100644 index 0000000..5a80515 --- /dev/null +++ b/ui/images/proxmox_logo.svg @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + diff --git a/ui/images/proxmox_logo_white.png b/ui/images/proxmox_logo_white.png deleted file mode 100644 index e991737..0000000 Binary files a/ui/images/proxmox_logo_white.png and /dev/null differ diff --git a/ui/src/top_nav_bar.rs b/ui/src/top_nav_bar.rs index be65691..ff0cf11 100644 --- a/ui/src/top_nav_bar.rs +++ b/ui/src/top_nav_bar.rs @@ -189,12 +189,6 @@ impl Component for PdmTopNavBar { ); } - let src = if self.dark_mode { - "/images/proxmox_logo_white.png" - } else { - "/images/proxmox_logo.png" - }; - let dialog: Option = self.view_state.as_ref().map(|view_state| match view_state { ViewState::LanguageDialog => LanguageDialog::new() .on_close(ctx.link().callback(|_| Msg::ChangeView(None))) @@ -216,7 +210,9 @@ impl Component for PdmTopNavBar { .class("pwt-border-bottom") .padding(2) .with_child(html! { - Proxmox logo + + Proxmox logo + }) .with_child({ let text = if let Some(info) = &self.version_info {