Colorize Document Bar
This function colorizes the buttons with file names in the document bar of the Matlab editor according to the folders the files are stored in.
The colors are chosen to allow maximal distinct.
Different modes can be selected
- colorize_documentbar()
Colors are chosen automatically; each folder gets its own color.
- colorize_documentbar('folder',LIST_FOLDERS,LIST_COLORS)
with inputs
LIST_FOLDERS cellarray with string (1 x n)
LIST_COLORS n x 3 colormatrix (RGB values)
Files in one of the folders or subfolders listed in LIST_FOLDERS
get the color given in LIST_COLORS.
All other files get colors which are chosen automatically.
- colorize_documentbar('root',list_folders_root,LIST_ROOTCOLORS)
with inputs
list_folders_root: cellarray with string (1 x n)
LIST_ROOTCOLORS: n x 3 colormatrix (RGB values)
Files in one of the folders listed in list_folders_root get colorized
with the color given in LIST_ROOTCOLORS.
Files in subfolders of the folder get a color similar to the one of the
parent directory. Each subfolder has its own color.
All other files get colors which are chosen automatically.
colorize_documentbar('folder',LIST_FOLDERS,LIST_COLORS,'root',list_folders_root,LIST_ROOTCOLORS)
Combination of the two modes listed above.
colorize_documentbar('sort')
Sorts the opened documents by color. (Experimental)
This function requires the File Exchange contributions http://www.mathworks.com/matlabcentral/fileexchange/14317 and http://www.mathworks.com/matlabcentral/fileexchange/29702.
Citar como
Matthias Michelsburg (2024). Colorize Document Bar (https://www.mathworks.com/matlabcentral/fileexchange/39157-colorize-document-bar), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspirado por: findjobj - find java handles of Matlab graphic objects, Generate maximally perceptually-distinct colors
Inspiración para: embeddedmethodsviewer - show functions and methods within matlab editor
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
1.0.0.0 |