Add interface languages and improve themes and workspace controls for 0.1.36
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { tr } from '../i18n/index.ts';
|
||||
import { Decoration, EditorView, WidgetType } from "@codemirror/view";
|
||||
import { actionIcon } from "../ui/actionIcons";
|
||||
|
||||
@@ -19,14 +20,14 @@ class NoteTitle extends WidgetType {
|
||||
const button = document.createElement("button");
|
||||
button.type = "button";
|
||||
button.className = "note-title-button";
|
||||
button.setAttribute("aria-label", "Rename note");
|
||||
button.setAttribute("aria-label", tr("Rename note"));
|
||||
button.append(document.createTextNode(this.title), actionIcon("rename"));
|
||||
button.dataset.editorTooltip = "Rename note";
|
||||
button.dataset.editorTooltip = tr("Rename note");
|
||||
heading.replaceChildren(button);
|
||||
|
||||
const input = document.createElement("input");
|
||||
input.className = "note-title-input";
|
||||
input.setAttribute("aria-label", "Note filename");
|
||||
input.setAttribute("aria-label", tr("Note filename"));
|
||||
input.autocomplete = "off";
|
||||
input.spellcheck = false;
|
||||
input.hidden = true;
|
||||
|
||||
Reference in New Issue
Block a user