mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
...
This commit is contained in:
parent
aa6b2140de
commit
b79f87ceb5
@ -106,13 +106,11 @@ class Textbrowser:
|
||||
self.textbrowser.setStyleSheet(
|
||||
"border-width: 0;\
|
||||
border-style: outset;\
|
||||
color: rgba(0, 0, 0, 0);\
|
||||
background-color: rgba(0, 0, 0, 0)"
|
||||
)
|
||||
self.textbrowserback.setStyleSheet(
|
||||
"border-width: 0;\
|
||||
border-style: outset;\
|
||||
color: rgba(0, 0, 0, 0);\
|
||||
background-color: rgba(0, 0, 0, 0)"
|
||||
)
|
||||
|
||||
|
@ -219,9 +219,8 @@ class QUnFrameWindow(resizableframeless):
|
||||
elif globalconfig["zitiyangshi"] == 0:
|
||||
self.translate_text.simplecharformat(color)
|
||||
elif globalconfig["zitiyangshi"] == 3:
|
||||
# hide后无法重新计算布局。设置和背景相同的颜色和alpha来模拟hide
|
||||
c = QColor(globalconfig["backcolor"])
|
||||
c.setAlpha(globalconfig["transparent"] * (not self.backtransparent) / 100)
|
||||
c = QColor()
|
||||
c.setAlpha(0)
|
||||
self.translate_text.simplecharformat(c)
|
||||
|
||||
if iter_context:
|
||||
|
Loading…
x
Reference in New Issue
Block a user