mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 16:44:13 +08:00
fix
This commit is contained in:
parent
0ff4c09819
commit
fd68661981
@ -706,12 +706,11 @@ class searchwordW(closeashidewindow):
|
|||||||
self.vboxlayout.addLayout(self.searchlayout)
|
self.vboxlayout.addLayout(self.searchlayout)
|
||||||
self.searchtext = QLineEdit1()
|
self.searchtext = QLineEdit1()
|
||||||
self.searchtext.textChanged.connect(self.ankiwindow.reset)
|
self.searchtext.textChanged.connect(self.ankiwindow.reset)
|
||||||
|
self.history_last_btn = statusbutton(icons=["fa.arrow-left", "fa.arrow-left"], colors=["", ""])
|
||||||
self.history_last_btn = QPushButton(qtawesome.icon("fa.arrow-left"), "")
|
|
||||||
self.history_last_btn.clicked.connect(
|
self.history_last_btn.clicked.connect(
|
||||||
functools.partial(self.__move_history_search, -1)
|
functools.partial(self.__move_history_search, -1)
|
||||||
)
|
)
|
||||||
self.history_next_btn = QPushButton(qtawesome.icon("fa.arrow-right"), "")
|
self.history_next_btn = statusbutton(icons=["fa.arrow-right", "fa.arrow-right"], colors=["", ""])
|
||||||
self.history_next_btn.clicked.connect(
|
self.history_next_btn.clicked.connect(
|
||||||
functools.partial(self.__move_history_search, 1)
|
functools.partial(self.__move_history_search, 1)
|
||||||
)
|
)
|
||||||
@ -723,6 +722,7 @@ class searchwordW(closeashidewindow):
|
|||||||
self.searchlayout.addWidget(self.history_next_btn)
|
self.searchlayout.addWidget(self.history_next_btn)
|
||||||
self.searchlayout.addWidget(self.searchtext)
|
self.searchlayout.addWidget(self.searchtext)
|
||||||
searchbutton = QPushButton(qtawesome.icon("fa.search"), "")
|
searchbutton = QPushButton(qtawesome.icon("fa.search"), "")
|
||||||
|
self.searchtext.returnPressed.connect(searchbutton.clicked.emit)
|
||||||
|
|
||||||
searchbutton.clicked.connect(self.__search_by_click_search_btn)
|
searchbutton.clicked.connect(self.__search_by_click_search_btn)
|
||||||
self.searchlayout.addWidget(searchbutton)
|
self.searchlayout.addWidget(searchbutton)
|
||||||
|
@ -293,6 +293,8 @@ class commonsolveevent(QWidget):
|
|||||||
|
|
||||||
|
|
||||||
def disablecolor(__: QColor):
|
def disablecolor(__: QColor):
|
||||||
|
if __.rgb() == 0xFF000000:
|
||||||
|
return Qt.GlobalColor.gray
|
||||||
__ = QColor(
|
__ = QColor(
|
||||||
max(0, (__.red() - 64)),
|
max(0, (__.red() - 64)),
|
||||||
max(
|
max(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user