mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-08 00:07:30 +09:00
Bug 1429442 - Buttons in "type control" popup in reader mode should have tooltips r=Gijs,MarcoZ
This commit is contained in:
parent
03e0f27552
commit
cf0a5a54cd
2 changed files with 30 additions and 0 deletions
|
|
@ -120,6 +120,25 @@ var AboutReader = function(win, articlePromise) {
|
|||
}
|
||||
|
||||
this._loadArticle();
|
||||
|
||||
let dropdown = this._toolbarElement;
|
||||
|
||||
let elemL10nMap = {
|
||||
".minus-button": "minus",
|
||||
".plus-button": "plus",
|
||||
".content-width-minus-button": "contentwidthminus",
|
||||
".content-width-plus-button": "contentwidthplus",
|
||||
".line-height-minus-button": "lineheightminus",
|
||||
".line-height-plus-button": "lineheightplus",
|
||||
".light-button": "colorschemelight",
|
||||
".dark-button": "colorschemedark",
|
||||
".sepia-button": "colorschemesepia",
|
||||
};
|
||||
|
||||
for (let [selector, stringID] of Object.entries(elemL10nMap)) {
|
||||
dropdown.querySelector(selector).setAttribute("title",
|
||||
gStrings.GetStringFromName("aboutReader.toolbar." + stringID));
|
||||
}
|
||||
};
|
||||
|
||||
AboutReader.prototype = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue