@openfin/workspace-platform 23.2.10 → 23.2.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/common/src/api/theming.d.ts +2 -1
- package/common/src/utils/theming.d.ts +6 -0
- package/externals.report.json +8 -8
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/workspace_platform.zip +0 -0
|
@@ -291,12 +291,13 @@ export declare const OpenFinDarkTheme: {
|
|
|
291
291
|
};
|
|
292
292
|
export declare const DefaultOpenFinTheme: CustomThemes;
|
|
293
293
|
export declare const parseNotificationIndicatorColors: (customTheme: CustomTheme) => NotificationIndicatorColorsParsed;
|
|
294
|
+
export declare const constructThemePaletteSheet: (themes: GeneratedPalettes) => string;
|
|
294
295
|
export declare const getComputedPlatformTheme: (platformIdentity: OpenFin.Identity) => Promise<{
|
|
295
296
|
theme: CustomThemes | GeneratedPalettes;
|
|
296
297
|
defaultScheme: ColorSchemeOptionType;
|
|
298
|
+
themePaletteSheet: string;
|
|
297
299
|
}>;
|
|
298
300
|
export declare const setSelectedScheme: (ctx: ColorSchemeOptionType) => Promise<void>;
|
|
299
301
|
export declare const getComputedScheme: (identity?: OpenFin.Identity) => Promise<Exclude<ColorSchemeType, "system">>;
|
|
300
302
|
export declare const getComputedBackgroundColor: (platformIdentity: OpenFin.Identity) => Promise<string>;
|
|
301
|
-
export declare const constructThemePaletteSheet: (themes: GeneratedPalettes) => string;
|
|
302
303
|
export {};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
+
import type OpenFin from '@openfin/core';
|
|
1
2
|
import { BackgroundLayers, CustomPaletteSet } from '../../../common/src/api/theming';
|
|
3
|
+
export type ColorSchemeValue = 'light' | 'dark' | 'system';
|
|
4
|
+
export type WorkspaceSchemeSetting = 'light' | 'dark' | 'system';
|
|
5
|
+
export type MediaSchemeValue = 'light' | 'dark';
|
|
6
|
+
/** Maps a color scheme to OpenFin native theme preferences. */
|
|
7
|
+
export declare const mapColorSchemeToNativeTheme: (scheme: ColorSchemeValue) => OpenFin.NativeTheme;
|
|
2
8
|
/**
|
|
3
9
|
* Parses a CSS color string (hex, rgb(a), or hsl(a)) into a structured RGB string and alpha value.
|
|
4
10
|
*
|
package/externals.report.json
CHANGED
|
@@ -37,6 +37,14 @@
|
|
|
37
37
|
"issuer": "common/src/utils/layout.ts"
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
|
+
"title-case": [
|
|
41
|
+
{
|
|
42
|
+
"type": "root-implicit",
|
|
43
|
+
"version": "3.0.3",
|
|
44
|
+
"packageName": "common/package.json",
|
|
45
|
+
"issuer": "common/src/utils/color-linking.ts"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
40
48
|
"dexie": [
|
|
41
49
|
{
|
|
42
50
|
"type": "root-implicit",
|
|
@@ -62,13 +70,5 @@
|
|
|
62
70
|
"packageName": "common/package.json",
|
|
63
71
|
"issuer": "common/src/utils/create-and-migrate-ibd-store.ts"
|
|
64
72
|
}
|
|
65
|
-
],
|
|
66
|
-
"title-case": [
|
|
67
|
-
{
|
|
68
|
-
"type": "root-implicit",
|
|
69
|
-
"version": "3.0.3",
|
|
70
|
-
"packageName": "common/package.json",
|
|
71
|
-
"issuer": "common/src/utils/color-linking.ts"
|
|
72
|
-
}
|
|
73
73
|
]
|
|
74
74
|
}
|