mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-03-09 15:40:26 +00:00
add danger style to button
This commit is contained in:
parent
f1b30eb969
commit
2e427b33e2
2 changed files with 14 additions and 2 deletions
|
@ -55,4 +55,16 @@ export const button = styleVariants({
|
||||||
color: "#c0c1c7",
|
color: "#c0c1c7",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
danger: [
|
||||||
|
base,
|
||||||
|
{
|
||||||
|
border: `solid 1px #a31533`,
|
||||||
|
backgroundColor: "transparent",
|
||||||
|
color: "white",
|
||||||
|
":hover": {
|
||||||
|
backgroundColor: "#a31533",
|
||||||
|
color: "white",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
],
|
||||||
});
|
});
|
||||||
|
|
|
@ -174,7 +174,7 @@ export function GameOptionsModal({
|
||||||
<Button
|
<Button
|
||||||
onClick={() => setShowRemoveGameModal(true)}
|
onClick={() => setShowRemoveGameModal(true)}
|
||||||
style={{ alignSelf: "flex-end" }}
|
style={{ alignSelf: "flex-end" }}
|
||||||
theme="outline"
|
theme="danger"
|
||||||
disabled={deleting}
|
disabled={deleting}
|
||||||
>
|
>
|
||||||
{t("remove_from_library")}
|
{t("remove_from_library")}
|
||||||
|
@ -184,7 +184,7 @@ export function GameOptionsModal({
|
||||||
setShowDeleteModal(true);
|
setShowDeleteModal(true);
|
||||||
}}
|
}}
|
||||||
style={{ alignSelf: "flex-end" }}
|
style={{ alignSelf: "flex-end" }}
|
||||||
theme="outline"
|
theme="danger"
|
||||||
disabled={isGameDownloading || deleting || !game.downloadPath}
|
disabled={isGameDownloading || deleting || !game.downloadPath}
|
||||||
>
|
>
|
||||||
{t("remove_files")}
|
{t("remove_files")}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue