[ui] fix notification icons, colors; icon colors

feat/vaults
Tomáš Mládek 2022-01-08 13:01:50 +01:00
parent 952475b92b
commit 0bfc292fd4
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
3 changed files with 8 additions and 12 deletions

View File

@ -2,7 +2,7 @@
import { notify } from "../../notifications"; import { notify } from "../../notifications";
import { fade } from "svelte/transition"; import { fade } from "svelte/transition";
import type { UpNotification } from "../../notifications"; import type { UpNotification } from "../../notifications";
import Icon from "../utils/Icon.svelte"; import Icon from "../utils/Icon.svelte";
let notifications: UpNotification[] = []; let notifications: UpNotification[] = [];
@ -16,12 +16,12 @@ import Icon from "../utils/Icon.svelte";
1 1
); );
notifications = notifications; notifications = notifications;
}, 5000); }, 50000000);
}); });
const icons = { const icons = {
error: "x-octagon", error: "error-alt",
warning: "exclamation-triangle" warning: "error",
}; };
</script> </script>
@ -36,11 +36,13 @@ import Icon from "../utils/Icon.svelte";
{/each} {/each}
<style scoped lang="scss"> <style scoped lang="scss">
@use "../../styles/colors";
.notification-error { .notification-error {
color: var(--error); color: colors.$red;
} }
.notification-warning { .notification-warning {
color: var(--warning); color: colors.$orange;
} }
</style> </style>

View File

@ -1,6 +1,4 @@
<script lang="ts" context="module"> <script lang="ts" context="module">
import { onMount } from "svelte";
let loaded = false; let loaded = false;
</script> </script>

View File

@ -71,10 +71,6 @@
color: var(--foreground); color: var(--foreground);
background: var(--background); background: var(--background);
* {
color: var(--foreground);
}
h1, h1,
h2, h2,
h3, h3,