Add ZenGradientGenerator to zen-assets.jar and zen-styles

This commit adds the ZenGradientGenerator module to the zen-assets.jar and zen-styles directories. The ZenGradientGenerator is responsible for generating gradients used in the Zen theme. This addition will enhance the visual appearance of the theme.
This commit is contained in:
mauro-balades
2024-10-07 20:54:53 +02:00
parent c9a8177351
commit a556454ced
6 changed files with 65 additions and 1 deletions

View File

@@ -444,6 +444,7 @@ var gZenLooksAndFeel = {
var onPreferColorSchemeChange = this.onPreferColorSchemeChange.bind(this);
window.matchMedia('(prefers-color-scheme: dark)').addListener(onPreferColorSchemeChange);
this.onPreferColorSchemeChange();
this.themePicker = new ZenThemePicker(document.getElementById('zenLooksAndFeelGradientPickerParent'));
window.addEventListener('unload', () => {
window.matchMedia('(prefers-color-scheme: dark)').removeListener(onPreferColorSchemeChange);
});