Skip to content

Commit

Permalink
Grab self-contained changes from /dev branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonius7 committed Oct 24, 2020
1 parent 513eaa6 commit 7fe9975
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 10 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ You should be set to go!

![preview image](https://i.imgur.com/4gWzhj9.png)

If you want to remove **steam-library's** changes, go into `libraryroot.custom.css` and delete the top lines up to and including `/* === END steam-library tweaks for SteamUI-OldGlory === */`

## Dev Notes

#### For more details, go to [Story](docs/story.md).
Expand Down
7 changes: 7 additions & 0 deletions fixes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,11 @@ this.SetStateLoaded(), this.SetStateLoaded(),document.getElementsByClassName('s
### === Landscape Images JS Tweaks (beta, working, some layout quirks with shelves) ===
###eAssetType: 0, eAssetType: 3,
###childHeight: 1.5 * n, childHeight: n * 43 / 92,
###o = e.nHeight, o = e.nWidth * 43 / 92,
###i = e.nHeight, i = e.nWidth * 43 / 92,

### === Stop What's New Events from Loading (working, needs more testing) ===
###n = B.b.STORE_BASE_URL + "events/ajaxgetbesteventsforuser", n = "",

### === Reduce ComputeLayout time (buggy, may improve performance) ===
###d == this.state.iFirstRenderableRow && o == this.state.iRows && m == this.state.iLastRenderableRow && p == this.state.iFirstRenderableChild && u == this.state.iLastRenderableChild && i == this.state.iItemsPerRow || this.setState({ (d ? d == this.state.iFirstRenderableRow : o ? o == this.state.iRows : m ? m == this.state.iLastRenderableRow : p ? p == this.state.iFirstRenderableChild : u ? u == this.state.iLastRenderableChild : i ? i == this.state.iItemsPerRow : true) || this.setState({
1 change: 1 addition & 0 deletions oldglory
Submodule oldglory added at 59f02a
32 changes: 22 additions & 10 deletions steam-library_compat.bat
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@echo off

echo You are about to add steam-library to SteamUI-OldGlory's CSS.
echo You are about to add steam-library's CSS to SteamUI-OldGlory's CSS.
echo Please make sure you have libraryroot.custom.css, config.css, and steam-library_compat.css in folder
echo You only need to do this once.
setlocal
Expand All @@ -14,15 +14,27 @@ set "temp=hybrid.temp.css"

::Just so it won't keep adding the compat text if you've done it already
if exist %libraryroot%.backup echo libraryroot.custom.css.backup exists, skipping. Delete or rename the file if you want to add the CSS.
if exist %libraryroot%.backup goto AFTER
type %compat% >> %temp%
echo. >> %temp%
echo. >> %temp%
type %libraryroot% >> %temp%
rename %libraryroot% %libraryroot%.backup
rename %temp% %libraryroot%
echo CSS Added.
echo A backup of your library CSS has been saved to libraryroot.custom.css.backup
::if exist %libraryroot%.backup goto AFTER
set /p firstline=< %libraryroot%
set "compareline=!!! DO NOT EDIT THESE !!!"

::if not "x!firstline:%compareline%=!"=="x%firstline%" echo libraryroot.custom.css has already been patched, skipping.
::if not "x!firstline:%compareline%=!"=="x%firstline%" goto AFTER

echo.%firstline%|findstr /C:"%compareline%" >nul 2>&1
if not errorlevel 1 (
echo libraryroot.custom.css already has steam-library's CSS, skipping.
goto AFTER
) else (
type %compat% >> %temp%
echo. >> %temp%
echo. >> %temp%
type %libraryroot% >> %temp%
rename %libraryroot% %libraryroot%.backup
rename %temp% %libraryroot%
echo CSS Added.
echo A backup of your library CSS has been saved to libraryroot.custom.css.backup
)

:AFTER

Expand Down

0 comments on commit 7fe9975

Please sign in to comment.