Skip to content
Snippets Groups Projects

Use new editor for valuesColor in Parameter dialog

Merged Kien Le requested to merge feature-#193-better_editor_for_valuesColor into develop
1 file
+ 3
4
Compare changes
  • Side-by-side
  • Inline
@@ -8,6 +8,7 @@ from PySide6 import QtWidgets, QtGui, QtCore
from PySide6.QtCore import Qt
from PySide6.QtWidgets import QWidget, QDialog, QTextEdit
from sohstationviewer.conf.constants import ROOT_PATH
from sohstationviewer.view.db_config.value_color_helper.\
edit_value_color_dialog import EditValueColorDialog
from sohstationviewer.view.db_config.value_color_helper.\
@@ -56,12 +57,10 @@ class ValueColorEdit(QTextEdit):
self.edit_button = QtWidgets.QToolButton(self)
self.edit_button.setCursor(Qt.PointingHandCursor)
current_file_path = os.path.abspath(__file__)
root_path = Path(current_file_path).parent.parent.parent.parent
if background == 'B':
img_file = f"{root_path}/images/edit_icon_black_background.png"
img_file = f"{ROOT_PATH}/images/edit_icon_black_background.png"
else:
img_file = f"{root_path}/images/edit_icon_white_background.png"
img_file = f"{ROOT_PATH}/images/edit_icon_white_background.png"
self.edit_button.setIcon(QtGui.QIcon(img_file))
self.edit_button.setStyleSheet(
"background: transparent; border: none;")
Loading