mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
20 lines
691 B
TypeScript
20 lines
691 B
TypeScript
/**
|
|
* Copyright (c) OpenLens Authors. All rights reserved.
|
|
* Licensed under MIT License. See LICENSE in root directory for more information.
|
|
*/
|
|
|
|
import activeThemeInjectable from "../../renderer/themes/active.injectable";
|
|
import type { LensTheme } from "../../renderer/themes/store";
|
|
import { asLegacyGlobalForExtensionApi } from "../as-legacy-globals-for-extension-api/as-legacy-global-object-for-extension-api";
|
|
|
|
export const activeTheme = asLegacyGlobalForExtensionApi(activeThemeInjectable);
|
|
|
|
/**
|
|
* @deprecated This hides the reactivity of active theme, use {@link activeTheme} instead
|
|
*/
|
|
export function getActiveTheme() {
|
|
return activeTheme.get();
|
|
}
|
|
|
|
export type { LensTheme };
|