Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Jan 19, 2025
1 parent 6509c18 commit 5c43dfe
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 96 deletions.
34 changes: 0 additions & 34 deletions py/LunaTranslator/rendertext/textbrowser_imp/miaobian0.py

This file was deleted.

13 changes: 0 additions & 13 deletions py/LunaTranslator/rendertext/webview.html
Original file line number Diff line number Diff line change
Expand Up @@ -104,18 +104,6 @@
ele.appendChild(style)
return ele
}
function miaobian0_create_internal(styleargs, text, args) {

let ele = document.createElement('div')
maybesethtml(ele, args, text)
ele.style.color = styleargs.fillcolor
let _id = _simpleuid()
ele.id = _id
let style = document.createElement('style')
style.innerText = `#${_id}{-webkit-text-stroke: ${styleargs.width}px var(--${args.color});}`
ele.appendChild(style)
return ele
}
function miaobian12_common(styleargs, text, args) {
let c2 = `var(--${args.color})`
let c1 = styleargs.fillcolor
Expand Down Expand Up @@ -169,7 +157,6 @@
regist_style_imp = {
normal: normal_create_internal,
yinying: yinying_create_internal,
miaobian0: miaobian0_create_internal,
miaobian1: miaobian12_common,
}
function dispatch_text_style_line(style, styleargs, text, args) {
Expand Down
67 changes: 18 additions & 49 deletions py/files/defaultconfig/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,48 +41,32 @@
"argstype": {
"fillcolor": {
"name": "填充颜色",
"type": "colorselect"
"type": "colorselect",
"dynamic": true
},
"shadowforce": {
"name": "阴影强度",
"type": "intspin",
"min": 1,
"max": 100,
"step": 1
"step": 1,
"dynamic": true
},
"shadowR": {
"name": "阴影半径",
"type": "spin",
"min": 0,
"max": 10,
"step": 0.01
"step": 0.01,
"dynamic": true
},
"shadowR_ex": {
"name": "阴影半径",
"type": "spin",
"min": 0,
"max": 100,
"step": 0.1
}
}
},
"miaobian0": {
"name": "描边字体_1",
"args": {
"fillcolor": "#eeeeee",
"width": 1
},
"argstype": {
"fillcolor": {
"name": "填充颜色",
"type": "colorselect"
},
"width": {
"name": "描边宽度",
"type": "spin",
"min": 0,
"max": 100,
"step": 0.1
"step": 0.1,
"dynamic": true
}
}
},
Expand All @@ -98,32 +82,37 @@
"argstype": {
"reverse": {
"name": "反转颜色",
"type": "switch"
"type": "switch",
"dynamic": true
},
"fillcolor": {
"name": "填充颜色",
"type": "colorselect"
"type": "colorselect",
"dynamic": true
},
"width": {
"name": "描边宽度",
"type": "spin",
"min": 0,
"max": 100,
"step": 0.1
"step": 0.1,
"dynamic": true
},
"width_rate": {
"name": "描边宽度",
"type": "spin",
"min": 0,
"max": 10,
"step": 0.01
"step": 0.01,
"dynamic": true
},
"trace": {
"name": "投影距离",
"type": "spin",
"min": 0,
"max": 100,
"step": 0.1
"step": 0.1,
"dynamic": false
}
}
}
Expand All @@ -132,26 +121,6 @@
"normal": {
"name": "普通字体"
},
"miaobian0": {
"name": "描边字体_1",
"args": {
"fillcolor": "#eeeeee",
"width": 1
},
"argstype": {
"fillcolor": {
"name": "填充颜色",
"type": "colorselect"
},
"width": {
"name": "描边宽度",
"type": "spin",
"min": 0.1,
"max": 100,
"step": 0.1
}
}
},
"miaobian1": {
"name": "描边字体",
"args": {
Expand Down

0 comments on commit 5c43dfe

Please sign in to comment.