forked from tsai/budibase
11 changed files with 93 additions and 1415 deletions
@ -0,0 +1,38 @@ |
|||||
|
<script> |
||||
|
import { Select } from "@budibase/bbui" |
||||
|
import { store } from "builderStore" |
||||
|
|
||||
|
const themeOptions = [ |
||||
|
{ |
||||
|
label: "Lightest", |
||||
|
value: "spectrum--lightest", |
||||
|
}, |
||||
|
{ |
||||
|
label: "Light", |
||||
|
value: "spectrum--light", |
||||
|
}, |
||||
|
{ |
||||
|
label: "Dark", |
||||
|
value: "spectrum--dark", |
||||
|
}, |
||||
|
{ |
||||
|
label: "Darkest", |
||||
|
value: "spectrum--darkest", |
||||
|
}, |
||||
|
] |
||||
|
</script> |
||||
|
|
||||
|
<div> |
||||
|
<Select |
||||
|
value={$store.theme || "spectrum--lightest"} |
||||
|
options={themeOptions} |
||||
|
placeholder={null} |
||||
|
on:change={e => store.actions.theme.save(e.detail)} |
||||
|
/> |
||||
|
</div> |
||||
|
|
||||
|
<style> |
||||
|
div { |
||||
|
padding-right: 8px; |
||||
|
} |
||||
|
</style> |
||||
File diff suppressed because it is too large
Loading…
Reference in new issue