lower brightness
This commit is contained in:
parent
2e0f668300
commit
99882e78ae
3 changed files with 8 additions and 8 deletions
|
|
@ -321,8 +321,8 @@ class Week(models.Model):
|
|||
color = item.get_hue(update=True)
|
||||
if color:
|
||||
if not colors:
|
||||
colors.append(f'hsl({color}, 100%, 15%, 0.8)')
|
||||
colors.append(f'hsl({color}, 80%, 15%, 0.8)')
|
||||
else:
|
||||
colors.append(f'hsl({color}, 60%, 15%, 0.8)')
|
||||
colors.append(f'hsl({color}, 50%, 15%, 0.8)')
|
||||
return 'linear-gradient(to bottom, %s)' % ', '.join(colors)
|
||||
return ''
|
||||
|
|
|
|||
|
|
@ -194,9 +194,9 @@ async function loadEdit(id, args) {
|
|||
const color1 = data.edit.clips[0].hue
|
||||
const color2 = data.edit.clips[parseInt(data.edit.clips.length/2)].hue
|
||||
const color3 = data.edit.clips[data.edit.clips.length-1].hue
|
||||
document.documentElement.style.setProperty('--color1', `hsl(${color1}, 100%, 15%, 0.8)`);
|
||||
document.documentElement.style.setProperty('--color2', `hsl(${color2}, 60%, 15%, 0.8)`);
|
||||
document.documentElement.style.setProperty('--color3', `hsl(${color3}, 60%, 15%, 0.8)`);
|
||||
document.documentElement.style.setProperty('--color1', `hsl(${color1}, 80%, 15%, 0.8)`);
|
||||
document.documentElement.style.setProperty('--color2', `hsl(${color2}, 50%, 15%, 0.8)`);
|
||||
document.documentElement.style.setProperty('--color3', `hsl(${color3}, 50%, 15%, 0.8)`);
|
||||
}
|
||||
|
||||
var value = []
|
||||
|
|
|
|||
|
|
@ -105,9 +105,9 @@ async function loadData(id, args) {
|
|||
const color1 = clips[0].hue
|
||||
const color2 = clips[parseInt(clips.length/2)].hue
|
||||
const color3 = clips[clips.length-1].hue
|
||||
document.documentElement.style.setProperty('--color1', `hsl(${color1}, 100%, 15%, 0.8)`);
|
||||
document.documentElement.style.setProperty('--color2', `hsl(${color2}, 60%, 15%, 0.8)`);
|
||||
document.documentElement.style.setProperty('--color3', `hsl(${color3}, 60%, 15%, 0.8)`);
|
||||
document.documentElement.style.setProperty('--color1', `hsl(${color1}, 80%, 15%, 0.8)`);
|
||||
document.documentElement.style.setProperty('--color2', `hsl(${color2}, 50%, 15%, 0.8)`);
|
||||
document.documentElement.style.setProperty('--color3', `hsl(${color3}, 50%, 15%, 0.8)`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue