Added theme color deduction for workspace gradients and fixed macos titlebar buttons display

This commit is contained in:
mr. M
2024-10-29 20:45:38 +01:00
parent 1a906b746e
commit a08df8f9ef
9 changed files with 28 additions and 23 deletions

View File

@@ -645,6 +645,7 @@ var gZenLooksAndFeel = {
colorElemParen.setAttribute('selected', 'true');
}
colorElemParen.addEventListener('click', () => {
Services.prefs.setBoolPref('zen.theme.color-prefs.use-workspace-colors', false);
Services.prefs.setStringPref('zen.theme.accent-color', color);
});
colorElemParen.appendChild(colorElem);
@@ -967,11 +968,6 @@ var gZenCKSSettings = {
};
Preferences.addAll([
{
id: 'zen.theme.toolbar-themed',
type: 'bool',
default: true,
},
{
id: 'zen.sidebar.enabled',
type: 'bool',
@@ -1086,5 +1082,10 @@ Preferences.addAll([
id: "zen.glance.enabled",
type: "bool",
default: true,
}
},
{
id: "zen.theme.color-prefs.use-workspace-colors",
type: "bool",
default: false,
},
]);