decord/source/modules/user_profile/useProfileThemeValues.native.tsx

51 lines
2.2 KiB
TypeScript
Raw Normal View History

2026-07-24 07:16:23 +00:00
// Module ID: 5484
2026-07-25 08:10:48 +00:00
// Function ID: 46831
2026-07-20 16:05:17 +00:00
// Name: useProfileThemeValues
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 4123, 624, 1324, 689, 688, 2]
2026-07-20 16:05:17 +00:00
// Exports: useProfileThemeValues
2026-07-24 07:16:23 +00:00
// Module 5484 (useProfileThemeValues)
2026-07-23 10:11:24 +00:00
import { useMemo } from "result";
import _isNativeReflectConstruct from "_isNativeReflectConstruct";
const result = require("defaultAreStatesEqual").fileFinishedImporting("modules/user_profile/useProfileThemeValues.native.tsx");
2026-07-20 16:05:17 +00:00
export const useProfileThemeValues = function useProfileThemeValues(theme) {
2026-07-23 10:11:24 +00:00
const _require = theme;
const items = [_isNativeReflectConstruct];
const stateFromStores = _require(624).useStateFromStores(items, () => outer1_4.saturation);
const tmp2 = stateFromStores(1324)("useProfileThemeValues");
2026-07-20 16:05:17 +00:00
const dependencyMap = tmp2;
const items1 = [theme, stateFromStores, tmp2];
return useMemo(() => {
2026-07-23 10:11:24 +00:00
if (null == theme) {
2026-07-20 16:05:17 +00:00
return null;
} else {
2026-07-23 10:11:24 +00:00
let obj = { theme, saturation: stateFromStores };
2026-07-20 16:05:17 +00:00
obj = {};
const internal3 = stateFromStores(tmp2[4]).internal;
2026-07-23 10:11:24 +00:00
obj.overlaySyncedWithUserTheme = internal3.resolveSemanticColor(theme, stateFromStores(tmp2[4]).colors.PROFILE_GRADIENT_OVERLAY_SYNCED_WITH_USER_THEME, obj);
2026-07-20 16:05:17 +00:00
const internal4 = stateFromStores(tmp2[4]).internal;
2026-07-23 10:11:24 +00:00
obj.overlay = internal4.resolveSemanticColor(theme, stateFromStores(tmp2[4]).colors.PROFILE_GRADIENT_OVERLAY, obj);
if (theme === obj4.getThemes().LIGHT) {
2026-07-20 16:05:17 +00:00
let OPACITY_WHITE_24 = stateFromStores(tmp2[4]).unsafe_rawColors.OPACITY_WHITE_24;
} else {
const internal = stateFromStores(tmp2[4]).internal;
const colors = stateFromStores(tmp2[4]).colors;
2026-07-23 10:11:24 +00:00
OPACITY_WHITE_24 = internal.resolveSemanticColor(theme, tmp2 ? colors.BACKGROUND_MOD_SUBTLE : colors.BACKGROUND_MOD_NORMAL, obj);
const tmp3 = theme;
2026-07-20 16:05:17 +00:00
}
obj.sectionBox = OPACITY_WHITE_24;
2026-07-23 10:11:24 +00:00
obj = theme(tmp2[5]);
2026-07-20 16:05:17 +00:00
let num = 0.12;
2026-07-23 10:11:24 +00:00
if (theme === obj.getThemes().DARK) {
2026-07-20 16:05:17 +00:00
num = 0.24;
}
obj.dividerOpacity = num;
const internal2 = stateFromStores(tmp2[4]).internal;
2026-07-23 10:11:24 +00:00
obj.rolePillBackgroundColor = internal2.resolveSemanticColor(theme, stateFromStores(tmp2[4]).colors.PROFILE_GRADIENT_ROLE_PILL_BACKGROUND, obj);
2026-07-20 16:05:17 +00:00
return obj;
}
}, items1);
};