Skip to content

Commit

Permalink
Merge pull request #247 from doki-theme/wallpaperFix
Browse files Browse the repository at this point in the history
Wallpaper fix & Check Sum Fix
  • Loading branch information
Unthrottled authored Apr 21, 2024
2 parents be16fdd + afa1be3 commit 71ea87d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 3 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# Change Log

## 88.5-1.6.3 [Bug Fixes]

- Restored the checksum fixes, so you do not see the "Your Code installation appears to be corrupt" message anymore. Restore your assets, exit VSCode and start it again for this to take effect.
- Fixed wallpaper showing up on sticky lines. Please re-install your wallpaper (or restore assets) for this to take effect.

| Before | After |
| --- | --- |
| ![before](https://github.com/doki-theme/doki-theme-vscode/assets/15972415/8f523c2e-06f2-47aa-b1f6-93de38fed06e) | ![after](https://github.com/doki-theme/doki-theme-vscode/assets/15972415/fcdb89db-90ad-462a-bc53-5d0fa9fb85ff) |

## 88.5-1.6.2 [Terminal Wallpaper support]

- Wallpaper now shows up on the terminal for the `1.83.1` builds. Please re-install your wallpaper for this to take effect.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"displayName": "Doki Theme",
"description": "Cute anime character themes!",
"publisher": "unthrottled",
"version": "88.1.16",
"version": "88.1.17",
"license": "MIT",
"icon": "Doki-Theme-v2.png",
"galleryBanner": {
Expand Down
3 changes: 2 additions & 1 deletion src/CheckSumService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export const fixCheckSums = (extensionContext: vscode.ExtensionContext) => {
false
);

console.log(checksumChanged, productFile)
if (checksumChanged) {
const json = JSON.stringify(product, null, "\t");
try {
Expand Down Expand Up @@ -68,7 +69,7 @@ export const restoreChecksum = () => {
function computeChecksum(file: string) {
const contents = fs.readFileSync(file);
return crypto
.createHash("md5")
.createHash("sha256")
.update(contents)
.digest("base64")
.replace(/=+$/, "");
Expand Down
2 changes: 1 addition & 1 deletion src/NotificationService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { VSCodeGlobals } from "./VSCodeGlobals";
import { attemptToGreetUser } from "./WelcomeService";

const SAVED_VERSION = "doki.theme.version";
const DOKI_THEME_VERSION = "v88.5-1.6.2";
const DOKI_THEME_VERSION = "v88.5-1.6.3";

export function attemptToNotifyUpdates(context: vscode.ExtensionContext) {
const savedVersion = VSCodeGlobals.globalState.get(SAVED_VERSION);
Expand Down
6 changes: 6 additions & 0 deletions src/StickerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ function buildWallpaperCss({
.pane-header,
.minimap-decorations-layer,
.xterm-cursor-layer,
.monaco-breadcrumbs,
/* sticky lines */
.monaco-editor .sticky-line-content,
.monaco-editor .sticky-line-number,
.monaco-list .monaco-scrollable-element .monaco-tree-sticky-container .monaco-tree-sticky-row.monaco-list-row,
/* end sticky lines */
.decorationsOverviewRuler,
.monaco-workbench .part.editor>.content .editor-group-container>.title .tabs-breadcrumbs .breadcrumbs-control,
.ref-tree, /* find usages */
Expand Down

0 comments on commit 71ea87d

Please sign in to comment.