boodl

Create_SteamBigWin

May 23rd, 2018
508
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.27 KB | None | 0 0
  1. @echo off
  2. SETLOCAL ENABLEEXTENSIONS
  3. SETLOCAL ENABLEDELAYEDEXPANSION
  4.  
  5. set "defaultStyle=C:\Program Files (x86)\Steam\resource\styles\steam.styles"
  6. set "bigStyleDirectory=C:\Program Files (x86)\Steam\skins\SteamBigWin\Resource\Styles"
  7. set "bigStyleFile=%bigStyleDirectory%\steam.styles"
  8.  
  9. :: Create directory for new skin
  10. md "%bigStyleDirectory%"
  11.  
  12. :: Copy Steam's default skin to our new skin directory
  13. copy /Y "%bigStyleFile%" "%bigStyleFile%.bak"
  14. copy /Y "%defaultStyle%" "%bigStyleFile%"
  15.  
  16. :: Let's start embiggening the skin (using powershell to do regex string replacement)
  17.  
  18. :: First, set up some variables that we'll plug in later
  19.  
  20. :: Scrollbar width 19->24
  21. set "scrollbar24=19"
  22.  
  23. ::SectionedListPanel CollapserWidth 16->20
  24. set "sectionedList20=16"
  25.  
  26. :: font-size value replacements. There are a lot of these, so it's a little more involved
  27. :: always replace largest numbers first so that we don't double replace
  28. ::   (example, 16->22->28 would be bad. We just want 22->28, then later 16->22)
  29. set "font28=22 21"
  30. set "font24=20 19 18 17"
  31. set "font22=16 15"
  32. set "font20=14 13 12"
  33. set "font16=11"
  34. set "font14=10"
  35. set "font13=9 8"
  36.  
  37. :: bigFontSizes list's values should match the numbers in the "fontxx" variable names, again largest to smallest
  38. set "bigFontSizes=28 24 22 20 16 14 13"
  39.  
  40. ::Scrollbar widths to 24
  41. for %%a in (%scrollbar24%) do (
  42.    echo ScrollBar.Wide %%a to 24
  43.    call powershell -Command "(gc '%bigStyleFile%') -replace '(ScrollBar\.Wide\s+)(\"?%%a\"?)', '${1}24' | Out-File -encoding ASCII '%bigStyleFile%'"
  44. )
  45.  
  46. ::SectionedListPanel CollapserWidth to 20
  47. for %%a in (%sectionedList20%) do (
  48.    echo SectionedListPanel.CollapserWidth %%a to 20
  49.    call powershell -Command "(gc '%bigStyleFile%') -replace '(ScrollBar\.Wide\s+)(\"?%%a\"?)', '${1}20' | Out-File -encoding ASCII '%bigStyleFile%'"
  50. )
  51.  
  52. ::font sizes
  53. for %%b in (%bigFontSizes%) do (
  54.    for %%a in (!font%%b!) do (
  55.       echo font-size %%a to %%b
  56.       call powershell -Command "(gc '%bigStyleFile%') -replace '(font-size=)(\"?%%a\"?)', '${1}%%b' | Out-File -encoding ASCII '%bigStyleFile%'"
  57.    )
  58. )
  59.  
  60. echo Done
  61. echo .
  62. echo In Steam, choose Steam menu, Settings
  63. echo On left side, choose Interface
  64. echo On right side, choose SteamBigWin from the dropdown below "Select the skin..."
  65.  
  66.  
  67. pause
Advertisement
Add Comment
Please, Sign In to add comment