Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove spaghetti-dependency to f.t/ft-theming #29

Open
carstingaxion opened this issue Sep 4, 2023 · 0 comments
Open

Remove spaghetti-dependency to f.t/ft-theming #29

carstingaxion opened this issue Sep 4, 2023 · 0 comments
Labels
bug Something isn't working dependencies 3rd-party Dependencies

Comments

@carstingaxion
Copy link
Member

function set_colors( array $manifest ) : array {
	$relevant_colors = Themed_Login\ft_get_relevant_colors();

	$manifest['background_color'] = $relevant_colors['ft_accent'];
	$manifest['theme_color']      = $relevant_colors['ft_accent'];

	return $manifest;
}

* Provide app colors for background and theme.
*
* Overriding the (default) manifest json.
*
* @param array<string, mixed> $manifest Data of the manifest, to send in the REST API response.
*
* @return array<string, mixed> $manifest Data of the manifest, to send in the REST API response.
*/
function set_colors( array $manifest ) : array {
$relevant_colors = Themed_Login\ft_get_relevant_colors();
$manifest['background_color'] = $relevant_colors['ft_accent'];
$manifest['theme_color'] = $relevant_colors['ft_accent'];
return $manifest;
}
/**
* Provide app defaults for OS integration and UI.

@carstingaxion carstingaxion added bug Something isn't working dependencies 3rd-party Dependencies labels Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies 3rd-party Dependencies
Projects
None yet
Development

No branches or pull requests

1 participant