mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-05-02 02:22:06 -04:00
matugen: generate theme for Vencord (#2320)
This commit is contained in:
@@ -60,6 +60,7 @@ var templateRegistry = []TemplateDef{
|
||||
{ID: "pywalfox", Commands: []string{"pywalfox"}, ConfigFile: "pywalfox.toml"},
|
||||
{ID: "zenbrowser", Commands: []string{"zen", "zen-browser", "zen-beta", "zen-twilight"}, Flatpaks: []string{"app.zen_browser.zen"}, ConfigFile: "zenbrowser.toml"},
|
||||
{ID: "vesktop", Commands: []string{"vesktop"}, Flatpaks: []string{"dev.vencord.Vesktop"}, ConfigFile: "vesktop.toml"},
|
||||
{ID: "vencord", Commands: []string{"discord", "Discord", "discord-canary", "DiscordCanary"}, Flatpaks: []string{"com.discordapp.Discord", "com.discordapp.DiscordCanary"}, ConfigFile: "vencord.toml"},
|
||||
{ID: "equibop", Commands: []string{"equibop"}, ConfigFile: "equibop.toml"},
|
||||
{ID: "ghostty", Commands: []string{"ghostty"}, ConfigFile: "ghostty.toml", Kind: TemplateKindTerminal},
|
||||
{ID: "kitty", Commands: []string{"kitty"}, ConfigFile: "kitty.toml", Kind: TemplateKindTerminal},
|
||||
|
||||
@@ -494,6 +494,7 @@ Singleton {
|
||||
property bool matugenTemplatePywalfox: true
|
||||
property bool matugenTemplateZenBrowser: true
|
||||
property bool matugenTemplateVesktop: true
|
||||
property bool matugenTemplateVencord: true
|
||||
property bool matugenTemplateEquibop: true
|
||||
property bool matugenTemplateGhostty: true
|
||||
property bool matugenTemplateKitty: true
|
||||
|
||||
@@ -1582,7 +1582,7 @@ Singleton {
|
||||
if (typeof SettingsData !== "undefined") {
|
||||
const skipTemplates = [];
|
||||
if (!SettingsData.runDmsMatugenTemplates) {
|
||||
skipTemplates.push("gtk", "nvim", "niri", "qt5ct", "qt6ct", "firefox", "pywalfox", "zenbrowser", "vesktop", "equibop", "ghostty", "kitty", "foot", "alacritty", "wezterm", "dgop", "kcolorscheme", "vscode", "emacs", "zed");
|
||||
skipTemplates.push("gtk", "nvim", "niri", "qt5ct", "qt6ct", "firefox", "pywalfox", "zenbrowser", "vesktop", "vencord", "equibop", "ghostty", "kitty", "foot", "alacritty", "wezterm", "dgop", "kcolorscheme", "vscode", "emacs", "zed");
|
||||
} else {
|
||||
if (!SettingsData.matugenTemplateGtk)
|
||||
skipTemplates.push("gtk");
|
||||
@@ -1604,6 +1604,8 @@ Singleton {
|
||||
skipTemplates.push("zenbrowser");
|
||||
if (!SettingsData.matugenTemplateVesktop)
|
||||
skipTemplates.push("vesktop");
|
||||
if (!SettingsData.matugenTemplateVencord)
|
||||
skipTemplates.push("vencord");
|
||||
if (!SettingsData.matugenTemplateEquibop)
|
||||
skipTemplates.push("equibop");
|
||||
if (!SettingsData.matugenTemplateGhostty)
|
||||
|
||||
@@ -302,6 +302,7 @@ var SPEC = {
|
||||
matugenTemplatePywalfox: { def: true },
|
||||
matugenTemplateZenBrowser: { def: true },
|
||||
matugenTemplateVesktop: { def: true },
|
||||
matugenTemplateVencord: { def: true },
|
||||
matugenTemplateEquibop: { def: true },
|
||||
matugenTemplateGhostty: { def: true },
|
||||
matugenTemplateKitty: { def: true },
|
||||
|
||||
@@ -2645,6 +2645,18 @@ Item {
|
||||
onToggled: checked => SettingsData.set("matugenTemplateVesktop", checked)
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
tab: "theme"
|
||||
tags: ["matugen", "vencord", "discord", "template"]
|
||||
settingKey: "matugenTemplateVencord"
|
||||
text: "vencord"
|
||||
description: getTemplateDescription("vencord", "")
|
||||
descriptionColor: getTemplateDescriptionColor("vencord")
|
||||
visible: SettingsData.runDmsMatugenTemplates
|
||||
checked: SettingsData.matugenTemplateVencord
|
||||
onToggled: checked => SettingsData.set("matugenTemplateVencord", checked)
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
tab: "theme"
|
||||
tags: ["matugen", "equibop", "discord", "template"]
|
||||
|
||||
3
quickshell/matugen/configs/vencord.toml
Normal file
3
quickshell/matugen/configs/vencord.toml
Normal file
@@ -0,0 +1,3 @@
|
||||
[templates.dmsvencord]
|
||||
input_path = 'SHELL_DIR/matugen/templates/vesktop.css'
|
||||
output_path = 'CONFIG_DIR/Vencord/themes/dank-discord.css'
|
||||
@@ -4455,6 +4455,24 @@
|
||||
"vesktop"
|
||||
]
|
||||
},
|
||||
{
|
||||
"section": "matugenTemplateVencord",
|
||||
"label": "vencord",
|
||||
"tabIndex": 10,
|
||||
"category": "Theme & Colors",
|
||||
"keywords": [
|
||||
"appearance",
|
||||
"colors",
|
||||
"discord",
|
||||
"vencord",
|
||||
"look",
|
||||
"matugen",
|
||||
"scheme",
|
||||
"style",
|
||||
"template",
|
||||
"theme"
|
||||
]
|
||||
},
|
||||
{
|
||||
"section": "matugenTemplateZenBrowser",
|
||||
"label": "zenbrowser",
|
||||
|
||||
Reference in New Issue
Block a user