Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor(view): update Loader to reference THEME_CONFIG for colors
  • Loading branch information
nxnaxx committed Oct 28, 2025
commit ce734b0fc13e9f18d6b18880dd4c83abc58c9aaa
5 changes: 2 additions & 3 deletions packages/view/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ import { useAnalayzedData } from "hooks";
import { RefreshButton } from "components/RefreshButton";
import type { IDESentEvents } from "types/IDESentEvents";
import { useBranchStore, useDataStore, useGithubInfo, useLoadingStore, useThemeStore } from "store";
import { THEME_INFO } from "components/ThemeSelector/ThemeSelector.const";
import { initializeIDEConnection, sendFetchAnalyzedDataCommand } from "services";
import { COMMIT_COUNT_PER_PAGE } from "constants/constants";
import { createMuiTheme } from "theme";
import { createMuiTheme, THEME_CONFIG } from "theme";

const App = () => {
const initRef = useRef<boolean>(false);
Expand Down Expand Up @@ -57,7 +56,7 @@ const App = () => {
if (loading) {
return (
<BounceLoader
color={THEME_INFO[theme as keyof typeof THEME_INFO].colors.primary}
color={THEME_CONFIG[theme].colors.primary.main}
loading={loading}
cssOverride={{
position: "fixed",
Expand Down

This file was deleted.

This file was deleted.

10 changes: 5 additions & 5 deletions packages/view/src/theme/theme.type.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
import type {
ColorPartial,
CommonColors as MuiCommonColors,
PaletteColorOptions,
SimplePaletteColorOptions,
TypeBackground,
} from "@mui/material/styles/createPalette";

export type ThemeName = "githru" | "hacker-blue" | "aqua" | "cotton-candy" | "mono";

export interface ThemeColors {
primary: PaletteColorOptions;
secondary: PaletteColorOptions;
primary: SimplePaletteColorOptions;
secondary: SimplePaletteColorOptions;
}

export interface SystemColors {
error: PaletteColorOptions;
success: PaletteColorOptions;
error: SimplePaletteColorOptions;
success: SimplePaletteColorOptions;
}

export type GreyColors = ColorPartial;
Expand Down