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