Skip to content

Generating simple color themes for browsers and other apps

License

Notifications You must be signed in to change notification settings

vyach-vasiliev/GenColorThemes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GenColorThemes

GitHub license Chrome FireFox Maxthon Opera Presto Opera Blink Support me

Generating simple color themes for browsers. Works on Python 2.7+ and 3.4+


Preview

Google Chrome (Emerland)

Google Chrome

Mozilla FireFox (Pomegrante)

Mozilla FireFox

Maxthon (Wetasphalt)

Maxthon


Supported apps


How to use

import GenColorThemes.gen as gct
p = gct.Params()
p.theme_name = "Test theme"
p.theme_description = "Test description"
ch = gct.Chromium().create('#27ae60', p)

Output structure

out/
├──  Chromium-like/
│    ├──  resources/
│    │    ├──  _locales/
│    │    │    └──  ... (<lang_code>/messages.json)
│    │    ├──  images/
│    │    │    └──  ... (*.png)
│    │    └──  manifest.json
│    ├──  name-theme.crx
│    ├──  name-theme.pem
│    └──  name-theme.zip (option)
│
├──  FireFox-like
│    └──  name-theme/
│         └── install.html
├──  Maxthon
│    └──  name-theme.mxskin
├──  Opera-Blink
│    ├──  name-theme/
│    │    ├──  opera.ini
│    │    └──  persona.ini
│    └──  name-theme.zip
│
├──  Opera-Presto
│    ├──  name-theme/
│    │    ├──  opera.ini
│    │    └──  persona.ini
│    └──  name-theme.zip
└──  Slim
     ├──  name-theme/
     │    ├──  skin.ini
     │    └──  ... (*.bmp)
     └──  name-theme.zip

More

Create an additional .zip archive:

ch = gct.Chromium()
ch.zip = True

Another Chrome-browser path:

ch = gct.Chromium()
ch.browser_path = 'C:\\Google\\Chrome\\Application'

Another Out-folder path:

p.template_path_out = 'out'

Edit manifest.json:

everything except - ch.template_manifest ['theme']

ch = gct.Chromium()
ch.template_manifest['default_locale'] = 'en'
ch.template_manifest['version'] = '2'
...

License

MIT License or see the LICENSE file

Why you need a license?

Beer?

Support me or just write what you would like to add to the program.

I will always be happy with your feedback. Do not be shy, write to me!

About

Generating simple color themes for browsers and other apps

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages