mirror of
https://github.com/zsviczian/obsidian-excalidraw-plugin.git
synced 2025-08-06 05:46:28 +00:00
grid color now sets two colors in appstate
This commit is contained in:
@@ -1782,10 +1782,12 @@ export default class ExcalidrawView extends TextFileView {
|
||||
});
|
||||
}
|
||||
|
||||
private getGridColor(bgColor: string):string {
|
||||
private getGridColor(bgColor: string):{Bold: string, Regular: string} {
|
||||
const cm = this.plugin.ea.getCM(bgColor);
|
||||
cm.isDark() ? cm.lighterBy(5) : cm.darkerBy(5);
|
||||
return cm.stringHEX();
|
||||
const isDark = cm.isDark();
|
||||
const Regular = (isDark ? cm.lighterBy(5) : cm.darkerBy(5)).stringHEX();
|
||||
const Bold = (isDark ? cm.lighterBy(10) : cm.darkerBy(10)).stringHEX();
|
||||
return {Bold, Regular};
|
||||
}
|
||||
|
||||
public activeLoader: EmbeddedFilesLoader = null;
|
||||
|
||||
Reference in New Issue
Block a user