Individual color schemes are simply HTML style strings (i.e. a series of CSS properties) that are applied to certain display elements in the Manager. If you are a CSS developer and you have an idea for a Survivor Color Scheme, I encourage you contribute your idea to the Manager!
Hit the jump for complete instructions!
InstructionsHere's what you should do to send me your scheme:
- Clone the project from GitHub.
- Find the file called /v2/api/assets/survivor_sheet_options.py
- In the python dictionary called 'survivor_color_schemes', add a new dictionary for your scheme.
- Send me a Pull Request.
How to define your new scheme
When creating your new scheme, consider the following example:
'name': 'Twilight Knight',
'background': 'radial-gradient(#919B9A, #273736, #0D1110)',
Every scheme needs a 'handle' and two attributes: name and style.
In the above example, the 'handle' is twilight_knight and the name is 'Twilight Knight'. The handle is used internally by the Manager and the name is what the users will see in the drop-down menu for choosing your scheme.
Add style properties to your schemeThe style attribute should be a python dictionary where each key/value pair, when taken as a whole, can be interpreted as a single CSS property.
In the above example, the key/value pair 'border-color': "#000" will ultimately be interpreted by the Manager thus:
border-color: "#000"And that's it! Your style dictionary can include any CSS properties you like and there is no limit to how many key/value pairs you can include!
Once I receive your Pull Request, I will review it and, if everything looks good, I will contact you about including it in the next release of the Manager!