mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-04 21:02:06 -04:00
New neovim theme engine (#1985)
* feat(matugen)!: rework completely neovim's theme engine * fix: link to neovim theme plugin * fix: expect AvengeMedia/base46 instead of Silzinc/base46
This commit is contained in:
@@ -2568,18 +2568,96 @@ Item {
|
||||
onToggled: checked => SettingsData.set("matugenTemplateFoot", checked)
|
||||
}
|
||||
|
||||
SettingsDivider {
|
||||
visible: neovimThemeToggle.visible && neovimThemeToggle.checked
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
id: neovimThemeToggle
|
||||
tab: "theme"
|
||||
tags: ["matugen", "neovim", "terminal", "template"]
|
||||
settingKey: "matugenTemplateNeovim"
|
||||
text: "neovim"
|
||||
description: getTemplateDescription("nvim", I18n.tr("Requires lazy plugin manager", "neovim template description"))
|
||||
description: getTemplateDescription("nvim", I18n.tr("Required plugin: ") + "https://github.com/AvengeMedia/base46")
|
||||
descriptionColor: getTemplateDescriptionColor("nvim")
|
||||
visible: SettingsData.runDmsMatugenTemplates
|
||||
checked: SettingsData.matugenTemplateNeovim
|
||||
onToggled: checked => SettingsData.set("matugenTemplateNeovim", checked)
|
||||
}
|
||||
|
||||
|
||||
SettingsDropdownRow {
|
||||
text: I18n.tr("Dark mode base")
|
||||
tab: "theme"
|
||||
tags: ["matugen", "neovim", "terminal", "template"]
|
||||
settingKey: "matugenTemplateNeovimSettings"
|
||||
description: "Base to derive dark theme from"
|
||||
visible: neovimThemeToggle.visible && neovimThemeToggle.checked
|
||||
currentValue: SettingsData.matugenTemplateNeovimSettings?.dark?.baseTheme ?? "github_dark"
|
||||
options: ["aquarium", "ashes", "aylin", "ayu_dark", "bearded-arc", "carbonfox", "catppuccin", "chadracula", "chadracula-evondev", "chadtain", "chocolate", "darcula-dark", "dark_horizon", "decay", "default-dark", "doomchad", "eldritch", "embark", "everblush", "everforest", "falcon", "flexoki", "flouromachine", "gatekeeper", "github_dark", "gruvbox", "gruvchad", "hiberbee", "horizon", "jabuti", "jellybeans", "kanagawa", "kanagawa-dragon", "material-darker", "material-deep-ocean", "melange", "midnight_breeze", "mito-laser", "monekai", "monochrome", "mountain", "neofusion", "nightfox", "nightlamp", "nightowl", "nord", "obsidian-ember", "oceanic-next", "onedark", "onenord", "oxocarbon", "palenight", "pastelDark", "pastelbeans", "penumbra_dark", "poimandres", "radium", "rosepine", "rxyhn", "scaryforest", "seoul256_dark", "solarized_dark", "solarized_osaka", "starlight", "sweetpastel", "tokyodark", "tokyonight", "tomorrow_night", "tundra", "vesper", "vscode_dark", "wombat", "yoru", "zenburn"]
|
||||
enableFuzzySearch: true
|
||||
onValueChanged: value => {
|
||||
const settings = SettingsData.matugenTemplateNeovimSettings;
|
||||
settings.dark.baseTheme = value;
|
||||
SettingsData.set("matugenTemplateNeovimSettings", settings);
|
||||
}
|
||||
}
|
||||
|
||||
SettingsDropdownRow {
|
||||
text: I18n.tr("Light mode base")
|
||||
tab: "theme"
|
||||
tags: ["matugen", "neovim", "terminal", "template"]
|
||||
settingKey: "matugenTemplateNeovimSettings"
|
||||
description: "Base to derive light theme from"
|
||||
visible: neovimThemeToggle.visible && neovimThemeToggle.checked
|
||||
currentValue: SettingsData.matugenTemplateNeovimSettings?.light?.baseTheme ?? "github_light"
|
||||
options: ["ayu_light", "blossom_light", "catppuccin-latte", "default-light", "everforest_light", "flex-light", "flexoki-light", "github_light", "gruvbox_light", "material-lighter", "nano-light", "oceanic-light", "one_light", "onenord_light", "penumbra_light", "rosepine-dawn", "seoul256_light", "solarized_light", "sunrise_breeze", "vscode_light"]
|
||||
enableFuzzySearch: true
|
||||
onValueChanged: value => {
|
||||
const settings = SettingsData.matugenTemplateNeovimSettings;
|
||||
settings.light.baseTheme = value;
|
||||
SettingsData.set("matugenTemplateNeovimSettings", settings);
|
||||
}
|
||||
}
|
||||
|
||||
SettingsSliderRow {
|
||||
text: I18n.tr("Dark mode harmony")
|
||||
tags: ["matugen", "neovim", "terminal", "template"]
|
||||
settingKey: "matugenTemplateNeovimSettings"
|
||||
description: "How much should the base dark theme be tinted"
|
||||
visible: neovimThemeToggle.visible && neovimThemeToggle.checked
|
||||
minimum: 0
|
||||
maximum: 100
|
||||
value: (SettingsData.matugenTemplateNeovimSettings?.dark?.harmony ?? 0.5) * 100
|
||||
defaultValue: 50
|
||||
onSliderValueChanged: value => {
|
||||
const settings = SettingsData.matugenTemplateNeovimSettings;
|
||||
settings.dark.harmony = value / 100;
|
||||
SettingsData.set("matugenTemplateNeovimSettings", settings);
|
||||
}
|
||||
}
|
||||
|
||||
SettingsSliderRow {
|
||||
text: I18n.tr("Light mode harmony")
|
||||
tags: ["matugen", "neovim", "terminal", "template"]
|
||||
settingKey: "matugenTemplateNeovimSettings"
|
||||
description: "How much should the base light theme be tinted"
|
||||
visible: neovimThemeToggle.visible && neovimThemeToggle.checked
|
||||
minimum: 0
|
||||
maximum: 100
|
||||
value: (SettingsData.matugenTemplateNeovimSettings?.light?.harmony ?? 0.5) * 100
|
||||
defaultValue: 50
|
||||
onSliderValueChanged: value => {
|
||||
const settings = SettingsData.matugenTemplateNeovimSettings;
|
||||
settings.light.harmony = value / 100;
|
||||
SettingsData.set("matugenTemplateNeovimSettings", settings);
|
||||
}
|
||||
}
|
||||
|
||||
SettingsDivider {
|
||||
visible: neovimThemeToggle.visible && neovimThemeToggle.checked
|
||||
}
|
||||
|
||||
SettingsToggleRow {
|
||||
tab: "theme"
|
||||
tags: ["matugen", "alacritty", "terminal", "template"]
|
||||
|
||||
Reference in New Issue
Block a user