From 0fb47bb50c3d4eabed8d01f0e3f240ca5f6e65cd Mon Sep 17 00:00:00 2001 From: Arnthor Date: Tue, 30 Apr 2024 13:42:00 +0000 Subject: [PATCH] ofas custom options and logo --- packages/mainmenu-extension/src/index.ts | 8 ++++---- .../style/icons/jupyter/jupyter-favicon.svg | 8 +++----- .../ui-components/style/icons/jupyter/jupyter.svg | 15 +++------------ 3 files changed, 10 insertions(+), 21 deletions(-) diff --git a/packages/mainmenu-extension/src/index.ts b/packages/mainmenu-extension/src/index.ts index 6f073f2f9dd2..efd1deba4307 100644 --- a/packages/mainmenu-extension/src/index.ts +++ b/packages/mainmenu-extension/src/index.ts @@ -374,8 +374,8 @@ function createFileMenu( commands.addCommand(CommandIDs.shutdown, { label: trans.__('Shut Down'), caption: trans.__('Shut down JupyterLab'), - isVisible: () => menu.quitEntry, - isEnabled: () => menu.quitEntry, + isVisible: () => false, + isEnabled: () => false, execute: () => { return showDialog({ title: trans.__('Shutdown confirmation'), @@ -442,8 +442,8 @@ function createFileMenu( commands.addCommand(CommandIDs.logout, { label: trans.__('Log Out'), caption: trans.__('Log out of JupyterLab'), - isVisible: () => menu.quitEntry, - isEnabled: () => menu.quitEntry, + isVisible: () => false, + isEnabled: () => false, execute: () => { router.navigate('/logout', { hard: true }); } diff --git a/packages/ui-components/style/icons/jupyter/jupyter-favicon.svg b/packages/ui-components/style/icons/jupyter/jupyter-favicon.svg index 8baf11296250..998d7f29905a 100644 --- a/packages/ui-components/style/icons/jupyter/jupyter-favicon.svg +++ b/packages/ui-components/style/icons/jupyter/jupyter-favicon.svg @@ -1,6 +1,4 @@ - - + + diff --git a/packages/ui-components/style/icons/jupyter/jupyter.svg b/packages/ui-components/style/icons/jupyter/jupyter.svg index f7a2bec90ab7..4b2bb00ae96b 100644 --- a/packages/ui-components/style/icons/jupyter/jupyter.svg +++ b/packages/ui-components/style/icons/jupyter/jupyter.svg @@ -1,13 +1,4 @@ - - - - - > + +