improve toast colors

pull/1434/head
gabrielburnworth 2019-09-13 11:00:51 -07:00
parent be53e2725c
commit 1f3102a8ab
3 changed files with 13 additions and 0 deletions

View File

@ -121,6 +121,12 @@ describe("showLogOnScreen", () => {
it("routes `success` to toastr.success()", () => {
assertToastr([MessageType.success], success);
});
it("routes `debug` to toastr.info()", () => {
const log = fakeLog(MessageType.debug, ["toast"]);
showLogOnScreen(log);
expect(info).toHaveBeenCalledWith(log.message, TITLE(), "gray");
});
});
describe("speakLogAloud", () => {

View File

@ -70,6 +70,8 @@ export function showLogOnScreen(log: Log) {
return fun;
case MessageType.busy:
return busy;
case MessageType.debug:
return (msg: string, title: string) => info(msg, title, "gray");
case MessageType.info:
default:
return info;

View File

@ -40,6 +40,7 @@
}
&.yellow,
&.blue,
&.gray,
&.orange {
.toast-title,
.toast-message {
@ -47,6 +48,10 @@
}
}
&.green,
&.dark-blue,
&.dark-gray,
&.dark-red,
&.dark-orange,
&.red {
.toast-title,
.toast-message {