|
|
|
@ -244,6 +244,24 @@ class Note {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Get the color that grayed-out text should be, for when we can't calculate
|
|
|
|
|
* CSS opacity or something.
|
|
|
|
|
*
|
|
|
|
|
* @return string
|
|
|
|
|
*/
|
|
|
|
|
public function getGrayColor(): string {
|
|
|
|
|
$text = $this->getTextColor();
|
|
|
|
|
|
|
|
|
|
if ($text == 'FFFFFF') {
|
|
|
|
|
return 'C0C0C0';
|
|
|
|
|
} else if ($text = '000000') {
|
|
|
|
|
return '808080';
|
|
|
|
|
} else {
|
|
|
|
|
return 'A9A9A9';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Set the note content
|
|
|
|
|
* @param string $markdown
|
|
|
|
|