forked from jupyterlab/jupyterlab
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport PR jupyterlab#7192: progress on icons: added inline svg icon…
… support to toolbar buttons
- Loading branch information
1 parent
15d0c23
commit 0a989e6
Showing
42 changed files
with
342 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
/*----------------------------------------------------------------------------- | ||
| Copyright (c) Jupyter Development Team. | ||
| Distributed under the terms of the Modified BSD License. | ||
|----------------------------------------------------------------------------*/ | ||
|
||
/* This file is a workaround for 1.0.x versions of Jlab pulling in 1.1.x | ||
versions of statusbar. | ||
TODO: delete this file in Jlab 2.0 | ||
*/ | ||
|
||
import * as React from 'react'; | ||
|
||
import { classes, style } from 'typestyle/lib'; | ||
|
||
import { NestedCSSProperties } from 'typestyle/lib/types'; | ||
|
||
const icon = (): NestedCSSProperties => { | ||
return { | ||
backgroundRepeat: 'no-repeat', | ||
backgroundPosition: 'center', | ||
backgroundSize: '18px', | ||
minHeight: '24px', | ||
width: '20px' | ||
}; | ||
}; | ||
|
||
/** | ||
* (DEPRECATED) A namespace for IconItem statics. | ||
*/ | ||
export namespace IconItem { | ||
/** | ||
* Props for an IconItem | ||
*/ | ||
export interface IProps { | ||
/** | ||
* A CSS class name for the icon. | ||
*/ | ||
source: string; | ||
} | ||
} | ||
|
||
/** | ||
* (DEPRECATED) A functional tsx component for an icon. | ||
*/ | ||
export function IconItem( | ||
props: IconItem.IProps & React.HTMLAttributes<HTMLDivElement> | ||
): React.ReactElement<IconItem.IProps> { | ||
const { source, className, ...rest } = props; | ||
return ( | ||
<div className={classes(className, source, style(icon()))} {...rest} /> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/theme-dark-extension/style/icons/md/ic_refresh_18px.svg
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.