mirror of
https://github.com/JimmXinu/FanFicFare.git
synced 2025-12-06 08:52:55 +01:00
Change INI error link blue color in dark mode.
This commit is contained in:
parent
20cca252b2
commit
d0bcf638d7
1 changed files with 6 additions and 3 deletions
|
|
@ -21,7 +21,7 @@ from datetime import datetime
|
||||||
try:
|
try:
|
||||||
from PyQt5 import QtWidgets as QtGui
|
from PyQt5 import QtWidgets as QtGui
|
||||||
from PyQt5 import QtCore
|
from PyQt5 import QtCore
|
||||||
from PyQt5.Qt import (QDialog, QWidget, QTableWidget, QVBoxLayout, QHBoxLayout,
|
from PyQt5.Qt import (QApplication, QDialog, QWidget, QTableWidget, QVBoxLayout, QHBoxLayout,
|
||||||
QGridLayout, QPushButton, QFont, QLabel, QCheckBox, QIcon,
|
QGridLayout, QPushButton, QFont, QLabel, QCheckBox, QIcon,
|
||||||
QLineEdit, QComboBox, QProgressDialog, QTimer, QDialogButtonBox,
|
QLineEdit, QComboBox, QProgressDialog, QTimer, QDialogButtonBox,
|
||||||
QScrollArea, QPixmap, Qt, QAbstractItemView, QTextEdit,
|
QScrollArea, QPixmap, Qt, QAbstractItemView, QTextEdit,
|
||||||
|
|
@ -29,7 +29,7 @@ try:
|
||||||
except ImportError as e:
|
except ImportError as e:
|
||||||
from PyQt4 import QtGui
|
from PyQt4 import QtGui
|
||||||
from PyQt4 import QtCore
|
from PyQt4 import QtCore
|
||||||
from PyQt4.Qt import (QDialog, QWidget, QTableWidget, QVBoxLayout, QHBoxLayout,
|
from PyQt4.Qt import (QApplication, QDialog, QWidget, QTableWidget, QVBoxLayout, QHBoxLayout,
|
||||||
QGridLayout, QPushButton, QFont, QLabel, QCheckBox, QIcon,
|
QGridLayout, QPushButton, QFont, QLabel, QCheckBox, QIcon,
|
||||||
QLineEdit, QComboBox, QProgressDialog, QTimer, QDialogButtonBox,
|
QLineEdit, QComboBox, QProgressDialog, QTimer, QDialogButtonBox,
|
||||||
QScrollArea, QPixmap, Qt, QAbstractItemView, QTextEdit,
|
QScrollArea, QPixmap, Qt, QAbstractItemView, QTextEdit,
|
||||||
|
|
@ -1514,7 +1514,10 @@ class ViewLog(SizePersistedDialog):
|
||||||
error_msg=error_msg[:200]+" ..."
|
error_msg=error_msg[:200]+" ..."
|
||||||
label = QLabel('%s: %s'%(lineno, error_msg))
|
label = QLabel('%s: %s'%(lineno, error_msg))
|
||||||
label.setWordWrap(True)
|
label.setWordWrap(True)
|
||||||
label.setStyleSheet("QLabel { margin-left: 2em; color : blue; } QLabel:hover { color: red; }");
|
if QApplication.instance().is_dark_theme:
|
||||||
|
label.setStyleSheet("QLabel { margin-left: 2em; color : aqua; } QLabel:hover { color: red; }");
|
||||||
|
else:
|
||||||
|
label.setStyleSheet("QLabel { margin-left: 2em; color : blue; } QLabel:hover { color: red; }");
|
||||||
label.setToolTip(_('Click to go to line %s')%lineno)
|
label.setToolTip(_('Click to go to line %s')%lineno)
|
||||||
label.mouseReleaseEvent = partial(self.label_clicked, lineno=lineno)
|
label.mouseReleaseEvent = partial(self.label_clicked, lineno=lineno)
|
||||||
self.sl.addWidget(label)
|
self.sl.addWidget(label)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue