diff --git a/CHANGELOG.md b/CHANGELOG.md index ac5ed8b0..76fb259d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning][]. ## 1.0.0-beta2 +## Added + +* Color edit button. Right click on a color still works. + ## Fixed * Window drag on loading state diff --git a/app/frontend/src/components/Button.svelte b/app/frontend/src/components/Button.svelte new file mode 100644 index 00000000..e34f76ae --- /dev/null +++ b/app/frontend/src/components/Button.svelte @@ -0,0 +1,43 @@ + + + + + diff --git a/app/frontend/src/components/ColorPickerModal.svelte b/app/frontend/src/components/ColorPickerModal.svelte index ce966ad4..a5abd618 100644 --- a/app/frontend/src/components/ColorPickerModal.svelte +++ b/app/frontend/src/components/ColorPickerModal.svelte @@ -2,6 +2,7 @@ import { backlightColors, changingColor, state, setBacklightColor } from '@stores/lights' import { onMount } from 'svelte' import ColorPicker from 'svelte-awesome-color-picker' +import Button from './Button.svelte' let visible = false @@ -70,8 +71,8 @@ async function applyColor (): Promise {
- - +
@@ -130,28 +131,6 @@ async function applyColor (): Promise { border-top: 1px solid rgb(41 41 41 / 100%); } - button { - font-size: 13px; - border: none; - appearance: none; - border-radius: 5px; - background: #565656; - width: 64px; - border-top: 0.5px solid rgb(255 255 255 / 22%); - - &:active { - background: #767676; - } - - &.action-main { - background: linear-gradient(180deg, #3978DE 0%, #336CC5 100%); - - &:active { - background: #457AEB; - } - } - } - input { width: 100%; text-align: center; diff --git a/app/frontend/src/components/LightParams.svelte b/app/frontend/src/components/LightParams.svelte index 9877bc38..b98fcd2b 100644 --- a/app/frontend/src/components/LightParams.svelte +++ b/app/frontend/src/components/LightParams.svelte @@ -1,10 +1,11 @@