Skip to content

Commit b7d0bf1

Browse files
authored
Merge branch 'Vencord:main' into main
2 parents 7c47801 + b20c777 commit b7d0bf1

10 files changed

Lines changed: 54 additions & 30 deletions

File tree

.github/workflows/release.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,16 @@ jobs:
3737
run: pnpm build
3838

3939
- name: Run Electron Builder
40+
if: ${{ matrix.platform != 'mac' }}
4041
run: |
4142
pnpm electron-builder --${{ matrix.platform }} --publish always
4243
env:
4344
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
CSC_LINK: ${{ matrix.platform == "mac" && secrets.APPLE_SIGNING_CERT }}
45+
46+
- name: Run Electron Builder
47+
if: ${{ matrix.platform == 'mac' }}
48+
run: |
49+
pnpm electron-builder --${{ matrix.platform }} --publish always
50+
env:
51+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52+
CSC_LINK_: ${{ secrets.APPLE_SIGNING_CERT }}

meta/dev.vencord.Vesktop.metainfo.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,22 @@
2828
</screenshot>
2929
</screenshots>
3030
<releases>
31+
<release version="1.5.0" date="2024-01-16" type="stable">
32+
<url>https://github.com/Vencord/Vesktop/releases/tag/v1.5.0</url>
33+
<description>
34+
<p>What's Changed</p>
35+
<ul>
36+
<li>fully renamed to Vesktop. You will likely have to login to Discord again. You might have to re-create your vesktop shortcut</li>
37+
<li>added option to disable smooth scrolling by @ZirixCZ</li>
38+
<li>added setting to disable hardware acceleration by @zt64</li>
39+
<li>fixed adding connections</li>
40+
<li>fixed / improved discord popouts</li>
41+
<li>you can now use the custom discord titlebar on linux/mac</li>
42+
<li>the splash window is now draggable</li>
43+
<li>now signed on mac</li>
44+
</ul>
45+
</description>
46+
</release>
3147
<release version="0.4.4" date="2023-12-02" type="stable">
3248
<url>https://github.com/Vencord/Vesktop/releases/tag/v0.4.4</url>
3349
<description>

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vesktop",
3-
"version": "0.4.4",
3+
"version": "1.5.0",
44
"private": true,
55
"description": "",
66
"keywords": [],
@@ -27,7 +27,7 @@
2727
"arrpc": "github:OpenAsar/arrpc#98879cae0565e6fce34e4cb6f544bf42c6a7e7c8"
2828
},
2929
"optionalDependencies": {
30-
"@vencord/venmic": "^3.2.2"
30+
"@vencord/venmic": "^3.2.3"
3131
},
3232
"devDependencies": {
3333
"@fal-works/esbuild-plugin-global-externals": "^2.1.2",

pnpm-lock.yaml

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main/mainWindow.ts

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,7 @@ function initTray(win: BrowserWindow) {
7878
label: "Open",
7979
click() {
8080
win.show();
81-
},
82-
enabled: false
81+
}
8382
},
8483
{
8584
label: "About",
@@ -122,14 +121,6 @@ function initTray(win: BrowserWindow) {
122121
tray.setToolTip("Vesktop");
123122
tray.setContextMenu(trayMenu);
124123
tray.on("click", () => win.show());
125-
126-
win.on("show", () => {
127-
trayMenu.items[0].enabled = false;
128-
});
129-
130-
win.on("hide", () => {
131-
trayMenu.items[0].enabled = true;
132-
});
133124
}
134125

135126
async function clearData(win: BrowserWindow) {
@@ -374,11 +365,11 @@ function createMainWindow() {
374365
removeSettingsListeners();
375366
removeVencordSettingsListeners();
376367

377-
const { staticTitle, transparencyOption, enableMenu, discordWindowsTitleBar } = Settings.store;
368+
const { staticTitle, transparencyOption, enableMenu, customTitleBar } = Settings.store;
378369

379370
const { frameless } = VencordSettings.store;
380371

381-
const noFrame = frameless === true || (process.platform === "win32" && discordWindowsTitleBar === true);
372+
const noFrame = frameless === true || customTitleBar === true;
382373

383374
const win = (mainWin = new BrowserWindow({
384375
show: false,
@@ -398,7 +389,7 @@ function createMainWindow() {
398389
backgroundMaterial: transparencyOption
399390
}),
400391
// Fix transparencyOption for custom discord titlebar
401-
...(discordWindowsTitleBar &&
392+
...(customTitleBar &&
402393
transparencyOption &&
403394
transparencyOption !== "none" && {
404395
transparent: true

src/main/settings.ts

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,15 @@ function loadSettings<T extends object = any>(file: string, name: string) {
3535
}
3636

3737
export const Settings = loadSettings<TSettings>(SETTINGS_FILE, "Vesktop settings");
38+
if (Object.hasOwn(Settings.plain, "discordWindowsTitleBar")) {
39+
Settings.plain.customTitleBar = Settings.plain.discordWindowsTitleBar;
40+
delete Settings.plain.discordWindowsTitleBar;
41+
Settings.markAsChanged();
42+
}
43+
3844
export const VencordSettings = loadSettings<any>(VENCORD_SETTINGS_FILE, "Vencord settings");
3945

40-
if (Object.hasOwn(Settings.store, "firstLaunch") && !existsSync(STATE_FILE)) {
46+
if (Object.hasOwn(Settings.plain, "firstLaunch") && !existsSync(STATE_FILE)) {
4147
console.warn("legacy state in settings.json detected. migrating to state.json");
4248
const state = {} as TState;
4349
for (const prop of [
@@ -47,7 +53,7 @@ if (Object.hasOwn(Settings.store, "firstLaunch") && !existsSync(STATE_FILE)) {
4753
"skippedUpdate",
4854
"steamOSLayoutVersion",
4955
"windowBounds"
50-
]) {
56+
] as const) {
5157
state[prop] = Settings.plain[prop];
5258
delete Settings.plain[prop];
5359
}

src/renderer/components/Settings.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Margins } from "@vencord/types/utils";
1010
import { Button, Forms, Select, Switch, Text, Toasts, useState } from "@vencord/types/webpack/common";
1111
import { setBadge } from "renderer/appBadge";
1212
import { useSettings } from "renderer/settings";
13-
import { isMac, isWindows } from "renderer/utils";
13+
import { isMac } from "renderer/utils";
1414
import { isTruthy } from "shared/utils/guards";
1515

1616
export default function SettingsUi() {
@@ -21,10 +21,10 @@ export default function SettingsUi() {
2121
const [autoStartEnabled, setAutoStartEnabled] = useState(autostart.isEnabled());
2222

2323
const allSwitches: Array<false | [keyof typeof Settings, string, string, boolean?, (() => boolean)?]> = [
24-
isWindows && [
25-
"discordWindowsTitleBar",
24+
[
25+
"customTitleBar",
2626
"Discord Titlebar",
27-
"Use Discord's custom title bar instead of the Windows one. Requires a full restart."
27+
"Use Discord's custom title bar instead of the native system one. Requires a full restart."
2828
],
2929
!isMac && ["tray", "Tray Icon", "Add a tray icon for Vesktop", true],
3030
!isMac && [

src/renderer/patches/platformClass.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
import { Settings } from "renderer/settings";
8-
import { isMac, isWindows } from "renderer/utils";
8+
import { isMac } from "renderer/utils";
99

1010
import { addPatch } from "./shared";
1111

@@ -22,8 +22,8 @@ addPatch({
2222
],
2323

2424
getPlatformClass() {
25+
if (Settings.store.customTitleBar) return "platform-win";
2526
if (isMac) return "platform-osx";
26-
if (isWindows && Settings.store.discordWindowsTitleBar) return "platform-win";
2727
return "platform-web";
2828
}
2929
});

src/renderer/patches/windowsTitleBar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Settings } from "renderer/settings";
88

99
import { addPatch } from "./shared";
1010

11-
if (Settings.store.discordWindowsTitleBar)
11+
if (Settings.store.customTitleBar)
1212
addPatch({
1313
patches: [
1414
{

src/shared/settings.d.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ export interface Settings {
1919
hardwareAcceleration?: boolean;
2020
arRPC?: boolean;
2121
appBadge?: boolean;
22-
discordWindowsTitleBar?: boolean;
2322
disableMinSize?: boolean;
2423

24+
/** @deprecated use customTitleBar */
25+
discordWindowsTitleBar?: boolean;
26+
customTitleBar?: boolean;
27+
2528
checkUpdates?: boolean;
2629

2730
splashTheming?: boolean;

0 commit comments

Comments
 (0)