mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-17 17:08:23 +00:00
Reintroduce workspace colors panel with fade-in and fade-out animations
This commit is contained in:
@@ -304,42 +304,6 @@
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
text: [
|
||||
{
|
||||
id: 'zen-welcome-workspace-colors-title',
|
||||
},
|
||||
{
|
||||
id: 'zen-welcome-workspace-colors-description',
|
||||
},
|
||||
],
|
||||
buttons: [
|
||||
{
|
||||
l10n: 'zen-welcome-next-action',
|
||||
onclick: async () => {
|
||||
return true;
|
||||
},
|
||||
},
|
||||
],
|
||||
fadeIn() {
|
||||
const anchor = document.createElement('div');
|
||||
anchor.id = 'zen-welcome-workspace-colors-anchor';
|
||||
document.getElementById('zen-welcome-page-content').appendChild(anchor);
|
||||
gZenThemePicker.panel.setAttribute('noautohide', 'true');
|
||||
gZenThemePicker.panel.setAttribute('consumeoutsideclicks', 'false');
|
||||
PanelMultiView.openPopup(gZenThemePicker.panel, anchor, {
|
||||
position: 'top',
|
||||
});
|
||||
},
|
||||
dontFadeOut: true,
|
||||
async fadeOut() {
|
||||
gZenThemePicker.panel.removeAttribute('noautohide');
|
||||
gZenThemePicker.panel.removeAttribute('consumeoutsideclicks');
|
||||
await animate(gZenThemePicker.panel, { opacity: [1, 0] });
|
||||
gZenThemePicker.panel.hidePopup();
|
||||
gZenThemePicker.panel.removeAttribute('style');
|
||||
},
|
||||
},
|
||||
{
|
||||
text: [
|
||||
{
|
||||
@@ -448,6 +412,42 @@
|
||||
openWelcomeTab();
|
||||
},
|
||||
},
|
||||
{
|
||||
text: [
|
||||
{
|
||||
id: 'zen-welcome-workspace-colors-title',
|
||||
},
|
||||
{
|
||||
id: 'zen-welcome-workspace-colors-description',
|
||||
},
|
||||
],
|
||||
buttons: [
|
||||
{
|
||||
l10n: 'zen-welcome-next-action',
|
||||
onclick: async () => {
|
||||
return true;
|
||||
},
|
||||
},
|
||||
],
|
||||
fadeIn() {
|
||||
const anchor = document.createElement('div');
|
||||
anchor.id = 'zen-welcome-workspace-colors-anchor';
|
||||
document.getElementById('zen-welcome-page-content').appendChild(anchor);
|
||||
gZenThemePicker.panel.setAttribute('noautohide', 'true');
|
||||
gZenThemePicker.panel.setAttribute('consumeoutsideclicks', 'false');
|
||||
PanelMultiView.openPopup(gZenThemePicker.panel, anchor, {
|
||||
position: 'top',
|
||||
});
|
||||
},
|
||||
dontFadeOut: true,
|
||||
async fadeOut() {
|
||||
gZenThemePicker.panel.removeAttribute('noautohide');
|
||||
gZenThemePicker.panel.removeAttribute('consumeoutsideclicks');
|
||||
await animate(gZenThemePicker.panel, { opacity: [1, 0] });
|
||||
gZenThemePicker.panel.hidePopup();
|
||||
gZenThemePicker.panel.removeAttribute('style');
|
||||
},
|
||||
},
|
||||
{
|
||||
text: [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user