feat: Add export info on copy PNG to clipboard toast message (#3159)
Co-authored-by: dwelle <luzar.david@gmail.com>
This commit is contained in:
parent
91eb8834e8
commit
f295ba98c5
@ -94,7 +94,14 @@ export const actionCopyAsPng = register({
|
|||||||
return {
|
return {
|
||||||
appState: {
|
appState: {
|
||||||
...appState,
|
...appState,
|
||||||
toastMessage: t("toast.copyToClipboardAsPng"),
|
toastMessage: t("toast.copyToClipboardAsPng", {
|
||||||
|
exportSelection: selectedElements.length
|
||||||
|
? t("toast.selection")
|
||||||
|
: t("toast.canvas"),
|
||||||
|
exportColorScheme: appState.exportWithDarkMode
|
||||||
|
? t("buttons.darkMode")
|
||||||
|
: t("buttons.lightMode"),
|
||||||
|
}),
|
||||||
},
|
},
|
||||||
commitToHistory: false,
|
commitToHistory: false,
|
||||||
};
|
};
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
.Toast__message {
|
.Toast__message {
|
||||||
color: var(--popup-text-color);
|
color: var(--popup-text-color);
|
||||||
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes fade-in {
|
@keyframes fade-in {
|
||||||
|
@ -245,8 +245,10 @@
|
|||||||
"toast": {
|
"toast": {
|
||||||
"copyStyles": "Copied styles.",
|
"copyStyles": "Copied styles.",
|
||||||
"copyToClipboard": "Copied to clipboard.",
|
"copyToClipboard": "Copied to clipboard.",
|
||||||
"copyToClipboardAsPng": "Copied to clipboard as PNG.",
|
"copyToClipboardAsPng": "Copied {{exportSelection}} to clipboard as PNG\n({{exportColorScheme}})",
|
||||||
"fileSaved": "File saved.",
|
"fileSaved": "File saved.",
|
||||||
"fileSavedToFilename": "Saved to {filename}"
|
"fileSavedToFilename": "Saved to {filename}",
|
||||||
|
"canvas": "canvas",
|
||||||
|
"selection": "selection"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user