diff options
Diffstat (limited to 'ext/bg')
-rw-r--r-- | ext/bg/data/options-schema.json | 14 | ||||
-rw-r--r-- | ext/bg/js/options.js | 4 | ||||
-rw-r--r-- | ext/bg/settings2.html | 28 |
3 files changed, 45 insertions, 1 deletions
diff --git a/ext/bg/data/options-schema.json b/ext/bg/data/options-schema.json index b6b11b66..7fed4909 100644 --- a/ext/bg/data/options-schema.json +++ b/ext/bg/data/options-schema.json @@ -110,7 +110,9 @@ "usePopupShadowDom", "usePopupWindow", "maximumClipboardSearchLength", - "popupCurrentIndicatorMode" + "popupCurrentIndicatorMode", + "popupActionBarVisibility", + "popupActionBarLocation" ], "properties": { "enable": { @@ -271,6 +273,16 @@ "type": "string", "enum": ["none", "asterisk", "triangle", "bar-left", "bar-right", "dot-left", "dot-right"], "default": "bar-left" + }, + "popupActionBarVisibility": { + "type": "string", + "enum": ["auto", "always"], + "default": "auto" + }, + "popupActionBarLocation": { + "type": "string", + "enum": ["left", "right", "top", "bottom"], + "default": "right" } } }, diff --git a/ext/bg/js/options.js b/ext/bg/js/options.js index 5492b97d..e946c461 100644 --- a/ext/bg/js/options.js +++ b/ext/bg/js/options.js @@ -663,9 +663,13 @@ class OptionsUtil { // Version 7 changes: // Added general.maximumClipboardSearchLength. // Added general.popupCurrentIndicatorMode. + // Added general.popupActionBarVisibility. + // Added general.popupActionBarLocation. for (const profile of options.profiles) { profile.options.general.maximumClipboardSearchLength = 1000; profile.options.general.popupCurrentIndicatorMode = 'bar-left'; + profile.options.general.popupActionBarVisibility = 'auto'; + profile.options.general.popupActionBarLocation = 'right'; } return options; } diff --git a/ext/bg/settings2.html b/ext/bg/settings2.html index bbd75c7f..a537daeb 100644 --- a/ext/bg/settings2.html +++ b/ext/bg/settings2.html @@ -437,6 +437,34 @@ </div> </div> </div></div> + <div class="settings-item"> + <div class="settings-item-inner settings-item-inner-wrappable"> + <div class="settings-item-left"> + <div class="settings-item-label">Action bar appearance</div> + <div class="settings-item-description">Control when and where the action bar is visible.</div> + </div> + <div class="settings-item-right"> + <div class="settings-item-group"> + <div class="settings-item-group-item"> + <div class="settings-item-group-item-label">Visibility</div> + <select data-setting="general.popupActionBarVisibility" class="short-width short-height"> + <option value="auto">Auto</option> + <option value="always">Always</option> + </select> + </div> + <div class="settings-item-group-item"> + <div class="settings-item-group-item-label">Location</div> + <select data-setting="general.popupActionBarLocation" class="short-width short-height"> + <option value="left">Left</option> + <option value="right">Right</option> + <option value="top">Top</option> + <option value="bottom">Bottom</option> + </select> + </div> + </div> + </div> + </div> + </div> <div class="settings-item"><div class="settings-item-inner"> <div class="settings-item-left"> <div class="settings-item-label">Glossary layout</div> |