remove switch + add theme disclaimer
This commit is contained in:
parent
0dbc633ccd
commit
ab12ebe967
3 changed files with 15 additions and 16 deletions
|
@ -262,13 +262,15 @@ function createMainWindow() {
|
||||||
},
|
},
|
||||||
icon: ICON_PATH,
|
icon: ICON_PATH,
|
||||||
frame: VencordSettings.store.frameless !== true,
|
frame: VencordSettings.store.frameless !== true,
|
||||||
...(Settings.store.transparent
|
...(Settings.store.transparencyOption !== "none"
|
||||||
? {
|
? {
|
||||||
backgroundColor: "#00000000",
|
backgroundColor: "#00000000",
|
||||||
backgroundMaterial: Settings.store.transparencyOption,
|
backgroundMaterial: Settings.store.transparencyOption,
|
||||||
transparent: true
|
transparent: true
|
||||||
}
|
}
|
||||||
: {}),
|
: {
|
||||||
|
transparent: false
|
||||||
|
}),
|
||||||
...(Settings.store.staticTitle ? { title: "Vencord" } : {}),
|
...(Settings.store.staticTitle ? { title: "Vencord" } : {}),
|
||||||
...(VencordSettings.store.macosTranslucency
|
...(VencordSettings.store.macosTranslucency
|
||||||
? {
|
? {
|
||||||
|
|
|
@ -100,26 +100,25 @@ export default function SettingsUi() {
|
||||||
|
|
||||||
{supportsWindowsTransparency && (
|
{supportsWindowsTransparency && (
|
||||||
<>
|
<>
|
||||||
<Switch
|
|
||||||
value={Settings.transparent ?? false}
|
|
||||||
onChange={v => (Settings.transparent = v)}
|
|
||||||
note="Requires a full restart"
|
|
||||||
>
|
|
||||||
Enable window transparency
|
|
||||||
</Switch>
|
|
||||||
|
|
||||||
<Forms.FormTitle className={Margins.top16 + " " + Margins.bottom8}>
|
<Forms.FormTitle className={Margins.top16 + " " + Margins.bottom8}>
|
||||||
Transparency Options
|
Transparency Options
|
||||||
</Forms.FormTitle>
|
</Forms.FormTitle>
|
||||||
|
<Forms.FormText className={Margins.bottom8}>
|
||||||
|
Requires a full restart. You will need a theme that supports transparency for this to work.
|
||||||
|
</Forms.FormText>
|
||||||
|
|
||||||
<Select
|
<Select
|
||||||
placeholder="Mica (incorporates system theme + desktop wallpaper to paint the background)"
|
placeholder="None"
|
||||||
options={[
|
options={[
|
||||||
{
|
{
|
||||||
label: "Mica (incorporates system theme + desktop wallpaper to paint the background)",
|
label: "None",
|
||||||
value: "mica",
|
value: "none",
|
||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "Mica (incorporates system theme + desktop wallpaper to paint the background)",
|
||||||
|
value: "mica"
|
||||||
|
},
|
||||||
{ label: "Tabbed (variant of Mica with stronger background tinting)", value: "tabbed" },
|
{ label: "Tabbed (variant of Mica with stronger background tinting)", value: "tabbed" },
|
||||||
{
|
{
|
||||||
label: "Acrylic (blurs the window behind Vencord Desktop for a translucent background)",
|
label: "Acrylic (blurs the window behind Vencord Desktop for a translucent background)",
|
||||||
|
@ -130,7 +129,6 @@ export default function SettingsUi() {
|
||||||
select={v => (Settings.transparencyOption = v)}
|
select={v => (Settings.transparencyOption = v)}
|
||||||
isSelected={v => v === Settings.transparencyOption}
|
isSelected={v => v === Settings.transparencyOption}
|
||||||
serialize={s => s}
|
serialize={s => s}
|
||||||
isDisabled={!Settings.transparent}
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<Forms.FormDivider className={Margins.top16 + " " + Margins.bottom16} />
|
<Forms.FormDivider className={Margins.top16 + " " + Margins.bottom16} />
|
||||||
|
|
3
src/shared/settings.d.ts
vendored
3
src/shared/settings.d.ts
vendored
|
@ -7,8 +7,7 @@
|
||||||
import type { Rectangle } from "electron";
|
import type { Rectangle } from "electron";
|
||||||
|
|
||||||
export interface Settings {
|
export interface Settings {
|
||||||
transparent?: boolean;
|
transparencyOption?: "none" | "mica" | "tabbed" | "acrylic";
|
||||||
transparencyOption?: "mica" | "tabbed" | "acrylic";
|
|
||||||
maximized?: boolean;
|
maximized?: boolean;
|
||||||
minimized?: boolean;
|
minimized?: boolean;
|
||||||
windowBounds?: Rectangle;
|
windowBounds?: Rectangle;
|
||||||
|
|
Reference in a new issue