diff --git a/README.md b/README.md index fa2a424..823994c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,4 @@ - -# sd-webui-oldsix_prompt v1.64 +# sd-webui-oldsix_prompt v1.65 ### 老版词库 @路过银河&网上收集 ### 新词库由群里小伙伴 @麻瓜 @万碎爷 @元一斤 整理 ### 100%完全自制插件,不是魔改别人,最近有个别up未均本人允许,在多个平台打着nsfw词库的旗号拿本插件吸粉入群,别人安装插件出问题又无法提供解决方案 ### @@ -12,7 +11,7 @@ --- * 特别鸣谢群里兄弟们的支持 -

@六尘、@以及不愿意透露姓名的水友们

+

@鑫鑫、@六尘、@以及不愿意透露姓名的水友们

* 插件已给一些公司、和个人都大大提升了效率,有定制化插件、软件、APP、小程序的需求也可以单独联系我,喜欢本插件的可以支持一下小弟 # @@ -27,7 +26,7 @@ * 左键输入正向提示框、 右键输入负向提示框 * 支持自定义词库 * 支持随机抽卡 【灵感模式、分类随机模式】 - * 支持翻译、权重调整、位置调整。Alt+q键呼出隐藏面板 + * 支持翻译、权重调整、位置调整。Alt+Q键呼出隐藏面板 * 支持动态随机提示词 本插件专属语法示例:#[red#blue#yellow] 或#[日常服饰]、 #[红色类#黄色类] --- ##### 展示1 diff --git a/javascript/old_six_prompt.js b/javascript/old_six_prompt.js index 6ea95c9..3f8cf2e 100644 --- a/javascript/old_six_prompt.js +++ b/javascript/old_six_prompt.js @@ -774,6 +774,7 @@ function delLi(domli,cnkey){ elementprompt.value= elementprompt.value.replace(selectPrompts[cnkey].en+',',''); domli.parentNode.removeChild(domli) delete selectPrompts[cnkey] + updateInput(elementprompt) } @@ -810,7 +811,7 @@ function getCurrentPromptsEle(){ function initTrans() { document.addEventListener('keydown', function (event) { - if (event.altKey && event.key === 'q') { + if (event.altKey && event.key.toLowerCase() === 'q') { showTransUI(); } @@ -833,7 +834,7 @@ function showTransUI(){ } if (imgdisplay === 'block') { - toggleDisplay(Elements.trans[0]) + toggleDisplay(Elements.trans[1]) Elements.trans[1].querySelector('textarea').focus() } } diff --git a/scripts/old_six_prompt.py b/scripts/old_six_prompt.py index 9e21c2a..48a21d9 100644 --- a/scripts/old_six_prompt.py +++ b/scripts/old_six_prompt.py @@ -129,7 +129,7 @@ class Script(scripts.Script): with gr.Row(elem_id=eid): with gr.Accordion(label="SixGod_K提示词 v1.64",open=False): - gr.HTML('【使用说明书】') + gr.HTML('【使用说明书】') textarea=gr.TextArea(self.json,elem_id=tid,visible=False) traninput=gr.Textbox(elem_classes="old-six-traninput",visible=False,show_label="",placeholder="输入中文后按回车翻译,[ALT+Q]键呼出/隐藏") diff --git a/style.css b/style.css index e70fc6f..4c76477 100644 --- a/style.css +++ b/style.css @@ -160,9 +160,8 @@ top:25%; z-index: 99999!important; min-height: 200px!important; - background: #00000094; - border-radius: 10px!important; - + border-radius: 10px !important; + background: linear-gradient(to right, #76767a, #41444c) } .old-six-traninput textarea{ @@ -213,6 +212,9 @@ cursor: grab; box-shadow: 5px 5px 15px #741c1c; overflow: hidden; + + + } .oldsix-ul li:hover .alculate{ @@ -256,6 +258,7 @@ } .oldsix-ul li .content{ margin: 0 20px 0 5px; + color: #fff; } .oldsix-ul li .close{ @@ -273,5 +276,9 @@ } +.oldsix-tips::after{ + content: "[ALT+Q呼出翻译框]"; +} + \ No newline at end of file