remove switch + add theme disclaimer

This commit is contained in:
Flag 2023-07-06 21:39:21 +01:00
parent 0dbc633ccd
commit ab12ebe967
3 changed files with 15 additions and 16 deletions

View file

@ -262,13 +262,15 @@ function createMainWindow() {
},
icon: ICON_PATH,
frame: VencordSettings.store.frameless !== true,
...(Settings.store.transparent
...(Settings.store.transparencyOption !== "none"
? {
backgroundColor: "#00000000",
backgroundMaterial: Settings.store.transparencyOption,
transparent: true
}
: {}),
: {
transparent: false
}),
...(Settings.store.staticTitle ? { title: "Vencord" } : {}),
...(VencordSettings.store.macosTranslucency
? {

View file

@ -100,26 +100,25 @@ export default function SettingsUi() {
{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}>
Transparency Options
</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
placeholder="Mica (incorporates system theme + desktop wallpaper to paint the background)"
placeholder="None"
options={[
{
label: "Mica (incorporates system theme + desktop wallpaper to paint the background)",
value: "mica",
label: "None",
value: "none",
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: "Acrylic (blurs the window behind Vencord Desktop for a translucent background)",
@ -130,7 +129,6 @@ export default function SettingsUi() {
select={v => (Settings.transparencyOption = v)}
isSelected={v => v === Settings.transparencyOption}
serialize={s => s}
isDisabled={!Settings.transparent}
/>
<Forms.FormDivider className={Margins.top16 + " " + Margins.bottom16} />

View file

@ -7,8 +7,7 @@
import type { Rectangle } from "electron";
export interface Settings {
transparent?: boolean;
transparencyOption?: "mica" | "tabbed" | "acrylic";
transparencyOption?: "none" | "mica" | "tabbed" | "acrylic";
maximized?: boolean;
minimized?: boolean;
windowBounds?: Rectangle;