diff --git a/src/widgets/LeftSidebar.tsx b/src/widgets/LeftSidebar.tsx index cf5af12..62e485e 100644 --- a/src/widgets/LeftSidebar.tsx +++ b/src/widgets/LeftSidebar.tsx @@ -1,4 +1,4 @@ -import { faSpinner } from '@fortawesome/free-solid-svg-icons'; +import { faDownload, faSpinner } from '@fortawesome/free-solid-svg-icons'; import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'; import { ReactWidget } from '@jupyterlab/apputils'; import { Button, SidePanel, UseSignal } from '@jupyterlab/ui-components'; @@ -75,6 +75,12 @@ const LeftSidebarComponent = ({ modelList, modelRegistry }: IModelInfoList) => { handleCloseAddModelModal(); }; + const handleDownload = () => { + const url = + 'https://raw.githubusercontent.com/QuantStack/jupyterlab-gather/main/resources/ar-cubes/cube1.pdf'; + window.open(url, '_blank', 'noopener,noreferrer'); + }; + return (
@@ -97,21 +103,15 @@ const LeftSidebarComponent = ({ modelList, modelRegistry }: IModelInfoList) => {
- -
+
); diff --git a/style/base.css b/style/base.css index 4e73759..a3bf05e 100644 --- a/style/base.css +++ b/style/base.css @@ -22,7 +22,7 @@ border: 2px solid transparent; border-radius: var(--gather-border-radius); font-family: inherit; - color: var(--jp-ui-font-color0); + color: var(--jp-ui-font-color1); } .jlab-gather-input::placeholder { @@ -56,6 +56,12 @@ color: whitesmoke; } +.jlab-gather-btn-with-icon { + display: flex; + align-items: center; + gap: 0.5rem; +} + .jlab-gather-btn-danger { background-color: var(--jp-warn-color1) !important; color: black !important; @@ -268,14 +274,9 @@ } .jlab-gather-sidebar-button { - color: var(--jp-inverse-layout-color4); -} - -.jlab-gather-sidebar-load-button { max-width: 313px; margin: 0.5rem; padding: 0.5rem; - color: var(--jp-inverse-layout-color4); } .jlab-gather-presenter-container { @@ -374,10 +375,6 @@ color: var(--jp-ui-inverse-font-color1); } -.jlab-gather-avatar-grid { - /* height: 60%; */ -} - .jlab-gather-avatar-sidepane { width: 128px; height: 128px; @@ -447,6 +444,7 @@ .jlab-gather-device-settings-row { display: flex; + align-items: center; } .jlab-gather-device-title {