mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 18:23:19 +00:00
Date time is now visible on each task
This commit is contained in:
parent
839109b77b
commit
317b515e22
4 changed files with 27 additions and 10 deletions
|
@ -10,11 +10,19 @@ import QtQuick.Layouts
|
|||
import Mirai
|
||||
|
||||
RowLayout {
|
||||
id: control
|
||||
property taskItem task
|
||||
|
||||
function getFormatedText() {
|
||||
if (task?.time && task.time != "") {
|
||||
return `<font color=\"${colorPalette.selected.palette.overlay1}\">${task.time} \></font> ${task.text}`
|
||||
}
|
||||
return task.text
|
||||
}
|
||||
|
||||
AppCheckbox {
|
||||
id: checkbox
|
||||
text: task.text
|
||||
text: control.getFormatedText()
|
||||
checked: task.state === 'DONE'
|
||||
textComponent.color: task.date < internal.todayDate ? colorPalette.selected.palette.pink
|
||||
// : task.date === internal.todayDate ? colorPalette.selected.palette.sapphire
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue