File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -265,17 +265,9 @@ public void Generate()
265265 tfs . Deserialize ( ) ;
266266 JObject theme = tfs . JSON ;
267267 theme [ "Theme" ] [ "DisplayName" ] = fileName ;
268- theme [ "Control Panel_Desktop" ] [ "TileWallpaper" ] = "0" ;
269- theme [ "Control Panel_Desktop" ] [ "WallpaperStyle" ] = "2" ;
270- theme [ "Slideshow" ] [ "Interval" ] = "60000" ;
271-
272- //read and replace
273- string text = File . ReadAllText ( "temp\\ super.theme" ) ;
274- text = text . Replace ( "DisplayName=Tinderspirobot" , "DisplayName=" + fileName ) ;
275- text = text . Replace ( "Interval=1000" , "Interval=" + _opb . TimeChange ) ;
276- text = text . Replace ( "TileWallpaper=1" , "TileWallpaper=" + _opb . TileWallpaper ) ;
277- text = text . Replace ( "WallpaperStyle=0" , "WallpaperStyle=" + _opb . WallPaperStyle ) ;
278- File . WriteAllText ( "temp\\ super.theme" , text ) ;
268+ theme [ "Control Panel_Desktop" ] [ "TileWallpaper" ] = _opb . TileWallpaper ;
269+ theme [ "Control Panel_Desktop" ] [ "WallpaperStyle" ] = _opb . WallPaperStyle ;
270+ theme [ "Slideshow" ] [ "Interval" ] = _opb . TimeChange ;
279271 tfs . JSON = theme ;
280272 tfs . JsonSerialize ( $ "temp\\ themepack\\ { fileName } .theme") ;
281273
You can’t perform that action at this time.
0 commit comments