Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions core/internal/matugen/matugen.go
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,9 @@ output_path = '%s'
if !opts.ShouldSkipTemplate("pywalfox") {
appendConfig(opts, cfgFile, "pywalfox", "pywalfox.toml")
}
if !opts.ShouldSkipTemplate("zenbrowser") {
appendConfig(opts, cfgFile, "zen", "zenbrowser.toml")

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is zen the correct binary name? I'm using zen-browser-bin and I have it zen-browser.

Suggested change
appendConfig(opts, cfgFile, "zen", "zenbrowser.toml")
appendConfig(opts, cfgFile, "zen-browser", "zenbrowser.toml")

}
if !opts.ShouldSkipTemplate("vesktop") {
appendConfig(opts, cfgFile, "vesktop", "vesktop.toml")
}
Expand Down
1 change: 1 addition & 0 deletions quickshell/Common/SettingsData.qml
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ Singleton {
property bool matugenTemplateQt6ct: true
property bool matugenTemplateFirefox: true
property bool matugenTemplatePywalfox: true
property bool matugenTemplateZenBrowser: true
property bool matugenTemplateVesktop: true
property bool matugenTemplateEquibop: true
property bool matugenTemplateGhostty: true
Expand Down
4 changes: 3 additions & 1 deletion quickshell/Common/Theme.qml
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ Singleton {
if (typeof SettingsData !== "undefined") {
const skipTemplates = [];
if (!SettingsData.runDmsMatugenTemplates) {
skipTemplates.push("gtk", "neovim", "niri", "qt5ct", "qt6ct", "firefox", "pywalfox", "vesktop", "equibop", "ghostty", "kitty", "foot", "alacritty", "wezterm", "dgop", "kcolorscheme", "vscode");
skipTemplates.push("gtk", "neovim", "niri", "qt5ct", "qt6ct", "firefox", "pywalfox", "zenbrowser", "vesktop", "equibop", "ghostty", "kitty", "foot", "alacritty", "wezterm", "dgop", "kcolorscheme", "vscode");
} else {
if (!SettingsData.matugenTemplateGtk)
skipTemplates.push("gtk");
Expand All @@ -890,6 +890,8 @@ Singleton {
skipTemplates.push("firefox");
if (!SettingsData.matugenTemplatePywalfox)
skipTemplates.push("pywalfox");
if (!SettingsData.matugenTemplateZenBrowser)
skipTemplates.push("zenbrowser");
if (!SettingsData.matugenTemplateVesktop)
skipTemplates.push("vesktop");
if (!SettingsData.matugenTemplateEquibop)
Expand Down
1 change: 1 addition & 0 deletions quickshell/Common/settings/SettingsSpec.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ var SPEC = {
matugenTemplateQt6ct: { def: true },
matugenTemplateFirefox: { def: true },
matugenTemplatePywalfox: { def: true },
matugenTemplateZenBrowser: { def: true },
matugenTemplateVesktop: { def: true },
matugenTemplateEquibop: { def: true },
matugenTemplateGhostty: { def: true },
Expand Down
11 changes: 11 additions & 0 deletions quickshell/Modules/Settings/ThemeColorsTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,17 @@ Item {
onToggled: checked => SettingsData.set("matugenTemplatePywalfox", checked)
}

SettingsToggleRow {
tab: "theme"
tags: ["matugen", "zenbrowser", "template"]
settingKey: "matugenTemplateZenBrowser"
text: "zenbrowser"
description: ""
visible: SettingsData.runDmsMatugenTemplates
checked: SettingsData.matugenTemplateZenBrowser
onToggled: checked => SettingsData.set("matugenTemplateZenBrowser", checked)
}

SettingsToggleRow {
tab: "theme"
tags: ["matugen", "vesktop", "discord", "template"]
Expand Down
3 changes: 3 additions & 0 deletions quickshell/matugen/configs/zenbrowser.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[templates.dmszenbrowser]
input_path = 'SHELL_DIR/matugen/templates/zen-userchrome.css'
output_path = '~/.config/DankMaterialShell/zen.css'
94 changes: 94 additions & 0 deletions quickshell/matugen/templates/zen-userchrome.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
/* DMS Matugen Zen Browser Theme */
:root {
--zen-primary-color: {{colors.primary_container.default.hex}} !important;
--toolbarbutton-icon-fill: {{colors.primary.default.hex}} !important;
--toolbar-field-color: {{colors.on_background.default.hex}} !important;
--tab-selected-textcolor: {{colors.primary.default.hex}} !important;
--toolbar-color: {{colors.on_background.default.hex}} !important;
--arrowpanel-color: {{colors.on_surface.default.hex}} !important;
--arrowpanel-background: {{colors.surface_container.default.hex}} !important;
--sidebar-text-color: {{colors.on_background.default.hex}} !important;
--zen-main-browser-background: {{colors.background.default.hex}} !important;
}

.sidebar-placesTree {
background-color: {{colors.surface_container.default.hex}} !important;
}

#zen-workspaces-button {
background-color: {{colors.on_surface_variant.default.hex}} !important;
}

#TabsToolbar {
background-color: {{colors.background.default.hex}} !important;
}

.urlbar-background {
background-color: {{colors.surface_container.default.hex}} !important;
}

.urlbar-input::selection {
color: {{colors.on_primary.default.hex}} !important;
background-color: {{colors.primary.default.hex}} !important;
}

.urlbarView-url {
color: {{colors.on_surface_variant.default.hex}} !important;
}

toolbar .toolbarbutton-1 {
&:not([disabled]) {
&:is([open], [checked])
> :is(
.toolbarbutton-icon,
.toolbarbutton-text,
.toolbarbutton-badge-stack
) {
fill: {{colors.primary.default.hex}}
}
}
}

.identity-color-blue {
--identity-tab-color: {{dank16.color12.default.hex}} !important;
--identity-icon-color: {{dank16.color12.default.hex}} !important;
}

.identity-color-turquoise {
--identity-tab-color: {{dank16.color6.default.hex}} !important;
--identity-icon-color: {{dank16.color6.default.hex}} !important;
}

.identity-color-green {
--identity-tab-color: {{dank16.color10.default.hex}} !important;
--identity-icon-color: {{dank16.color10.default.hex}} !important;
}

.identity-color-yellow {
--identity-tab-color: {{dank16.color11.default.hex}} !important;
--identity-icon-color: {{dank16.color11.default.hex}} !important;
}

.identity-color-orange {
--identity-tab-color: {{dank16.color3.default.hex}} !important;
--identity-icon-color: {{dank16.color3.default.hex}} !important;
}

.identity-color-red {
--identity-tab-color: {{dank16.color9.default.hex}} !important;
--identity-icon-color: {{dank16.color9.default.hex}} !important;
}

.identity-color-pink {
--identity-tab-color: {{dank16.color13.default.hex}} !important;
--identity-icon-color: {{dank16.color13.default.hex}} !important;
}

.identity-color-purple {
--identity-tab-color: {{dank16.color5.default.hex}} !important;
--identity-icon-color: {{dank16.color5.default.hex}} !important;
}

#zen-appcontent-navbar-container {
background-color: {{colors.background.default.hex}} !important;
}
18 changes: 18 additions & 0 deletions quickshell/translations/settings_search_index.json
Original file line number Diff line number Diff line change
Expand Up @@ -1565,6 +1565,24 @@
"theme"
]
},
{
"section": "matugenTemplateZenBrowser",
"label": "Zen Browser",
"tabIndex": 10,
"category": "Theme & Colors",
"keywords": [
"appearance",
"colors",
"zen",
"zenbrowser",
"look",
"matugen",
"scheme",
"style",
"template",
"theme"
]
},
{
"section": "matugenTemplateGtk",
"label": "GTK",
Expand Down
Loading