Skip to content

Commit

Permalink
platformStyles: visual refresh support
Browse files Browse the repository at this point in the history
  • Loading branch information
Cynosphere committed Feb 7, 2025
1 parent c81b766 commit df8a5d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
9 changes: 9 additions & 0 deletions src/platformStyles/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ export const patches: Patch[] = [
replacement: (_, pipOffset, platformUtil) =>
`${pipOffset}=require("platformStyles_helper").platformBorders(${platformUtil})!==${platformUtil}.PlatformTypes.WEB&&this.inPopout?22:0;`
}
},

// visual refresh
{
find: ".winButtonsWithDivider]:",
replace: {
match: /\(0,(\i)\.getPlatform\)\(\)/g,
replacement: (_, platformUtil) => `require("platformStyles_helper").platformBorders(${platformUtil})`
}
}
];

Expand Down
5 changes: 3 additions & 2 deletions src/platformStyles/manifest.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
"$schema": "https://moonlight-mod.github.io/manifest.schema.json",
"id": "platformStyles",
"version": "1.0.1",
"version": "1.0.2",
"meta": {
"name": "Platform Styles",
"tagline": "Change the window border appearance to another operating system's style.",
"authors": ["Cynosphere", "adryd"],
"tags": ["appearance"],
"source": "https://github.com/Cynosphere/moonlight-extensions"
"source": "https://github.com/Cynosphere/moonlight-extensions",
"changelog": "Support for Visual Refresh"
},
"environment": "desktop",
"settings": {
Expand Down

0 comments on commit df8a5d6

Please sign in to comment.