Skip to content

Commit

Permalink
💄 fix #9206
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed Oct 10, 2023
1 parent d02381d commit 7aa4aac
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 10 deletions.
10 changes: 5 additions & 5 deletions app/appearance/themes/daylight/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
10 changes: 5 additions & 5 deletions app/appearance/themes/midnight/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
3 changes: 3 additions & 0 deletions app/src/asset/anno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
});
Expand Down
3 changes: 3 additions & 0 deletions app/src/asset/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -58,6 +59,8 @@ export class Asset extends Model {
} else {
this.pdfPage = undefined;
}
} else {
showMessage(window.siyuan.languages.emptyContent);
}
cb();
});
Expand Down

0 comments on commit 7aa4aac

Please sign in to comment.