Skip to content

Commit

Permalink
Add an icon for the chat panel
Browse files Browse the repository at this point in the history
  • Loading branch information
brichet committed May 29, 2023
1 parent 8db815c commit f19da7d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/chat/src/chatpanel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ import { ITranslator } from '@jupyterlab/translation';
import { LabIcon, SidePanel, caretRightIcon } from '@jupyterlab/ui-components';
import { Panel, Widget } from '@lumino/widgets';

import chatSvgstr from '../style/icons/chat.svg';

/**
* The icon for the chat panel.
*/
export const chatIcon = new LabIcon({
name: 'collaboration:chat',
svgstr: chatSvgstr
});

/**
* The chat panel widget.
*/
Expand Down
9 changes: 9 additions & 0 deletions packages/chat/src/svg.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*
* Copyright (c) Jupyter Development Team.
* Distributed under the terms of the Modified BSD License.
*/

declare module '*.svg' {
const value: string; // @ts-ignore
export default value;
}
2 changes: 2 additions & 0 deletions packages/chat/style/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
border: solid 1px;
min-height: 1em;
padding: 3px;
margin-left: 3px;
border-radius: 5px;
}

/* .jp-ChatPanel-promptPlaceholder:empty:not(:focus):before {
Expand Down
20 changes: 20 additions & 0 deletions packages/chat/style/icons/chat.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f19da7d

Please sign in to comment.