Skip to content

Commit fd8a55c

Browse files
committed
refactor: Remove color settings on look and feel as they are no longer used, b=no-bug, c=common, workspaces
1 parent 8fce658 commit fd8a55c

File tree

19 files changed

+9
-255
lines changed

19 files changed

+9
-255
lines changed

l10n

src/browser/app/profile/features/theme.inc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,3 @@ pref('zen.theme.acrylic-elements', false);
2020
pref('zen.theme.acrylic-elements', false);
2121
#endif
2222

23-
pref('zen.theme.color-prefs.use-workspace-colors', true);

src/browser/base/content/aboutDialog-xhtml.patch

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,8 @@
11
diff --git a/browser/base/content/aboutDialog.xhtml b/browser/base/content/aboutDialog.xhtml
2-
index c64980810570fcea84e33fdc2d66ac42a79f4e46..6ef9bf4b88f0a0539d833f662c4dd890fd1fde93 100644
2+
index c64980810570fcea84e33fdc2d66ac42a79f4e46..11fe00e84dbac781b3da90abb1251c70bd3b094a 100644
33
--- a/browser/base/content/aboutDialog.xhtml
44
+++ b/browser/base/content/aboutDialog.xhtml
5-
@@ -35,6 +35,7 @@
6-
7-
<html:link rel="localization" href="branding/brand.ftl"/>
8-
<html:link rel="localization" href="browser/aboutDialog.ftl"/>
9-
+ <script src="chrome://browser/content/zenThemeModifier.js"></script>
10-
</linkset>
11-
12-
<html:div id="aboutDialogContainer">
13-
@@ -102,10 +103,6 @@
5+
@@ -102,10 +102,6 @@
146
<label id="version" class="update"/>
157
<label id="releasenotes" is="text-link" hidden="true" data-l10n-id="releaseNotes-link"/>
168
</hbox>
@@ -21,7 +13,7 @@ index c64980810570fcea84e33fdc2d66ac42a79f4e46..6ef9bf4b88f0a0539d833f662c4dd890
2113
</vbox>
2214
#endif
2315
</hbox>
24-
@@ -125,21 +122,17 @@
16+
@@ -125,21 +121,17 @@
2517
</description>
2618
</vbox>
2719
<description class="text-blurb" id="communityDesc" data-l10n-id="community-2">

src/browser/base/content/aboutRestartRequired-xhtml.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/browser/components/preferences/zen-settings.js

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -633,24 +633,9 @@ const kZenExtendedSidebar = 'zen.view.sidebar-expanded';
633633
const kZenSingleToolbar = 'zen.view.use-single-toolbar';
634634

635635
var gZenLooksAndFeel = {
636-
kZenColors: [
637-
'#aac7ff',
638-
'#74d7cb',
639-
'#a0d490',
640-
'#dec663',
641-
'#ffb787',
642-
'#dec1b1',
643-
'#ffb1c0',
644-
'#ddbfc3',
645-
'#f6b0ea',
646-
'#d4bbff',
647-
],
648-
649636
init() {
650637
if (this.__hasInitialized) return;
651638
this.__hasInitialized = true;
652-
this._initializeColorPicker(this._getInitialAccentColor());
653-
window.zenPageAccentColorChanged = this._handleAccentColorChange.bind(this);
654639
gZenMarketplaceManager.init();
655640
for (const pref of [kZenExtendedSidebar, kZenSingleToolbar]) {
656641
Services.prefs.addObserver(pref, this);
@@ -743,37 +728,6 @@ var gZenLooksAndFeel = {
743728
});
744729
}
745730
},
746-
747-
_initializeColorPicker(accentColor) {
748-
let elem = document.getElementById('zenLooksAndFeelColorOptions');
749-
elem.innerHTML = '';
750-
751-
for (let color of this.kZenColors) {
752-
let colorElemParen = document.createElement('div');
753-
let colorElem = document.createElement('div');
754-
colorElemParen.classList.add('zenLooksAndFeelColorOptionParen');
755-
colorElem.classList.add('zenLooksAndFeelColorOption');
756-
colorElem.style.setProperty('--zen-primary-color', color, 'important');
757-
if (accentColor === color) {
758-
colorElemParen.setAttribute('selected', 'true');
759-
}
760-
colorElemParen.addEventListener('click', () => {
761-
Services.prefs.setBoolPref('zen.theme.color-prefs.use-workspace-colors', false);
762-
Services.prefs.setStringPref('zen.theme.accent-color', color);
763-
});
764-
colorElemParen.appendChild(colorElem);
765-
elem.appendChild(colorElemParen);
766-
}
767-
// TODO: add custom color selection!
768-
},
769-
770-
_handleAccentColorChange(accentColor) {
771-
this._initializeColorPicker(accentColor);
772-
},
773-
774-
_getInitialAccentColor() {
775-
return Services.prefs.getStringPref('zen.theme.accent-color', this.kZenColors[0]);
776-
},
777731
};
778732

779733
var gZenWorkspacesSettings = {
@@ -1183,11 +1137,6 @@ Preferences.addAll([
11831137
type: 'bool',
11841138
default: true,
11851139
},
1186-
{
1187-
id: 'zen.theme.color-prefs.use-workspace-colors',
1188-
type: 'bool',
1189-
default: false,
1190-
},
11911140
{
11921141
id: 'zen.view.compact.color-toolbar',
11931142
type: 'bool',

src/browser/components/preferences/zenLooksAndFeel.inc.xhtml

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -39,35 +39,9 @@
3939
data-l10n-id="zen-vertical-tabs-newtab-top-button-up"
4040
preference="zen.view.show-newtab-button-top"/>
4141
</vbox>
42-
</groupbox>
43-
44-
<hbox id="zenLooksCategory"
45-
class="subcategory"
46-
hidden="true"
47-
data-category="paneZenLooks">
48-
<html:h1 data-l10n-id="pane-zen-looks-title"/>
49-
</hbox>
50-
51-
<groupbox id="zenLooksAndFeelGroup" data-category="paneZenLooks" hidden="true" class="highlighting-group">
52-
<label><html:h2 data-l10n-id="zen-look-and-feel-colors-header"/></label>
53-
<description class="description-deemphasized" data-l10n-id="zen-look-and-feel-colors-description" />
54-
55-
<hbox id="zenLooksAndFeelColorOptions" align="center">
56-
</hbox>
57-
58-
<html:div id="zen-theme-builder-wrapper"></html:div>
59-
60-
<box class="indent">
61-
<checkbox id="zenLooksAndFeelUseWorkspaceColors"
62-
data-l10n-id="zen-look-and-feel-use-workspace-colors"
63-
preference="zen.theme.color-prefs.use-workspace-colors"/>
64-
</box>
65-
66-
<hbox id="zenLooksAndFeelGradientPickerParent"></hbox>
67-
68-
<html:div data-l10n-id="preferences-web-appearance-footer">
69-
<html:a id="web-appearance-manage-themes-link" class="text-link" data-l10n-name="themes-link" href="about:addons" target="_blank" />
70-
</html:div>
42+
<html:div data-l10n-id="preferences-web-appearance-footer">
43+
<html:a id="web-appearance-manage-themes-link" class="text-link" data-l10n-name="themes-link" href="about:addons" target="_blank" />
44+
</html:div>
7145
</groupbox>
7246

7347
<hbox id="zenThemeCategory"

src/browser/components/sessionstore/content/aboutSessionRestore-xhtml.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/browser/themes/shared/preferences/zen-preferences.css

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,7 @@ groupbox h2 {
162162

163163
/* Look and feel */
164164

165-
#webAppearanceSettings,
166-
#zen-theme-builder-wrapper + box {
165+
#webAppearanceSettings {
167166
margin-bottom: 15px;
168167
}
169168

@@ -203,31 +202,6 @@ groupbox h2 {
203202
list-style-image: url('chrome://browser/skin/customize.svg');
204203
}
205204

206-
#zenLooksAndFeelColorOptions {
207-
display: grid;
208-
grid-template-columns: repeat(auto-fill, 108px);
209-
gap: 5px;
210-
margin: 10px 0 15px 0;
211-
}
212-
213-
.zenLooksAndFeelColorOptionParen {
214-
display: flex;
215-
flex-direction: column;
216-
align-items: center;
217-
justify-content: center;
218-
padding: 15px;
219-
border-radius: 10px;
220-
cursor: pointer;
221-
background: var(--in-content-box-info-background);
222-
width: fit-content;
223-
margin-top: 10px;
224-
border: 2px solid transparent;
225-
}
226-
227-
.zenLooksAndFeelColorOptionParen[selected='true'] {
228-
border-color: var(--zen-primary-color);
229-
}
230-
231205
#zenLooksAndFeelGroup > html|div:last-of-type {
232206
margin-top: 15px;
233207
}

src/toolkit/components/aboutconfig/content/aboutconfig-html.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

src/toolkit/components/aboutprocesses/content/aboutProcesses-html.patch

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)