mirror of
https://github.com/garethgeorge/backrest.git
synced 2026-09-27 10:25:40 +00:00
fix: stats chart titles invisible on light color theme
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
+12
-10
@@ -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 (
|
||||
@@ -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>
|
||||
);
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user