New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up handling of Icons under unified LabIcon #7767
Clean up handling of Icons under unified LabIcon #7767
Commits on Jan 18, 2020
-
-
-
-
initital stab at minimal IJLIcon interface
current plan is to add to IJLIcon as the important bits of the JLIcon implementation get locked odwn
-
-
-
Commits on Jan 21, 2020
Commits on Jan 23, 2020
Commits on Jan 24, 2020
-
added JLIcon.resolve static method
also fixed/added a bunch of doc string to JLIcon
-
-
-
-
-
untangled IFileType vs FileType mess in DocumentRegistry
- first commit since 30d390a for which jlab successfully builds - still need to actually test out/run the code, see how many things the recent changes to icon handling broke
Commits on Jan 25, 2020
-
-
IFileType.icon
now working in rendermime-interfaces;- fully functional example of `icon: string | {name, svgstr}` interface can be found in (the rendermime-interfaces based) vega5-extension pkg - initial testing indicates that the rest of the icons in jlab also made it through the recent changes mostly (completely?) unscathed - there do seem to be some real CI failures in test-docregistry
-
-
Commits on Jan 26, 2020
-
-
-
-
-
-
-
removed DocumentRegistry.FileType and reverts all usages to IFileType
- automagic upconversion of file type icons will now only occur for the rendermime-interfaces version of IFileType.icon from rendermime-interfaces. Conversely, all icons specified in the docregistry version of IFileType.icon will need to be full JLIcon instances in the first place
-
-
-
change all refs to iconRenderer => icon across codebase
- exception: refs to title.iconRenderer, where title is a Lumino Title obj, were left as-is
-
fixed up signature of IRenderer.render, can now flexibly take options
- related to code added to @lumino/virtualdom in jupyterlab/lumino#44. Once that's pulled in, the TODOs added in this PR will then be able to be cleared
-
Commits on Jan 27, 2020
-
added functions to help render icon-as-css-background nodes
- also added some docs with a spec for how icon resolution is supposed to work
-
-
-
fixed resolveX methods; removed getElement, marked getReact => UNSTABLE
- LabIcon.UNSTABLE_getReact needs to stick around for the moment to support 2 corner cases. The one in settingeditor is fixable (with a bit of work), but the one in launcher might be trickier, depending as it does on lumino's CommandRegistry
-
-
fixed up and simplified item icon handling in filebrowser listing
- also removed usage of iconStyle from filebrowser, with the eventual goal of returning this to a non-exported function local to the ui-components pkg
-
removed UNSTABLE_getReact from settingeditor
- now UNSTABLE_getReact is only needed for two usages in launcher
-
fixed wrong casing in icon name "textEditor" => "text-editor"
- also, the icon import statements in iconimports.ts are now generated in alphabetical order
Commits on Jan 28, 2020
-
iconClass => iconName conversion shim mostly removed; one special case
- the shim has been removed from the normal code path and incorporated into UNSTABLE_getReact - still need the shim in two instances in the launcher pkg
-
-
-
Commits on Jan 29, 2020
-
implemented fallback arg for LabIcon.resolveX methods
- also bugfix in svg replacement routine
-
removed last vestige of iconClass => icon name shim, with one exception
- sole exception: UNSTABLE_getReact
-
-
-
-
-
-
Commits on Jan 30, 2020
-
fix docs and add changelog entry
Steven Silvester committedJan 30, 2020 -
Steven Silvester committed
Jan 30, 2020
Commits on Feb 3, 2020
-
allow other svg attributes in test
Steven Silvester committedFeb 3, 2020