mate-desktop / mate-terminal

The MATE Terminal Emulator
http://www.mate-desktop.org
GNU General Public License v3.0
133 stars 73 forks source link

Can't import / export color schemes (solarized) #60

Open MartinThoma opened 10 years ago

MartinThoma commented 10 years ago

I really would like to have the solarized color scheme:

http://ethanschoonover.com/solarized

But currently (MATE Terminal 1.6.1), it seems not to be possible to import / export color schemes. You can change the colors, but this is not comfortable, as you have to guess the meaning of the different boxes.

Currently, there are the following color schemes:

I suggest adding solarized (dark and light) and providing some information how to import / export color schemes.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/28255085-can-t-import-export-color-schemes-solarized?utm_campaign=plugin&utm_content=tracker%2F757836&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F757836&utm_medium=issues&utm_source=github).
wojdyr commented 10 years ago

+1

There are scripts to set this color palette: https://github.com/countjocular/mate-terminal-colors-solarized https://github.com/NeuralSandwich/mate-terminal-colors-solarized but I couldn't make it work (there are 193 (!) forks of this repo, maybe another would work).

Finally I've opened xfce-terminal which has built-in solarized schemes: http://git.xfce.org/apps/xfce4-terminal/tree/colorschemes/solarized-dark.theme.in http://git.xfce.org/apps/xfce4-terminal/tree/colorschemes/solarized-light.theme.in and copied colors one by one.

I'd try to add solarized to the built-in palettes if developers are not against having more palettes.

infirit commented 10 years ago

We would like to keep the list of default ones somewhat sane length wise :).

The problem with the script is that it uses gconf which has been replaced in MATE 1.6 with gsettings. From the command line you can use $ gsettings list-recursively org.mate.terminal.profile:/org/mate/terminal/profiles/default/ to get all the profile settings, change "default" with the profile name you want to update. To set them use gsettings set org.mate.terminal.profile:/org/mate/terminal/profiles/default/ silent-bell true.

MartinThoma commented 10 years ago

What is a sane length? Who chooses by which criteria which color scheme is worth being a default one?

Idea: Theme import / export

I would really like a possibility to import / export my complete theme / desktop appearance. This includes the color scheme, but much more:

So it would be great if we had a standard file format (some kind of archive file which contains all necessary images and config files) as well as a program that is able to generate this file from the current settings and apply the desired theme. Such an standard file format would make it possible for designers to create nice themes (e.g. solarized, bisigi project) and share it (e.g. like on kde-look.org, gnome-look.org or xfce-look.org) while the program can manage the underlying, eventually changing configuration. I guess for most parts (such as the color theme) such a program would only have to place the files at the correct location (while e.g. the login window requires super user rights).

I could try to define such a "theme file format" and try to implement such a program. But I would definitely need some help by somebody who is better at programming / knows MATE. Because I still have no idea how I could add another color theme to my current system. (Are the color schemes currently hard coded into the system? I've searched for all the color scheme names on my system, but I didn't find them.)

Do you think that would be a good idea? Is there already something similar?

wojdyr commented 10 years ago

@infirit: I wouldn't say that 8 presets like in xfce terminal or 10 like in OSX Terminal is insane. IMO it's better for usability than having to hunt for external scripts. YMMV. As you can see from the number of forks of gnome/mate-terminal-colors-solarized it's a rather popular one.

infirit commented 10 years ago

This is the problem, everyone want a different one. I'll see if I can create a simple script that can load new colour schemes from simple ini/csv files (no promises).

@MartinThoma I don't see a complete save/restore happening. If you put everything (themes, icons etc) in your $HOME you can do a backup of the directories.

wojdyr commented 10 years ago

out of curiosity: could you point me to another scheme that has similar or larger popularity?

Of course it can be done with a simple shell script. Just type in google: "mate-terminal" color scheme Almost all the results on the first page are about scripts that install a single theme: solarized.

On 24 March 2014 19:42, Sander Sweers notifications@github.com wrote:

This is the problem, everyone want a different one. I'll see if I can create a simple script that can load new colour schemes from simple ini/csv files (no promises).

@MartinThoma https://github.com/MartinThoma I don't see a complete save/restore happening. If you put everything (themes, icons etc) in your $HOME you can do a backup of the directories.

— Reply to this email directly or view it on GitHubhttps://github.com/mate-desktop/mate-terminal/issues/60#issuecomment-38491077 .

egmontkob commented 8 years ago

Adding a load/save infrastructure requires quite some work. In the mean time, shipping Solarized would be a piece of cake. Gnome-terminal did so, see https://bugzilla.gnome.org/show_bug.cgi?id=655030.

ghost commented 5 years ago

I would also like to see a built in solarized theme. As noted searching mate-terminal themes brings up a bunch of these scripts out of the box. Contrary to what @wojdyr stated this is less intuitive and usable than it being built in. Reason being due to so many variations the user then have to compare/contrast them to pick one, or just give up and go use something else.

edit: I do see some code which may implement at least part of this. If this is the case then perhaps this request should be closed to avoid future confusion.