Compacted entity color options in settings view

- Also extracted the view code into it's own blade template
- Made smaller color input styles
This commit is contained in:
Dan Brown
2019-12-07 21:23:15 +00:00
parent 615a050856
commit cee4dccc55
6 changed files with 48 additions and 77 deletions

View File

@ -6,7 +6,7 @@ class SettingAppColorPicker {
this.colorInput = elem.querySelector('input[type=color]');
this.lightColorInput = elem.querySelector('input[name="setting-app-color-light"]');
this.resetButton = elem.querySelector('[setting-app-color-picker-reset]');
this.defaultButton = elem.querySelector('[setting-app-color-picker-default]')
this.defaultButton = elem.querySelector('[setting-app-color-picker-default]');
this.colorInput.addEventListener('change', this.updateColor.bind(this));
this.colorInput.addEventListener('input', this.updateColor.bind(this));