Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4759.js (118.4 MB)
30 lines
1.3 KiB
JavaScript
30 lines
1.3 KiB
JavaScript
// Module ID: 1064
|
|
// Function ID: 1065
|
|
// Dependencies: [17, 998]
|
|
// Exports: getTheme
|
|
|
|
// Module 1064
|
|
import _mod17 from "module_17" /* 17 */;
|
|
import _getClientIntegration from "_getClientIntegration" /* 998 */;
|
|
|
|
const Appearance = _mod17.Appearance;
|
|
const LightTheme = { accentBackground: "rgba(88, 74, 192, 1)", accentForeground: "#ffffff", foreground: "#2b2233", background: "#ffffff", border: "rgba(41, 35, 47, 0.13)", feedbackIcon: "rgba(54, 45, 89, 1)", sentryLogo: "rgba(54, 45, 89, 1)" };
|
|
const obj2 = { accentBackground: "rgba(88, 74, 192, 1)", accentForeground: "#ffffff", foreground: "#ebe6ef", background: "#29232f", border: "rgba(235, 230, 239, 0.15)", feedbackIcon: "#ffffff", sentryLogo: "#ffffff" };
|
|
|
|
export const getTheme = function getTheme() {
|
|
const obj = _getClientIntegration;
|
|
let colorScheme = obj.getColorScheme();
|
|
if ("system" === colorScheme) {
|
|
colorScheme = Appearance.getColorScheme();
|
|
}
|
|
const merged = Object.assign({}, obj);
|
|
let merged1 = Object.assign(merged, _getClientIntegration.getFeedbackLightTheme());
|
|
const merged2 = Object.assign({}, obj2);
|
|
const tmpResult = _getClientIntegration;
|
|
if ("dark" === colorScheme) {
|
|
merged1 = Object.assign(merged2, tmpResult2.getFeedbackDarkTheme());
|
|
}
|
|
return merged1;
|
|
};
|
|
export { LightTheme };
|
|
export const DarkTheme = obj2;
|