Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pleroma-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ilja
pleroma-fe
Commits
4b25475b
Commit
4b25475b
authored
6 years ago
by
HJ
Browse files
Options
Downloads
Patches
Plain Diff
setColors -> applyTheme. For sanity. Also disabled export because nobody uses it
and should not use anyway.
parent
fe2fe092
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/services/style_setter/style_setter.js
+2
-3
2 additions, 3 deletions
src/services/style_setter/style_setter.js
with
2 additions
and
3 deletions
src/services/style_setter/style_setter.js
+
2
−
3
View file @
4b25475b
...
...
@@ -71,7 +71,7 @@ const getTextColor = function (bg, text, preserve) {
return
text
}
const
setColors
=
(
input
,
commit
)
=>
{
const
applyTheme
=
(
input
,
commit
)
=>
{
const
{
rules
,
theme
}
=
generatePreset
(
input
)
const
head
=
document
.
head
const
body
=
document
.
body
...
...
@@ -516,7 +516,7 @@ const setPreset = (val, commit) => {
// load config -> set preset -> wait for styles.json to load ->
// load persisted state -> set colors -> styles.json loaded -> set colors
if
(
!
window
.
themeLoaded
)
{
setColors
(
data
,
commit
)
applyTheme
(
data
,
commit
)
}
})
}
...
...
@@ -524,7 +524,6 @@ const setPreset = (val, commit) => {
export
{
setStyle
,
setPreset
,
setColors
,
getTextColor
,
generateColors
,
generateRadii
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment