实现pdf中划句子ai伴读的功能,修复pdf高亮显示的问题
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
/** Helpers for Zotero ItemPane collapsible sections. */
|
||||
|
||||
import { config } from "../../../package.json";
|
||||
import { getLocaleID, getString } from "../../utils/locale";
|
||||
import { getPref, setPref } from "../../utils/prefs";
|
||||
import { openChatPaneWindow, openLecturePaneWindow } from "./itemPaneWindow";
|
||||
@@ -17,9 +18,14 @@ const FIXED_HEIGHT: Record<ItemPaneKind, number> = {
|
||||
lecture: 420,
|
||||
};
|
||||
|
||||
const OPEN_WINDOW_ICON = "chrome://zotero/skin/16/universal/open.svg";
|
||||
const ADAPTIVE_ICON = "chrome://zotero/skin/16/universal/expand-all.svg";
|
||||
const ADAPTIVE_ICON_OFF = "chrome://zotero/skin/16/universal/collapse-all.svg";
|
||||
/** Lucide-derived toolbar icons (see addon/content/icons/pane-*.svg). */
|
||||
function paneIconURL(file: string): string {
|
||||
return `chrome://${config.addonRef}/content/icons/${file}`;
|
||||
}
|
||||
|
||||
const OPEN_WINDOW_ICON = paneIconURL("pane-open-window.svg");
|
||||
const ADAPTIVE_ICON = paneIconURL("pane-adaptive-height.svg");
|
||||
const ADAPTIVE_ICON_OFF = paneIconURL("pane-adaptive-height-fixed.svg");
|
||||
|
||||
export function prepareItemPaneBody(body: HTMLElement): void {
|
||||
body.classList.add("chatpapers-pane-body");
|
||||
|
||||
Reference in New Issue
Block a user