chore: Add floating URL bar preference to theme settings

This commit is contained in:
Mauro Balades
2024-07-31 11:19:49 +02:00
parent d5164f05a5
commit 234f4ecfed
5 changed files with 85 additions and 8 deletions

View File

@@ -93,5 +93,10 @@ Preferences.addAll([
id: "zen.theme.pill-button",
type: "bool",
default: true,
},
{
id: "zen.theme.floating-urlbar",
type: "bool",
default: false,
}
]);

View File

@@ -29,13 +29,6 @@
data-l10n-id="zen-look-and-feel-compact-view-top-toolbar"
preference="zen.view.compact.hide-toolbar"/>
</vbox>
<label><html:h2 data-l10n-id="zen-look-and-feel-buttons-header"/></label>
<description class="description-deemphasized" data-l10n-id="zen-look-and-feel-buttons-description" />
<checkbox id="zenLooksAndFeelPilledButtons"
data-l10n-id="zen-look-and-feel-pilled-buttons"
preference="zen.theme.pill-button"/>
</groupbox>
<hbox id="zenSidePanelsCategory"
@@ -73,4 +66,27 @@
preference="zen.view.sidebar-expanded"/>
</groupbox>
<hbox id="zenThemeCategory"
class="subcategory"
hidden="true"
data-category="paneZenLooks">
<html:h1 data-l10n-id="pane-zen-theme-title"/>
</hbox>
<groupbox id="zenThemeGroup" data-category="paneZenLooks" hidden="true" class="highlighting-group">
<label><html:h2 data-l10n-id="zen-look-and-feel-buttons-header"/></label>
<description class="description-deemphasized" data-l10n-id="zen-look-and-feel-buttons-description" />
<checkbox id="zenLooksAndFeelPilledButtons"
data-l10n-id="zen-look-and-feel-pilled-buttons"
preference="zen.theme.pill-button"/>
<label><html:h2 data-l10n-id="zen-look-and-feel-urlbar-header"/></label>
<description class="description-deemphasized" data-l10n-id="zen-look-and-feel-urlbar-description" />
<checkbox id="zenLooksAndFeelFloatingUrlbar"
data-l10n-id="zen-look-and-feel-floating-urlbar"
preference="zen.theme.floating-urlbar"/>
</groupbox>
</html:template>