web: settings reset confirmation, icons for small dialog

- cleaned up dialog i18n
- better red color
- made :active state visible for dialog buttons on mobile
- better body padding in small dialog
- better small dialog typing with optional values
This commit is contained in:
wukko
2024-07-20 21:48:17 +06:00
parent def6e26b9f
commit d7bf98a80b
10 changed files with 117 additions and 32 deletions

View File

@@ -2,17 +2,20 @@ import type { MeowbaltEmotions } from "$lib/types/meowbalt";
export type DialogButton = {
text: string,
color: "blue" | "red" | "default",
color?: "red",
main: boolean,
action: () => unknown | Promise<unknown>
}
export type SmallDialogIcons = "warn-red";
export type DialogInfo = {
id: string,
type: "small",
meowbalt: MeowbaltEmotions | "",
title: string,
bodyText: string,
bodySubText: string,
meowbalt?: MeowbaltEmotions,
icon?: SmallDialogIcons,
title?: string,
bodyText?: string,
bodySubText?: string,
buttons: DialogButton[],
}