@@ -25,7 +25,7 @@ var control = (function(){
2525path : "theme.accent.current" ,
2626type : "color" ,
2727func : function ( ) {
28- accent . render ( ) ;
28+ theme . render . accent . color ( ) ;
2929link . clear ( ) ;
3030link . render . item . all ( ) ;
3131sortable ( ".link-area" ) ;
@@ -1992,15 +1992,15 @@ var control = (function(){
19921992type : "radio" ,
19931993func : function ( ) {
19941994render ( ) ;
1995- accent . render ( ) ;
1995+ theme . render . accent . color ( ) ;
19961996}
19971997} , {
19981998element : helper . e ( ".control-theme-style-light" ) ,
19991999path : "theme.style" ,
20002000type : "radio" ,
20012001func : function ( ) {
20022002render ( ) ;
2003- accent . render ( ) ;
2003+ theme . render . accent . color ( ) ;
20042004}
20052005} , {
20062006element : helper . e ( ".control-theme-radius" ) ,
@@ -2024,7 +2024,7 @@ var control = (function(){
20242024type : "checkbox" ,
20252025func : function ( ) {
20262026dependents ( ) ;
2027- accent . render ( ) ;
2027+ theme . render . accent . color ( ) ;
20282028}
20292029} , {
20302030element : helper . e ( ".control-theme-accent-random-style-any" ) ,
@@ -2065,8 +2065,8 @@ var control = (function(){
20652065element : helper . e ( ".control-theme-accent-randomise" ) ,
20662066type : "button" ,
20672067func : function ( ) {
2068- accent . random ( ) ;
2069- accent . render ( ) ;
2068+ theme . render . accent . random ( ) ;
2069+ theme . render . accent . color ( ) ;
20702070link . clear ( ) ;
20712071link . render . item . all ( ) ;
20722072sortable ( ".link-area" ) ;
@@ -2428,11 +2428,6 @@ var control = (function(){
24282428helper . addClass ( html , "is-layout-scrollpastend" ) ;
24292429} ;
24302430} ;
2431- var _theme = function ( ) {
2432- helper . removeClass ( html , "is-theme-style-dark" ) ;
2433- helper . removeClass ( html , "is-theme-style-light" ) ;
2434- helper . addClass ( html , "is-theme-style-" + state . get ( ) . theme . style ) ;
2435- } ;
24362431var _background = function ( ) {
24372432if ( state . get ( ) . background . image . show ) {
24382433helper . addClass ( html , "is-background-image-show" ) ;
@@ -2444,7 +2439,6 @@ var control = (function(){
24442439_header ( ) ;
24452440_link ( ) ;
24462441_layout ( ) ;
2447- _theme ( ) ;
24482442_background ( ) ;
24492443} ;
24502444
0 commit comments