Add popup font color options
This commit is contained in:
parent
ce73c60e2f
commit
0fcace8986
|
@ -150,6 +150,12 @@
|
||||||
"fontSizeLabel": {
|
"fontSizeLabel": {
|
||||||
"message": "Font size"
|
"message": "Font size"
|
||||||
},
|
},
|
||||||
|
"resultFontColorLabel": {
|
||||||
|
"message": "Font color of translation result"
|
||||||
|
},
|
||||||
|
"candidateFontColorLabel": {
|
||||||
|
"message": "Font color of translation candidates"
|
||||||
|
},
|
||||||
"bgColorLabel": {
|
"bgColorLabel": {
|
||||||
"message": "Background color"
|
"message": "Background color"
|
||||||
},
|
},
|
||||||
|
|
|
@ -296,6 +296,30 @@
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</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>
|
<li class=optionContainer>
|
||||||
<div class=optionText>
|
<div class=optionText>
|
||||||
<p class=bgColorLabel>背景色</p>
|
<p class=bgColorLabel>背景色</p>
|
||||||
|
|
|
@ -182,6 +182,8 @@ function panelPosition(e) {
|
||||||
panel.style.maxWidth = S.get().width + "px";
|
panel.style.maxWidth = S.get().width + "px";
|
||||||
panel.style.maxHeight = S.get().height + "px";
|
panel.style.maxHeight = S.get().height + "px";
|
||||||
panel.style.fontSize = S.get().fontSize + "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;
|
panel.style.backgroundColor = S.get().bgColor;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue