Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:lipstick: fix https://github.com/siyuan-note/siyuan/issues/9206

Vanessa7aa4aacfc3e4
diff --git a/app/appearance/themes/daylight/theme.css b/app/appearance/themes/daylight/theme.css
index 654c5bc845..c16a0dcc7e 100644
--- a/app/appearance/themes/daylight/theme.css
+++ b/app/appearance/themes/daylight/theme.css
@@ -159,11 +159,11 @@
--b3-pdf-offset: 0;
--b3-pdf-background1: var(--b3-theme-error);
--b3-pdf-background2: #f5822e;
- --b3-pdf-background3: var(--b3-theme-secondary);
- --b3-pdf-background4: #65b84d;
- --b3-pdf-background5: #f5539e;
- --b3-pdf-background6: var(--b3-theme-primary);
- --b3-pdf-background7: #944194;
+ --b3-pdf-background3: #FACA5A;
+ --b3-pdf-background4: #7CC868;
+ --b3-pdf-background5: #FC5C88;
+ --b3-pdf-background6: #69B0F2;
+ --b3-pdf-background7: #C885DA;
--b3-pdf-dark: #212224;
}
diff --git a/app/appearance/themes/midnight/theme.css b/app/appearance/themes/midnight/theme.css
index ff574aedf7..e5f9a71155 100644
--- a/app/appearance/themes/midnight/theme.css
+++ b/app/appearance/themes/midnight/theme.css
@@ -159,11 +159,11 @@
--b3-pdf-offset: 0;
--b3-pdf-background1: var(--b3-theme-error);
--b3-pdf-background2: #f5822e;
- --b3-pdf-background3: var(--b3-theme-secondary);
- --b3-pdf-background4: #65b84d;
- --b3-pdf-background5: #f5539e;
- --b3-pdf-background6: var(--b3-theme-primary);
- --b3-pdf-background7: #944194;
+ --b3-pdf-background3: #FACA5A;
+ --b3-pdf-background4: #7CC868;
+ --b3-pdf-background5: #FC5C88;
+ --b3-pdf-background6: #69B0F2;
+ --b3-pdf-background7: #C885DA;
--b3-pdf-dark: #212224;
}
diff --git a/app/src/asset/anno.ts b/app/src/asset/anno.ts
index 5400de0ea7..8ff81dc385 100644
--- a/app/src/asset/anno.ts
+++ b/app/src/asset/anno.ts
@@ -6,6 +6,7 @@ import {setStorageVal, writeText} from "../protyle/util/compatibility";
import {getAllModels} from "../layout/getAll";
import {focusByRange} from "../protyle/util/selection";
import {Constants} from "../constants";
+import {showMessage} from "../dialog/message";
export const initAnno = (element: HTMLElement, pdf: any, pdfConfig: any) => {
getConfig(pdf);
@@ -696,6 +697,8 @@ const getConfig = (pdf: any) => {
let config = {};
if (response.code !== 1) {
config = JSON.parse(response.data.data);
+ } else {
+ showMessage(window.siyuan.languages.emptyContent);
}
pdf.appConfig.config = config;
});
diff --git a/app/src/asset/index.ts b/app/src/asset/index.ts
index 7ca8d95412..ca4acc4a9e 100644
--- a/app/src/asset/index.ts
+++ b/app/src/asset/index.ts
@@ -14,6 +14,7 @@ import {webViewerPageNumberChanged} from "./pdf/app";
import {fetchPost} from "../util/fetch";
import {setStorageVal, updateHotkeyTip} from "../protyle/util/compatibility";
import {App} from "../index";
+import {showMessage} from "../dialog/message";
export class Asset extends Model {
public path: string;
@@ -58,6 +59,8 @@ export class Asset extends Model {
} else {
this.pdfPage = undefined;
}
+ } else {
+ showMessage(window.siyuan.languages.emptyContent);
}
cb();
});