Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): add modular theme library #5226

MergedStiensWout(GitHub profile, opens in a new tab)merged 118 commits intomain fromrefs/pull/5226/headmerged by juliusmarminge View on GitHub

Showing 77 changed files with 104 additions and 0 deletions (loading 74).

x
0 of 77 viewed, 77 left
51 additions and 0 deletionsapps/desktop/src/electron/ElectronDialog.tsModified
View file
@@ -23,6 +23,21 @@
​
+export class ElectronDialogPickFilesError extends Schema.TaggedErrorClass<ElectronDialogPickFilesError>()(
+ "ElectronDialogPickFilesError",
+ {
+ ownerWindowId: Schema.NullOr(Schema.Number),
+ defaultPath: Schema.NullOr(Schema.String),
+ cause: Schema.Defect(),
+ },
+) {
+ override get message(): string {
+ const owner = this.ownerWindowId === null ? "the application" : `window ${this.ownerWindowId}`;
+ const defaultPath = this.defaultPath === null ? "no default path" : this.defaultPath;
+ return `Failed to open the Electron file picker for ${owner} with ${defaultPath}.`;
+ }
+}
+​
export class ElectronDialogConfirmError extends Schema.TaggedErrorClass<ElectronDialogConfirmError>()(
"ElectronDialogConfirmError",
@@ -69,6 +84,7 @@
​
export const ElectronDialogError = Schema.Union([
ElectronDialogPickFolderError,
+ ElectronDialogPickFilesError,
ElectronDialogConfirmError,
ElectronDialogShowMessageBoxError,