@@ -2539,9 +2539,10 @@ var control = (function(){
25392539}
25402540} , {
25412541element : helper . e ( ".control-theme-custom-edit" ) ,
2542- type : "button" ,
2542+ path : "theme.custom.edit" ,
2543+ type : "checkbox" ,
25432544func : function ( ) {
2544- theme . custom . edit ( ) ;
2545+ render . class ( ) ;
25452546}
25462547} , {
25472548element : helper . e ( ".control-theme-style-dark" ) ,
@@ -3450,10 +3451,13 @@ var control = (function(){
34503451} ;
34513452} ;
34523453var _theme = function ( ) {
3454+ helper . removeClass ( html , "is-theme-custom-edit" ) ;
3455+ helper . removeClass ( html , "is-theme-radius" ) ;
3456+ if ( state . get . current ( ) . theme . custom . edit ) {
3457+ helper . addClass ( html , "is-theme-custom-edit" ) ;
3458+ } ;
34533459if ( state . get . current ( ) . theme . radius > 0 ) {
34543460helper . addClass ( html , "is-theme-radius" ) ;
3455- } else {
3456- helper . removeClass ( html , "is-theme-radius" ) ;
34573461} ;
34583462} ;
34593463var _layout = function ( ) {
@@ -3842,23 +3846,21 @@ var control = (function(){
38423846_transitional ( ) ;
38433847} ;
38443848var _edit = function ( ) {
3849+ _disable . input ( ".control-edit" , true ) ;
38453850if ( bookmarks . get ( ) . length > 0 ) {
38463851_disable . input ( ".control-edit" , false ) ;
3847- } else {
3848- _disable . input ( ".control-edit" , true ) ;
38493852} ;
38503853} ;
38513854var _group = function ( ) {
3855+ _disable . element ( "[for=control-group-name-size]" , true ) ;
3856+ _disable . input ( ".control-group-name-size" , true ) ;
3857+ _disable . element ( ".control-group-name-size-count" , true ) ;
3858+ _disable . input ( ".control-group-name-size-default" , true ) ;
38523859if ( state . get . current ( ) . group . name . show ) {
38533860_disable . element ( "[for=control-group-name-size]" , false ) ;
38543861_disable . input ( ".control-group-name-size" , false ) ;
38553862_disable . element ( ".control-group-name-size-count" , false ) ;
38563863_disable . input ( ".control-group-name-size-default" , false ) ;
3857- } else {
3858- _disable . element ( "[for=control-group-name-size]" , true ) ;
3859- _disable . input ( ".control-group-name-size" , true ) ;
3860- _disable . element ( ".control-group-name-size-count" , true ) ;
3861- _disable . input ( ".control-group-name-size-default" , true ) ;
38623864} ;
38633865} ;
38643866var _link = function ( ) {
@@ -4062,20 +4064,23 @@ var control = (function(){
40624064} ;
40634065} ;
40644066var _theme = function ( ) {
4067+ _disable . input ( ".control-theme-custom-edit" , true ) ;
4068+ _disable . input ( ".control-theme-accent-random-style-any" , true ) ;
4069+ _disable . input ( ".control-theme-accent-random-style-light" , true ) ;
4070+ _disable . input ( ".control-theme-accent-random-style-dark" , true ) ;
4071+ _disable . input ( ".control-theme-accent-random-style-pastel" , true ) ;
4072+ _disable . input ( ".control-theme-accent-random-style-saturated" , true ) ;
4073+ _disable . input ( ".control-theme-accent-randomise" , true ) ;
4074+ if ( state . get . current ( ) . theme . custom . all . length > 0 ) {
4075+ _disable . input ( ".control-theme-custom-edit" , false ) ;
4076+ } ;
40654077if ( state . get . current ( ) . theme . accent . random . active ) {
40664078_disable . input ( ".control-theme-accent-random-style-any" , false ) ;
40674079_disable . input ( ".control-theme-accent-random-style-light" , false ) ;
40684080_disable . input ( ".control-theme-accent-random-style-dark" , false ) ;
40694081_disable . input ( ".control-theme-accent-random-style-pastel" , false ) ;
40704082_disable . input ( ".control-theme-accent-random-style-saturated" , false ) ;
40714083_disable . input ( ".control-theme-accent-randomise" , false ) ;
4072- } else {
4073- _disable . input ( ".control-theme-accent-random-style-any" , true ) ;
4074- _disable . input ( ".control-theme-accent-random-style-light" , true ) ;
4075- _disable . input ( ".control-theme-accent-random-style-dark" , true ) ;
4076- _disable . input ( ".control-theme-accent-random-style-pastel" , true ) ;
4077- _disable . input ( ".control-theme-accent-random-style-saturated" , true ) ;
4078- _disable . input ( ".control-theme-accent-randomise" , true ) ;
40794084} ;
40804085} ;
40814086var _background = function ( ) {
0 commit comments