Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
emo
TIDO
Commits
a833bb84
Commit
a833bb84
authored
Oct 13, 2020
by
nwindis
☕
Browse files
SET project specific colors
parent
ae90a892
Pipeline
#154251
failed with stages
in 2 minutes and 1 second
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/App.vue
View file @
a833bb84
...
...
@@ -306,9 +306,12 @@ export default {
this
.
init
();
// TODO: check if colors are defined in index.template.html, if not, use colors from quasar.conf.js
colors
.
setBrand
(
'
primary
'
,
this
.
config
.
colors
.
primary
);
colors
.
setBrand
(
'
secondary
'
,
this
.
config
.
colors
.
secondary
);
colors
.
setBrand
(
'
accent
'
,
this
.
config
.
colors
.
accent
);
// console.log(this.config.colors.primary);
if
(
this
.
config
.
colors
.
primary
!==
'
false
'
)
{
colors
.
setBrand
(
'
primary
'
,
this
.
config
.
colors
.
primary
);
colors
.
setBrand
(
'
secondary
'
,
this
.
config
.
colors
.
secondary
);
colors
.
setBrand
(
'
accent
'
,
this
.
config
.
colors
.
accent
);
}
this
.
$q
.
dark
.
set
(
'
auto
'
);
...
...
src/index.template.html
View file @
a833bb84
...
...
@@ -36,7 +36,7 @@
},
"
standalone
"
:
true
,
"
colors
"
:
{
"
primary
"
:
"
black
"
,
"
primary
"
:
false
,
"
secondary
"
:
"
papayawhip
"
,
"
accent
"
:
"
darkred
"
}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment