Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michael Iseard
Kudos-Donations
Commits
2783b17e
Commit
2783b17e
authored
Feb 03, 2021
by
Michael Iseard
Browse files
Rename root style from "theme" to "primary" and add "secondary"
parent
7f90c882
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Front/Front.php
View file @
2783b17e
...
...
@@ -84,16 +84,22 @@ class Front {
*/
public
function
get_kudos_root_styles
():
string
{
$color
=
Settings
::
get_setting
(
'theme_color'
);
$color_dark
=
Utils
::
color_luminance
(
$color
,
'-0.06'
);
$color_darker
=
Utils
::
color_luminance
(
$color
,
'-0.09'
);
$primary
=
Settings
::
get_setting
(
'theme_color'
);
$primary_dark
=
Utils
::
color_luminance
(
$primary
,
'-0.06'
);
$primary_darker
=
Utils
::
color_luminance
(
$primary
,
'-0.09'
);
$secondary
=
'#2ec4b6'
;
$secondary_dark
=
Utils
::
color_luminance
(
$secondary
,
'-0.06'
);
$secondary_darker
=
Utils
::
color_luminance
(
$secondary
,
'-0.09'
);
return
"<style>
:root {
--kudos-theme-color:
$color
;
--kudos-theme-color-dark:
$color_dark
;
--kudos-theme-color-darker:
$color_darker
;
--kudos-theme-primary:
$primary
;
--kudos-theme-primary-dark:
$primary_dark
;
--kudos-theme-primary-darker:
$primary_darker
;
--kudos-theme-secondary:
$secondary
;
--kudos-theme-secondary-dark:
$secondary_dark
;
--kudos-theme-secondary-darker:
$secondary_darker
;
}
</style>"
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment