Add popup font color options
This commit is contained in:
parent
ce73c60e2f
commit
0fcace8986
|
@ -150,6 +150,12 @@
|
|||
"fontSizeLabel": {
|
||||
"message": "Font size"
|
||||
},
|
||||
"resultFontColorLabel": {
|
||||
"message": "Font color of translation result"
|
||||
},
|
||||
"candidateFontColorLabel": {
|
||||
"message": "Font color of translation candidates"
|
||||
},
|
||||
"bgColorLabel": {
|
||||
"message": "Background color"
|
||||
},
|
||||
|
|
|
@ -296,6 +296,30 @@
|
|||
</div>
|
||||
</li>
|
||||
|
||||
<li class="optionContainer new">
|
||||
<div class=optionText>
|
||||
<p class=resultFontColorLabel>翻訳結果のフォントカラー</p>
|
||||
</div>
|
||||
<div class=optionForm>
|
||||
<label>
|
||||
<input id=resultFontColor class=saveByChange type=color value="#000000">
|
||||
|
||||
</label>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class="optionContainer new">
|
||||
<div class=optionText>
|
||||
<p class=candidateFontColorLabel>翻訳候補のフォントカラー</p>
|
||||
</div>
|
||||
<div class=optionForm>
|
||||
<label>
|
||||
<input id=candidateFontColor class=saveByChange type=color value="#737373">
|
||||
|
||||
</label>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li class=optionContainer>
|
||||
<div class=optionText>
|
||||
<p class=bgColorLabel>背景色</p>
|
||||
|
|
|
@ -182,6 +182,8 @@ function panelPosition(e) {
|
|||
panel.style.maxWidth = S.get().width + "px";
|
||||
panel.style.maxHeight = S.get().height + "px";
|
||||
panel.style.fontSize = S.get().fontSize + "px";
|
||||
panel.getElementsByClassName("result")[0].style.color = S.get().resultFontColor;
|
||||
panel.getElementsByClassName("candidate")[0].style.color = S.get().candidateFontColor;
|
||||
panel.style.backgroundColor = S.get().bgColor;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue