2018-03-06 03:52:07 +03:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
|
|
|
|
<!-- Home panel -->
|
|
|
|
|
2020-04-23 02:35:08 +03:00
|
|
|
<script src="chrome://browser/content/preferences/home.js"/>
|
2019-04-23 01:38:57 +03:00
|
|
|
<html:template id="template-paneHome">
|
2018-03-06 03:52:07 +03:00
|
|
|
<hbox id="firefoxHomeCategory"
|
|
|
|
class="subcategory"
|
|
|
|
hidden="true"
|
|
|
|
data-category="paneHome">
|
2018-12-04 21:51:29 +03:00
|
|
|
<html:h1 style="-moz-box-flex: 1;" data-l10n-id="pane-home-title"/>
|
2018-08-10 23:47:36 +03:00
|
|
|
<button id="restoreDefaultHomePageBtn"
|
2019-04-20 00:08:33 +03:00
|
|
|
is="highlightable-button"
|
2018-08-10 23:47:36 +03:00
|
|
|
class="homepage-button check-home-page-controlled"
|
|
|
|
data-preference-related="browser.startup.homepage"
|
|
|
|
data-l10n-id="home-restore-defaults"
|
|
|
|
preference="pref.browser.homepage.disable_button.restore_default"/>
|
2018-03-06 03:52:07 +03:00
|
|
|
</hbox>
|
2018-03-08 18:54:53 +03:00
|
|
|
|
|
|
|
<groupbox id="homepageGroup"
|
|
|
|
data-category="paneHome"
|
|
|
|
hidden="true">
|
2018-11-20 18:14:18 +03:00
|
|
|
<label><html:h2 data-l10n-id="home-new-windows-tabs-header"/></label>
|
2018-04-03 22:27:48 +03:00
|
|
|
<description data-l10n-id="home-new-windows-tabs-description2" />
|
2018-03-08 18:54:53 +03:00
|
|
|
|
2020-11-21 00:40:14 +03:00
|
|
|
<hbox id="homepageAndNewWindowsOption" align="center" data-subcategory="homeOverride">
|
2018-11-09 18:40:27 +03:00
|
|
|
<label control="homeMode" data-l10n-id="home-homepage-mode-label" flex="1" />
|
2018-03-08 18:54:53 +03:00
|
|
|
|
2018-11-09 18:40:27 +03:00
|
|
|
<vbox class="homepageMenuItemContainer" flex="1">
|
|
|
|
<menulist id="homeMode"
|
|
|
|
class="check-home-page-controlled"
|
|
|
|
data-preference-related="browser.startup.homepage">
|
2018-03-08 18:54:53 +03:00
|
|
|
<menupopup>
|
2019-09-27 14:10:24 +03:00
|
|
|
<menuitem value="0" data-l10n-id="home-mode-choice-default" />
|
|
|
|
<menuitem value="2" data-l10n-id="home-mode-choice-custom" />
|
|
|
|
<menuitem value="1" data-l10n-id="home-mode-choice-blank" />
|
2018-03-08 18:54:53 +03:00
|
|
|
</menupopup>
|
|
|
|
</menulist>
|
|
|
|
|
2018-11-09 18:40:27 +03:00
|
|
|
<vbox id="customSettings" hidden="true">
|
2019-09-17 09:22:42 +03:00
|
|
|
<box role="combobox">
|
|
|
|
<html:input id="homePageUrl"
|
|
|
|
type="text"
|
|
|
|
is="autocomplete-input"
|
|
|
|
class="uri-element check-home-page-controlled"
|
|
|
|
style="-moz-box-flex: 1;"
|
|
|
|
data-preference-related="browser.startup.homepage"
|
|
|
|
data-l10n-id="home-homepage-custom-url"
|
2021-07-10 02:52:37 +03:00
|
|
|
autocompletepopup="homePageUrlAutocomplete" />
|
2019-09-17 09:22:42 +03:00
|
|
|
<popupset>
|
|
|
|
<panel id="homePageUrlAutocomplete"
|
|
|
|
is="autocomplete-richlistbox-popup"
|
|
|
|
type="autocomplete-richlistbox"
|
|
|
|
noautofocus="true"/>
|
|
|
|
</popupset>
|
|
|
|
</box>
|
2018-11-09 18:40:27 +03:00
|
|
|
<hbox class="homepage-buttons">
|
|
|
|
<button id="useCurrentBtn"
|
2019-04-20 00:08:33 +03:00
|
|
|
is="highlightable-button"
|
2018-11-09 18:40:27 +03:00
|
|
|
flex="1"
|
|
|
|
class="homepage-button check-home-page-controlled"
|
|
|
|
data-l10n-id="use-current-pages"
|
|
|
|
data-l10n-args='{"tabCount": 0}'
|
|
|
|
disabled="true"
|
|
|
|
preference="pref.browser.homepage.disable_button.current_page"/>
|
|
|
|
<button id="useBookmarkBtn"
|
2019-04-20 00:08:33 +03:00
|
|
|
is="highlightable-button"
|
2018-11-09 18:40:27 +03:00
|
|
|
flex="1"
|
|
|
|
class="homepage-button check-home-page-controlled"
|
|
|
|
data-l10n-id="choose-bookmark"
|
|
|
|
preference="pref.browser.homepage.disable_button.bookmark_page"
|
|
|
|
search-l10n-ids="select-bookmark-window.title, select-bookmark-desc"/>
|
|
|
|
</hbox>
|
|
|
|
</vbox>
|
|
|
|
</vbox>
|
|
|
|
</hbox>
|
2020-11-21 00:40:14 +03:00
|
|
|
<vbox data-subcategory="newtabOverride">
|
|
|
|
<hbox id="newTabsOption" align="center">
|
|
|
|
<label control="newTabMode" data-l10n-id="home-newtabs-mode-label" flex="1" />
|
2020-11-18 02:42:59 +03:00
|
|
|
|
2020-11-21 00:40:14 +03:00
|
|
|
<!-- This can be set to an extension value which is managed outside of
|
|
|
|
Preferences so we need to handle setting the pref manually.-->
|
|
|
|
<menulist id="newTabMode" flex="1" data-preference-related="browser.newtabpage.enabled">
|
|
|
|
<menupopup>
|
|
|
|
<menuitem value="0" data-l10n-id="home-mode-choice-default" />
|
|
|
|
<menuitem value="1" data-l10n-id="home-mode-choice-blank" />
|
|
|
|
</menupopup>
|
|
|
|
</menulist>
|
|
|
|
</hbox>
|
|
|
|
</vbox>
|
2018-03-08 18:54:53 +03:00
|
|
|
</groupbox>
|
2019-04-23 01:38:57 +03:00
|
|
|
</html:template>
|