themix-gui icon indicating copy to clipboard operation
themix-gui copied to clipboard

Feature Request: Import Theme Configuration?

Open ghost opened this issue 9 years ago • 13 comments

I'd like to request if possible an import theme button that can import the existing GTK3 based configurations in favor of an old theme.

Or something similar

I don't know if it's possible but please consider this as a suggestion.

Thanks

ghost avatar Apr 30 '16 14:04 ghost

I did not understood clearly what does that mean, to import the colorscheme from another GTK theme?

actionless avatar May 01 '16 07:05 actionless

Yes exactly! I noticed the configurations are modified on GTK Theme Folder.

I believe that the tool you are using is based on Numix, and hopefully you probably add this enhancement in a future release to import the colorscheme from another GTK Theme as you said. :+1:

ghost avatar May 03 '16 11:05 ghost

now there is a import plugin api feel free to implement it as plugin

ex.: https://github.com/themix-project/oomox/tree/master/plugins

actionless avatar May 16 '18 00:05 actionless

Help needed: How to implement this plugin in Oomox? (I am on Majaro gnome, and installed Oomox via Pamac.)

tnilzon avatar Sep 20 '18 11:09 tnilzon

@tnilzon you can take a look on this really tiny plugin which takes colors from .yml palettes from base16 project and imports them as oomox themes:

https://github.com/themix-project/oomox/tree/master/plugins/import_base16

actionless avatar Sep 20 '18 12:09 actionless

however, i think, it will be nice to add "import" button in GUI (because now for importing something you need to copy it to ~/.config/oomox/colors)

actionless avatar Sep 20 '18 12:09 actionless

Yes, an "Import" button would be the best, great if you could implement that/ thanks!

tnilzon avatar Sep 20 '18 12:09 tnilzon

but, just to clarify, i am going to implement only "Import" button itself, which will be used by import plugins (https://github.com/themix-project/oomox/issues/161)

so if you want to import the colors from a new source you still need to implement that plugin itself. so far supported only importing colors from base16 and from images (also there is import of Xresources palette done implicitly when using xresources color themes but it also going to be refactored to be a plugin)

actionless avatar Sep 20 '18 13:09 actionless

Would this be possible: Press the 'Import' button -> Select a gtk theme -> the selected theme is then imported and can be edited as a new theme (as the "default" pre-installed Oomox themes) ?

tnilzon avatar Sep 21 '18 06:09 tnilzon

yes, that would be possible

you can already start writing a plugin because you won't need to modify it to work together with that button:

https://github.com/themix-project/oomox/blob/master/plugins/import_base16/oomox_plugin.py#L106

as you can see in this example, plugin just reads some theme from a filepath, it doesn't know if it was opened from ListView or from FileOpenDialog

actionless avatar Sep 21 '18 13:09 actionless

Well I am afraid I am not skilled to write any plugin by myself. So I will have to wait for it to be implemented (the button and the plugin). Thanks anyway!

tnilzon avatar Sep 21 '18 14:09 tnilzon

rather than waiting you could just use color picker (eyedropper tool) in oomox when selecting the colors (it's available when you opening palette editor by clicking on button near each color) and pick the colors from the theme of your choice

actionless avatar Sep 21 '18 16:09 actionless

OK, Thanks the tip!

tnilzon avatar Sep 21 '18 18:09 tnilzon