开源软件名称(OpenSource Name):scottclowe/matlab-schemer开源软件地址(OpenSource Url):https://github.com/scottclowe/matlab-schemer开源编程语言(OpenSource Language):MATLAB 96.0%开源软件介绍(OpenSource Introduction):MATLAB SchemerThis MATLAB package makes it easy to change the color scheme (a.k.a. theme) of the MATLAB display and GUI. You can use Schemer to import a predefined color scheme, transfer your color settings between installations, or create your own color scheme. A collection of color schemes is available in the schemes folder. Samples of these can be seen in schemes/README.md, and browsed in the folder schemes/screenshots. This is a static subtree copy of the contents of the repository matlab-schemes. Importing a color schemeColor schemes can be easily imported by running When importing a color scheme, most of the settings will change immediately. However, some settings will require MATLAB to be restarted:
For more details, see the documentation on the function Transferring a color scheme between MATLAB installationsIf you are using a personalised color scheme in MATLAB, you may wish to save it for yourself so you can re-implement it easily if you reintall MATLAB. Or you may wish to transfer your personalised color scheme from one machine to another. This section describes the steps relevant in either scenario. On the source machine, run When importing the new color scheme, instead of running Reverting to the MATLAB default color schemeShould you wish to revert to the set of colours which MATLAB ships with, you
should run This will import the MATLAB default theme from the stylesheet To restore the out-of-the-box state for boolean settings (such as whether to
highlight the current line) in addition to the colours, run
You may be tempted to instead revert the colours by clicking the
Creating a color scheme for others to useWhen creating a color scheme to share with the rest of the world, it is recommended to ensure colours are chosen appropriately for all possible settings, even if they are not enabled. For example, if you are creating a dark colour scheme, you may have cell highlighting disabled but it would still be ill-advised to leave the background highlight colour for cell displays as the default pale beige because other users may have this setting enabled. Exporting through the GUIIf you have made a custom color scheme using the MATLAB GUI to pick the colours,
you can export the new color scheme with Please note, this requires you to have visited all relevant panes of the
Preferences window at least once since MATLAB was installed, even if the
settings have not been changed from the default.
See the help for Porting a theme from a different editorIf you are converting a color scheme designed for another editor into a MATLAB stylesheet, you may find it easier to start with a duplicate of the template stylesheet develop/template_scheme.prf and copy the colours into this. To understand which colour settings the parameter names correspond to, you can refer to the annotated screenshot, develop/annotated_default.png. The values for each colour in the .prf stylesheet must be recorded as single
RGB integers, with each colour channel in 8-bit (0-255), R as big endian,
and a opaque alpha channel. Because the format for RGB colours in Java allows
for an alpha channel and the integers are signed, all the colours you record
in your .prf file should be negative, spanning the range
The text file for your pre-existing theme will typically specify its colous in
hexadecimal format, or in terms of R, G, B values. You will need
to convert the colours from this format into the format which MATLAB preference
files use to specify colours instead.
The Schemer package comes with a utility function
develop/color2javaRGBint.m
to help make this easier. See the Setting colours for additional languagesMATLAB supports syntax highlighting for several languanges in addition to its own. Currently these languages are MuPAD, TLC, VRML, C/C++, Java, VHDL, Verilog, and XML/HTML. The colours used for the syntax highlighting of all these languages can be set in the Languages subpanel of the Editor/Debugger pane in the Preferences window. Typically, one will want to make a color scheme which has colours in these languages which match the colours of the analogous MATLAB syntax. By default, this is the behaviour which Schemer will perform. Without specifying any inputs to If you do customise the colours for the additional language syntax highlighting,
you can export this by setting an appropriate flag, such as If you are designing a color scheme and are very detail-oriented, you may like to do the following.
Adding your scheme to this packageIf you are particularly proud of your new color scheme (and why wouldn't you be)
and would like to to share it with the world as part of the Please head over to our daughter repository, matlab-schemes, which holds the master copy of the color schemes issued here as part of Schemer in the schemes directory. If you fork matlab-schemes, add your AddendumRequirementsPlease note that Schemer requires MATLAB to be run with Java support enabled. Further informationFor details on how the method was implemented, see this Undocumented Matlab article. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论