This commit is contained in:
恍兮惚兮 2024-05-07 16:58:23 +08:00
parent aa6b2140de
commit b79f87ceb5
2 changed files with 2 additions and 5 deletions

View File

@ -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)"
)

View File

@ -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: