Skip to content

Commit

Permalink
fix: stats chart titles invisible on light color theme
Browse files Browse the repository at this point in the history
  • Loading branch information
garethgeorge committed Mar 19, 2024
1 parent aea74c5 commit 746fd9c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ if [ "$OS" = "Darwin" ]; then
install_unix
create_launchd_plist
enable_launchd_plist
sudo xattr -r -d com.apple.quarantine /usr/local/bin/backrest # remove quarantine flag
sudo xattr -d com.apple.quarantine /usr/local/bin/backrest # remove quarantine flag
elif [ "$OS" = "Linux" ]; then
echo "Installing on Linux"
install_unix
Expand Down
22 changes: 12 additions & 10 deletions webui/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import "react-js-cron/dist/styles.css";
import { ConfigProvider as AntdConfigProvider, theme } from "antd";
import { ConfigContextProvider } from "./components/ConfigProvider";
import { MainContentProvider } from "./views/MainContentArea";
import { ThemeProvider, createTheme } from "@mui/material";
import { StyledEngineProvider, ThemeProvider, createTheme } from "@mui/material";

const Root = ({ children }: { children: React.ReactNode }) => {
return (
Expand All @@ -35,14 +35,16 @@ el &&
],
}}
>
<ThemeProvider theme={createTheme({
palette: {
mode: "dark",
},
})}>
<Root>
<App />
</Root>
</ThemeProvider>
<StyledEngineProvider injectFirst>
<ThemeProvider theme={createTheme({
palette: {
mode: darkThemeMq ? "dark" : "light"
},
})}>
<Root>
<App />
</Root>
</ThemeProvider>
</StyledEngineProvider>
</AntdConfigProvider>
);
2 changes: 0 additions & 2 deletions webui/src/views/RepoView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ import { OperationTree } from "../components/OperationTree";
import { MAX_OPERATION_HISTORY, STATS_OPERATION_HISTORY } from "../constants";
import { GetOperationsRequest } from "../../gen/ts/v1/service_pb";
import { BackupInfo, BackupInfoCollector, getOperations, shouldHideStatus } from "../state/oplog";
import { RepoStats } from "../../gen/ts/v1/restic_pb";
import { formatBytes, formatDate, formatTime } from "../lib/formatting";
import { Operation, OperationStats, OperationStatus } from "../../gen/ts/v1/operations_pb";
import { backrestService } from "../api";
import { StringValue } from "@bufbuild/protobuf";
import { SpinButton } from "../components/SpinButton";
import { ConfigContext } from "antd/es/config-provider";
import { useConfig } from "../components/ConfigProvider";
import { useAlertApi } from "../components/Alerts";
import { LineChart } from "@mui/x-charts";
Expand Down

0 comments on commit 746fd9c

Please sign in to comment.