Function __global->generate_themewizard_theme
Definitions
sources/themewizard.php
- Make a theme. Note that this will trigger the AFM.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $theme_name | string | No | No | required parameter | N/A | N/A | Name of the theme |
| $source_theme | ID_TEXT | No | No | required parameter | N/A | N/A | The theme it's being generated from |
| $algorithm | ID_TEXT | No | No | required parameter | equations hsv | N/A | The algorithm to use |
| $seed | string | No | No | required parameter | N/A | N/A | Seed colour to use |
| $dark | boolean | No | No | required parameter | N/A | N/A | Whether it will be a dark theme |
| $use_on_all | boolean | No | No | False | N/A | N/A | Whether to use the theme immediately |
| $fix_only | boolean | No | No | False | N/A | N/A | Whether we are fixing an existing theme |
Returns
- List of files created
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Make a theme. Note that this will trigger the AFM.
*
* @param string $theme_name Name of the theme
* @param ID_TEXT $source_theme The theme it's being generated from
* @param ID_TEXT $algorithm The algorithm to use
* @set equations hsv
* @param string $seed Seed colour to use
* @param boolean $dark Whether it will be a dark theme
* @param boolean $use_on_all Whether to use the theme immediately
* @param boolean $fix_only Whether we are fixing an existing theme
* @return array List of files created
*/
function generate_themewizard_theme(string $theme_name, string $source_theme, string $algorithm, string $seed, bool $dark, bool $use_on_all = false, bool $fix_only = false) : array
* Make a theme. Note that this will trigger the AFM.
*
* @param string $theme_name Name of the theme
* @param ID_TEXT $source_theme The theme it's being generated from
* @param ID_TEXT $algorithm The algorithm to use
* @set equations hsv
* @param string $seed Seed colour to use
* @param boolean $dark Whether it will be a dark theme
* @param boolean $use_on_all Whether to use the theme immediately
* @param boolean $fix_only Whether we are fixing an existing theme
* @return array List of files created
*/
function generate_themewizard_theme(string $theme_name, string $source_theme, string $algorithm, string $seed, bool $dark, bool $use_on_all = false, bool $fix_only = false) : array

