Increase palette contrast, add factory reset
This commit is contained in:
@@ -17,6 +17,7 @@ import {
|
|||||||
ArchiveBoxXMarkIcon,
|
ArchiveBoxXMarkIcon,
|
||||||
ArrowDownOnSquareStackIcon,
|
ArrowDownOnSquareStackIcon,
|
||||||
ArrowPathIcon,
|
ArrowPathIcon,
|
||||||
|
ArrowPathRoundedSquareIcon,
|
||||||
ArrowsRightLeftIcon,
|
ArrowsRightLeftIcon,
|
||||||
BeakerIcon,
|
BeakerIcon,
|
||||||
BugAntIcon,
|
BugAntIcon,
|
||||||
@@ -40,9 +41,9 @@ import {
|
|||||||
WindowIcon,
|
WindowIcon,
|
||||||
XCircleIcon
|
XCircleIcon
|
||||||
} from "@heroicons/react/24/outline";
|
} from "@heroicons/react/24/outline";
|
||||||
import { ThemeController } from "../generic/ThemeController.js";
|
|
||||||
import { Blur } from "../generic/Blur.js";
|
import { Blur } from "../generic/Blur.js";
|
||||||
import { accentColor } from "@core/stores/appStore.js";
|
import { ThemeController } from "../generic/ThemeController.js";
|
||||||
|
|
||||||
export interface Group {
|
export interface Group {
|
||||||
name: string;
|
name: string;
|
||||||
@@ -209,19 +210,6 @@ export const CommandPalette = (): JSX.Element => {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: "Reset Peers",
|
|
||||||
icon: TrashIcon,
|
|
||||||
action() {
|
|
||||||
if (connection) {
|
|
||||||
void toast.promise(connection.resetPeers(), {
|
|
||||||
loading: "Resetting...",
|
|
||||||
success: "Succesfully reset peers",
|
|
||||||
error: "No response received"
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: "Disconnect",
|
name: "Disconnect",
|
||||||
icon: XCircleIcon,
|
icon: XCircleIcon,
|
||||||
@@ -244,6 +232,32 @@ export const CommandPalette = (): JSX.Element => {
|
|||||||
action() {
|
action() {
|
||||||
setRebootDialogOpen(true);
|
setRebootDialogOpen(true);
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Reset Peers",
|
||||||
|
icon: TrashIcon,
|
||||||
|
action() {
|
||||||
|
if (connection) {
|
||||||
|
void toast.promise(connection.resetPeers(), {
|
||||||
|
loading: "Resetting...",
|
||||||
|
success: "Succesfully reset peers",
|
||||||
|
error: "No response received"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "Factory Reset",
|
||||||
|
icon: ArrowPathRoundedSquareIcon,
|
||||||
|
action() {
|
||||||
|
if (connection) {
|
||||||
|
void toast.promise(connection.factoryReset(), {
|
||||||
|
loading: "Resetting...",
|
||||||
|
success: "Succesfully factory peers",
|
||||||
|
error: "No response received"
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
export const Blur = (): JSX.Element => {
|
export const Blur = (): JSX.Element => {
|
||||||
return <div className="fixed inset-0 backdrop-blur-md" aria-hidden="true" />;
|
return (
|
||||||
|
<div
|
||||||
|
className="fixed inset-0 backdrop-blur-md backdrop-brightness-press"
|
||||||
|
aria-hidden="true"
|
||||||
|
/>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user