2021-01-04 17:13:18 +01:00
|
|
|
<script>
|
2021-04-21 16:03:12 +02:00
|
|
|
import { Label, Popover } from "@budibase/bbui"
|
2021-01-04 17:13:18 +01:00
|
|
|
import ThemeEditor from "./ThemeEditor.svelte"
|
|
|
|
|
|
|
|
let anchor
|
|
|
|
let popover
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="topnavitemright" on:click={popover.show} bind:this={anchor}>
|
|
|
|
<i class="ri-paint-fill" />
|
|
|
|
</div>
|
|
|
|
<div class="dropdown">
|
2021-04-21 16:03:12 +02:00
|
|
|
<Popover bind:this={popover} {anchor} align="right">
|
2021-01-04 17:13:18 +01:00
|
|
|
<div class="content">
|
|
|
|
<Label extraSmall grey>Theme</Label>
|
|
|
|
<ThemeEditor />
|
|
|
|
</div>
|
2021-04-21 16:03:12 +02:00
|
|
|
</Popover>
|
2021-01-04 17:13:18 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
.dropdown {
|
|
|
|
z-index: 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
i {
|
|
|
|
font-size: 18px;
|
|
|
|
color: var(--grey-7);
|
|
|
|
}
|
|
|
|
.topnavitemright {
|
|
|
|
cursor: pointer;
|
|
|
|
color: var(--grey-7);
|
|
|
|
margin: 0 12px 0 0;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: 1rem;
|
|
|
|
display: flex;
|
|
|
|
flex-direction: row;
|
|
|
|
justify-content: center;
|
|
|
|
align-items: center;
|
|
|
|
height: 24px;
|
|
|
|
width: 24px;
|
|
|
|
}
|
|
|
|
.topnavitemright:hover i {
|
|
|
|
color: var(--ink);
|
|
|
|
}
|
2021-03-10 18:56:16 +01:00
|
|
|
|
2021-01-04 17:13:18 +01:00
|
|
|
.content {
|
|
|
|
padding: var(--spacing-xl);
|
|
|
|
}
|
|
|
|
</style>
|