mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
display the currently selected color in color (#163)
This commit is contained in:
parent
197af35de0
commit
0ef0530861
@ -353,7 +353,13 @@ define([
|
||||
rgb.g = Math.round(rgb.g * this.brightness);
|
||||
rgb.b = Math.round(rgb.b * this.brightness);
|
||||
|
||||
this.inputbox.value = tools.b2hexstr(rgb.r) + tools.b2hexstr(rgb.g) + tools.b2hexstr(rgb.b);
|
||||
this.inputbox.value = this.inputbox.style.backgroundColor = (
|
||||
'#'
|
||||
+ tools.b2hexstr(rgb.r)
|
||||
+ tools.b2hexstr(rgb.g)
|
||||
+ tools.b2hexstr(rgb.b)
|
||||
);
|
||||
this.inputbox.style.color = (rgb.r + rgb.g + rgb.b) < 384 ? '#fff' : '#000';
|
||||
},
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user