use bar to show today in calendar

This commit is contained in:
les
2021-05-07 23:14:48 +02:00
parent 81b6b19944
commit 31605365f9

View File

@@ -6,7 +6,7 @@ export function attributesFromEvents (_events, _tags) {
const colors = ['blue', 'orange', 'yellow', 'teal', 'indigo', 'green', 'red', 'purple', 'pink', 'gray'] const colors = ['blue', 'orange', 'yellow', 'teal', 'indigo', 'green', 'red', 'purple', 'pink', 'gray']
const tags = take(_tags, 10).map(t => t.tag) const tags = take(_tags, 10).map(t => t.tag)
let attributes = [] let attributes = []
attributes.push({ key: 'today', dates: new Date(), highlight: { color: 'green', fillMode: 'outline' } }) attributes.push({ key: 'today', dates: new Date(), bar: { color: 'green', fillMode: 'outline' } })
const now = dayjs().unix() const now = dayjs().unix()
function getColor (event) { function getColor (event) {