- load last preset option

- fader handle helper & touch-active background color fix
This commit is contained in:
Jean-Emmanuel 2015-09-29 21:38:46 +02:00
parent d3c024194b
commit 955364a019
8 changed files with 279 additions and 70 deletions

File diff suppressed because one or more lines are too long

View file

@ -118,6 +118,11 @@ init = function(session,callback) {
click:loadState,
icon:'folder-open'
},
{
label:'Load last state',
click:loadLastState,
icon:'history'
},
{
label:'Send all',
click:sendState,

View file

@ -18,6 +18,9 @@ getState = function (){
loadState = function() {
ipc.send('load')
}
loadLastState = function() {
ipc.send('loadlast')
}
sendState = function(){
var data = getState().join('\n')

View file

@ -573,6 +573,7 @@ form {
box-shadow: 0 0 0 1px $color-bg inset;
background:$bg-3d;
background-clip:padding-box;
-webkit-tap-highlight-color:transparent;
&:first-child {
margin-left:6rem;
@ -1021,18 +1022,6 @@ form {
&.nogauge {
.handle {
background:none;
&:before {
content:"";
position: absolute;
top:-6rem;
left:-2rem;
height:8rem;
width:8rem;
background:$color-accent;
border:none!important;
border-radius: 100%!important;
box-shadow: 0 0 0 5rem transparentize($color-accent,.8),0 0 2px 0 mix($color-text,$color-fg,2);
}
}
}
.handle {
@ -1049,6 +1038,18 @@ form {
&:active {
cursor: -webkit-grabbing;
}
&:before {
content:"";
position: absolute;
top:-6rem;
left:-2rem;
height:8rem;
width:8rem;
background:$color-accent;
border:none!important;
border-radius: 100%!important;
box-shadow: 0 0 0 5rem transparentize($color-accent,.8),0 0 2px 0 mix($color-text,$color-fg,2);
}
&:after {
content:"";
position: absolute;