-
Notifications
You must be signed in to change notification settings - Fork 275
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
Easily set included schemes without file browser #26
Comments
Also for a coworker the Add-Ons folder wasn't in his Matlab folder, but in AppData, so I suppose that location varies depending on the installation |
Sorry to hear you had difficulties getting it to run.
The quick start instructions are to run `schemer_import` without any
parameters. If you do this it will open a GUI to select the colour scheme
.prf file. By default, the GUI should open at the directory containing the
schemes which ship with schemer. So it should open with the directory
containing monokai.prf showing so you can select it straight away.
What happens for you when you run `schemer_import` without any arguments?
…On Tue, 26 May 2020, 21:27 Brett Ables, ***@***.***> wrote:
I was confused at first because there weren't clear instructions on what
to do to apply one of the included schemes. I didn't know that I needed to
navigate to ~\Matlab\Add-Ons\Collections\MATLAB
Schemer\scottclowe-matlab-schemer-2156bb9\schemes to find a file to load.
My suggestion would be to add support for quickly setting the included
schemes via an API like schemer_import('monokai') and the function
automatically loads the included file.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#26>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAWCADZMFDV3LXXBOY2NCVDRTQQZRANCNFSM4NLCZC7Q>
.
|
Thank you for mentioning the directory containing the schemes. I otherwise wouldn't have found it. I also have the GUI open to my home directory when running |
I got around this (and made switching between my favorite schemes on the fly much easier) by writing a small wrapper that uses function switch_scheme(theme)
arguments
theme (1,1) string = "default";
end
switch theme
case "default"
themefile = "default.prf";
case "dark"
themefile = "darkmate.prf";
case "contrast"
themefile = "vibrant.prf";
otherwise
themefile = "default.prf";
end
themefile = fullfile(fileparts(which("schemer_import")),"schemes",themefile);
schemer_import(char(themefile));
end |
I was confused at first because there weren't clear instructions on what to do to apply one of the included schemes. I didn't know that I needed to navigate to
~\Matlab\Add-Ons\Collections\MATLAB Schemer\scottclowe-matlab-schemer-2156bb9\schemes
to find a file to load.My suggestion would be to add support for quickly setting the included schemes via an API like schemer_import('monokai') and the function automatically loads the included file.
The text was updated successfully, but these errors were encountered: