371f731e30
* Add description input to fields dialog QLineEdit seems like the best option, as it saves space and motivates users to keep their descriptions concise. * Add setDescriptions to note initialization script Went for the extra function instead of including it in setFields to prevent potential add-on breakages. * Add tooltip next to field name if description is set * Refactor code according to suggestions Set default tooltip placement to right instead of bottom Use .get() for fld["description"] Fix tab order in fields dialog Swap out abbreviation "desc" for full length name to keep consistency * Update Protobuf and Rust for description Add description to notetypes.proto and schema11 Co-authored-by: RumovZ <RumovZ@users.noreply.github.com> * Fix tooltips not updating with description Remove redundant variable tooltipOptions Update previousTooltip within reactive function * Move LabelDescription out of LabelName Co-authored-by: Henrik Giesel <hgiesel@users.noreply.github.com> * Decrease icon size and fix alignment Co-Authored-By: Henrik Giesel <hengiesel@gmail.com> * the new key needs to be cleared from fields, not the notetype itself Co-authored-by: RumovZ <RumovZ@users.noreply.github.com> Co-authored-by: Henrik Giesel <hengiesel@gmail.com> Co-authored-by: Damien Elmes <gpg@ankiweb.net>
55 lines
3.0 KiB
TypeScript
55 lines
3.0 KiB
TypeScript
// Copyright: Ankitects Pty Ltd and contributors
|
|
// License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
|
|
|
/// <reference types="../lib/image-import" />
|
|
|
|
export { default as boldIcon } from "bootstrap-icons/icons/type-bold.svg";
|
|
export { default as italicIcon } from "bootstrap-icons/icons/type-italic.svg";
|
|
export { default as underlineIcon } from "bootstrap-icons/icons/type-underline.svg";
|
|
export { default as superscriptIcon } from "@mdi/svg/svg/format-superscript.svg";
|
|
export { default as subscriptIcon } from "@mdi/svg/svg/format-subscript.svg";
|
|
export { default as eraserIcon } from "bootstrap-icons/icons/eraser.svg";
|
|
|
|
export { default as ulIcon } from "bootstrap-icons/icons/list-ul.svg";
|
|
export { default as olIcon } from "bootstrap-icons/icons/list-ol.svg";
|
|
export { default as listOptionsIcon } from "bootstrap-icons/icons/text-paragraph.svg";
|
|
|
|
export { default as justifyFullIcon } from "bootstrap-icons/icons/justify.svg";
|
|
export { default as justifyLeftIcon } from "bootstrap-icons/icons/text-left.svg";
|
|
export { default as justifyRightIcon } from "bootstrap-icons/icons/text-right.svg";
|
|
export { default as justifyCenterIcon } from "bootstrap-icons/icons/text-center.svg";
|
|
|
|
export { default as indentIcon } from "bootstrap-icons/icons/text-indent-left.svg";
|
|
export { default as outdentIcon } from "bootstrap-icons/icons/text-indent-right.svg";
|
|
|
|
export { default as squareFillIcon } from "bootstrap-icons/icons/square-fill.svg";
|
|
export { default as textColorIcon } from "@mdi/svg/svg/format-color-text.svg";
|
|
export { default as highlightColorIcon } from "@mdi/svg/svg/format-color-highlight.svg";
|
|
export { default as colorHelperIcon } from "@mdi/svg/svg/color-helper.svg";
|
|
|
|
export { default as paperclipIcon } from "@mdi/svg/svg/paperclip.svg";
|
|
export { default as micIcon } from "bootstrap-icons/icons/mic.svg";
|
|
export { default as ellipseIcon } from "@mdi/svg/svg/contain.svg";
|
|
export { default as functionIcon } from "@mdi/svg/svg/function-variant.svg";
|
|
|
|
export { default as descriptionIcon } from "bootstrap-icons/icons/info-circle.svg";
|
|
|
|
export { default as tagIcon } from "@mdi/svg/svg/tag.svg";
|
|
export { default as addTagIcon } from "@mdi/svg/svg/tag-plus.svg";
|
|
export { default as dotsIcon } from "@mdi/svg/svg/dots-vertical.svg";
|
|
export { default as deleteIcon } from "bootstrap-icons/icons/x.svg";
|
|
|
|
export const arrowIcon =
|
|
'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path fill="transparent" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2 5l6 6 6-6"/></svg>';
|
|
|
|
export { default as alertIcon } from "@mdi/svg/svg/alert.svg";
|
|
|
|
export { default as richTextOn } from "@mdi/svg/svg/eye-outline.svg";
|
|
export { default as richTextOff } from "@mdi/svg/svg/eye-off-outline.svg";
|
|
|
|
export { default as htmlOn } from "@mdi/svg/svg/code-tags.svg";
|
|
export { default as htmlOff } from "@mdi/svg/svg/xml.svg";
|
|
|
|
export { default as stickyOn } from "@mdi/svg/svg/pin-outline.svg";
|
|
export { default as stickyOff } from "@mdi/svg/svg/pin-off-outline.svg";
|