forked from Blendman974/faceclaw
Merge branch 'calculator' of https://github.com/kalanihelekunihi/faceclaw into calculator
This commit is contained in:
commit
f3ad55ca3d
126 files changed
+22253
-58
No files matched your search
@@ -36,6 +36,7 @@ import {
|
||||
timeFormatSetting,
|
||||
wakeWordActionSetting,
|
||||
} from "../dashboard-settings";
|
||||
import { onAmbientCardsChanged } from "./ambient-cards";
|
||||
import { ShellChromeLayer, sidebarContentLeft, type ShellChromeState, type ShellChromeWindow } from "./chrome-layer";
|
||||
import { ShellModalLayer } from "./modal-layer";
|
||||
import { ToolDebugMenuLayer } from "./tool-debug-layer";
|
||||
@@ -270,6 +271,21 @@ class Shell {
|
||||
this.config = config;
|
||||
this.stack.setActions(config.actions);
|
||||
this.subscribeToTopBarSettings();
|
||||
this.subscribeToAmbientCards();
|
||||
}
|
||||
|
||||
// Ambient (encounter) cards live in the chrome paint; a posted or expired
|
||||
// card repaints the shell surface so it appears and disappears on time.
|
||||
private ambientCardsSubscribed = false;
|
||||
|
||||
private subscribeToAmbientCards(): void {
|
||||
if (this.ambientCardsSubscribed) return;
|
||||
this.ambientCardsSubscribed = true;
|
||||
onAmbientCardsChanged(() => {
|
||||
if (this.screenOn) {
|
||||
this.config.requestShellRender();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private subscribeToTopBarSettings(): void {
|
||||
|
||||
Reference in new issue
Block a user