Skip to content

Commit

Permalink
v4.0 (Beta). All that I could think of has been done. Users may find …
Browse files Browse the repository at this point in the history
…bugs I don't now about
  • Loading branch information
Jonius7 committed Nov 27, 2020
1 parent 735b719 commit 83927bd
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 57 deletions.
38 changes: 30 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,38 @@ Check `/dev` branch for in-progress tweaks.
#### Patching and CSS

- Install [**SteamFriendsPatcher**](https://github.com/PhantomGamers/SteamFriendsPatcher/releases). Run it, it will patch some files.
- Download [**SteamUI-OldGlory**](https://github.com/Jonius7/SteamUI-OldGlory/releases) and run `old_glory.exe`
- Download [**SteamUI-OldGlory**](https://github.com/Jonius7/SteamUI-OldGlory/releases). Extract the files to a folder, and run `old_glory.exe`

#### Included files:

- `old_glory.exe` - App to apply **SteamUI-OldGlory's** tweaks
- `libraryroot.custom.css` - CSS tweaks

- `fixes.txt` - JS tweaks

- `\themes` - Folder containing theme files
- `shiina.css` and `config.css.original` - **Shiina's** [steam-library](https://github.com/AikoMidori/steam-library) dark theme
- `spiked.css` - **Thespikedballofdoom's** [Dark Library](https://gamebanana.com/guis/35092) theme
- `acrylic.css` - Theme based on **EliteSkylu's** [Acrylic Steam](https://www.reddit.com/r/Steam/comments/jot6vi/let_me_introduce_you_a_project_of_my_steam_ui/) concept


Other files are copied from the`Steam\steamui` directory as required.

![https://i.imgur.com/A85LCCn.png](https://i.imgur.com/A85LCCn.png)

#### JavaScript Tweaks

`fixes.txt` contains the list of JavaScript tweaks.\
Each tweak is under its own *Section Heading* marked with the line starting `###`.\
Tweaked lines are the original JS separated by two spaces from the tweaked JS:\
[original js]██[new js]\
Some tweaks are disabled by default. Remove the `###` for each line under the *Section Heading* to enable.\
Commented lines with `###`, and blank lines are ignored. You can use this to make `fixes.txt` more readable.
Some tweaks are disabled by default. Under JS Options, you can select which options to enable/disable.\

**Manual Editing**

<details><summary>More details</summary>`fixes.txt` contains the list of JavaScript tweaks.<br>Each tweak is under its own *Section Heading* marked with the line starting `###`.<br>
Tweaked lines are the original JS separated by two spaces from the tweaked JS:<br>
[original js]&#9608;&#9608;[new js]<br>
Remove the `###` for each line under the *Section Heading* to enable.<br>
Commented lines with `###`, and blank lines are ignored. You can use this to make `fixes.txt` more readable.</details>


#### Fix Blurred Game Images

Expand Down Expand Up @@ -85,6 +105,8 @@ Commented lines with `###`, and blank lines are ignored. You can use this to mak

## steam-library Support

Shiina's steam-library theme is included as one of the starting themes you can choose from.

https://github.com/AikoMidori/steam-library

![preview image](https://i.imgur.com/4gWzhj9.png)
Expand Down Expand Up @@ -112,7 +134,7 @@ To debug the Steam Library yourself, run Steam with the ` -dev` tag.
Requires Python 3.8+

`pyinstaller -w --hidden-import six --icon=steam_oldglory.ico --clean --onefile old_glory.spec`
The `.spec` file is included for redundancy's sake.
The `.spec` file is in the repository for redundancy's sake.

Sometimes you may need to install `pyinstaller` like this:\
[Building PyInstaller Bootloader](https://pyinstaller.readthedocs.io/en/stable/bootloader-building.html) [Windows Compilers](https://wiki.python.org/moin/WindowsCompilers#Which_Microsoft_Visual_C.2B-.2B-_compiler_to_use_with_a_specific_Python_version_.3F)
Expand Down
6 changes: 4 additions & 2 deletions backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import shutil
import traceback
import re
from pathlib import Path

OS_TYPE = platform.system()
if OS_TYPE == "Windows":
Expand Down Expand Up @@ -908,9 +909,10 @@ def clean_slate_css():

def clear_js_working_files():
try:
files_to_remove = ["library.js", "libraryroot.js"]
files_to_remove = ["library.js", "libraryroot.js", "libraryroot.beaut.js"]
for file in files_to_remove:
os.remove(file)
w_file = Path(file)
w_file.unlink(missing_ok=True)
print(file + " deleted.")
except:
print("Was not able to remove " + file, file=sys.stderr)
Expand Down
2 changes: 1 addition & 1 deletion fixes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ scrollTop: 0 scrollTop: 30
e.m_nScrollTop = 0, e.m_elTarget e.m_nScrollTop = 30, e.m_elTarget

### === Change Game Image Grid Sizes (optional) - default widths 111, 148, 222 ===
(n = 111, r = !0) : 2 == e ? n = 148 : 3 == e && (n = 222), { (n = 160, r = !0) : 2 == e ? n = 120 : 3 == e && (n = 280), {
(n = 111, r = !0) : 2 == e ? n = 148 : 3 == e && (n = 222), { (n = 80, r = !0) : 2 == e ? n = 120 : 3 == e && (n = 160), {
for (var n = [], r = 2; /*for (var n = [], r = 2;
b.apply(console, Object(l.g)([e, t], n)) b.apply(console, Object(l.g)([e, t], n))*/

Expand Down
48 changes: 2 additions & 46 deletions libraryroot.custom.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
--WhatsNewOrder: 2; /* Default: 0. Set 0 to put to top, 1 or higher to put to bottom */

/* Left Sidebar - Games List */
--HoverOverlayPosition: unset; /* Default: 0. Set 0 if default JS, unset if tweaked JS */
--HoverOverlayPosition: 0; /* Default: 0. Set 0 if default JS, unset if tweaked JS */
--GameListEntrySize: 16px; /* Default: 16px. */
--CategoryNameHeaderSize: 13px; /* Default: 13px. */
--GameListZoomSize: 75%; /* Default: 100%. 75% highly recommended for Game List similar to old Library UI. Affects GameListEntrySize and CategoryNameHeaderSize */
Expand All @@ -21,7 +21,7 @@

/* Game Grid */
--RemoveShine: none; /* Default: block. Set to none to Remove Shine/Glare on game grid images, which can cause discomfort */
--GameImageTransition: 2s; /* Default: . 4s, .4s, .4s, .2s. Grid Game Images transition time. 0s for instant, 2s for smooth. */
--GameImageTransition: 1.5s; /* Default: . 4s, .4s, .4s, .2s. Grid Game Images transition time. 0s for instant, 2s for smooth. */
--GameImageOpacity: 1; /* Default: 1. Suggested values for "softer" images: 0.7 or 0.5 */
--UninstalledGameImageOpacity: 0.5; /* Default: 1. Suggested values: 0.5, 0.2 */
--GameGridImageBackground: inherit; /* Default: inherit. Default is inherit, set #365d2d for a friendly green */
Expand Down Expand Up @@ -1046,47 +1046,3 @@ div.managedlcdialog_DLCArt_2sfDE.appdetailsdlcsection_DLCArt_2bF7X>div {
}
*//* END CLASSIC LAYOUT */


.appactivityday_Event_UVeN0 {
margin-bottom: -26px;
}

.appactivityday_PartnerEventMediumImage_Summary_Ru7OB {
max-width: unset;
}

.appdetailsactivitysection_ActivityFeedContainer_3yTl3 .appdetailsactivitysection_FetchMoreContainer_39Zur {
z-index: 2;
}

.appactivityday_PartnerEventMediumImage_Image_VytJz {
max-width: 130px;
}

.appactivityday_PartnerEventMediumImage_Title_1gljE {
max-width: unset;
width: 92%;
display: flex;
line-height: 20px;
max-height: 20px;
}


.appactivityday_PartnerEventMediumImage_TextColumn_3dJ4B {
width: 100%;
flex-wrap: wrap;
flex-direction: row;
}

.appactivityday_PartnerEventMediumImage_Summary_Ru7OB {
padding-top: unset;
max-width: 600px;
height: 50%;
}

.appactivityday_PartnerEventType_1ujzu {
width: 5%;
display: flex;
max-height: 15px;
}
34 changes: 34 additions & 0 deletions old_glory.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# -*- mode: python ; coding: utf-8 -*-

block_cipher = None


a = Analysis(['old_glory.py'],
pathex=['D:\\New Horizons\\Hearthstone\\SteamUI-OldGlory'],
binaries=[],
datas=[('*.png', '.'), ('steam_oldglory.ico', '.')],
hiddenimports=['six'],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher,
noarchive=False)
pyz = PYZ(a.pure, a.zipped_data,
cipher=block_cipher)
exe = EXE(pyz,
a.scripts,
a.binaries,
a.zipfiles,
a.datas,
[],
name='old_glory',
debug=False,
bootloader_ignore_signals=False,
strip=False,
upx=True,
upx_exclude=[],
runtime_tmpdir=None,
console=False,
icon='steam_oldglory.ico')

0 comments on commit 83927bd

Please sign in to comment.