style update, light and dark theme soon
This commit is contained in:
parent
da07d1beab
commit
51bddcd573
4 changed files with 211 additions and 161 deletions
|
|
@ -14,7 +14,7 @@ init = function(session,callback) {
|
|||
},
|
||||
{
|
||||
html: `
|
||||
<div class="btn">
|
||||
<div>
|
||||
<div class="title"><i class="fa fa-sliders"></i> Snapshot</div>
|
||||
<div class="actions">
|
||||
<a class="btn" data-action="stateQuickSave">Store</a>
|
||||
|
|
@ -30,7 +30,7 @@ init = function(session,callback) {
|
|||
`
|
||||
},
|
||||
{
|
||||
html:`<div class="editor btn">
|
||||
html:`<div class="editor">
|
||||
<div class="title"><i class="fa fa-edit"></i> Session editor</div>
|
||||
<div class="actions">
|
||||
<a class="enable-editor btn" data-action="enableEditor">On</a>
|
||||
|
|
|
|||
|
|
@ -596,9 +596,11 @@ createWidget.rgb = function(widgetData) {
|
|||
var widget = $(`
|
||||
<div class="xy-wrapper rgb-wrapper">
|
||||
<div class="xy rgb">
|
||||
<div class="bg"></div>
|
||||
<div class="handle"></div>
|
||||
</div>
|
||||
<div class="hue">
|
||||
<div class="bg"></div>
|
||||
<div class="handle"></div>
|
||||
</div>
|
||||
<div class="value">
|
||||
|
|
@ -610,6 +612,7 @@ createWidget.rgb = function(widgetData) {
|
|||
hueHandle = widget.find('.hue .handle'),
|
||||
pad = widget.find('.xy'),
|
||||
huePad = widget.find('.hue'),
|
||||
rgbBg = pad.find('.bg')[0],
|
||||
value = {r:widget.find('input.r'),g:widget.find('input.g'),b:widget.find('input.b')},
|
||||
absolute = widgetData.absolute,
|
||||
split = widgetData.split?
|
||||
|
|
@ -683,7 +686,7 @@ createWidget.rgb = function(widgetData) {
|
|||
rgb = hsbToRgb({h:h,s:100,b:100}),
|
||||
v = widget.getValue()
|
||||
|
||||
pad[0].setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')')
|
||||
rgbBg.setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')')
|
||||
|
||||
|
||||
|
||||
|
|
@ -711,7 +714,7 @@ createWidget.rgb = function(widgetData) {
|
|||
rgb = hsbToRgb({h:h,s:100,b:100}),
|
||||
v = widget.getValue()
|
||||
|
||||
pad[0].setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')')
|
||||
rgbBg.setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')')
|
||||
widget.sendValue(v)
|
||||
widget.showValue(v)
|
||||
|
||||
|
|
@ -754,7 +757,7 @@ createWidget.rgb = function(widgetData) {
|
|||
|
||||
|
||||
var rgb = hsbToRgb({h:hsb.h,s:100,b:100})
|
||||
pad[0].setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')')
|
||||
rgbBg.setAttribute('style','background-color:rgb('+rgb.r+','+rgb.g+','+rgb.b+')')
|
||||
|
||||
widget.showValue(v)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue