Omega-Numworks / Omega-Themes

Theme engine for Omega
Other
13 stars 10 forks source link

Download themes and icons from Github repo #25

Closed nponsard closed 4 years ago

nponsard commented 4 years ago

If the file/folder is not found, theme_manager.py will try to download the icons from github. The given icon path need to point to the folder containing the icons. This path needs to correspond to the path of the folder in "download mode" (when you click download in the interface of Github).

For example with my theme the complete url would be https://raw.githubusercontent.com/NilsPonsard/Omega-Themes/master/icons/omega_nord/ but you only need the part after https://raw.githubusercontent.com/ so the path in the theme.json file is

"icons": "NilsPonsard/Omega-Themes/master/icons/omega_nord",

I don’t know if my explanation is clear, if not, feel free to ask details

I added the ability to download a theme file from a github repo as explained here : https://github.com/NilsPonsard/Omega-theme-template

nponsard commented 4 years ago

I have reworked a bit the system so it downloads the files if not found locally and you can use the script to add themes locally with the parameters --download <github_user>/<repo_name>/<branch>.

I made a template repo to explain how to use it : https://github.com/NilsPonsard/Omega-theme-template

M4xi1m3 commented 4 years ago

Thank you for your PR, but I rewrote it to load themes from git repos (#27). Thus, this should be closed.