eric7/VirtualEnv/VirtualenvConfigurationDialog.py

branch
eric7
changeset 8862
99459beb81b1
parent 8838
60ce5c218f0c
child 8881
54e42bc2437a
equal deleted inserted replaced
8861:840f47364b20 8862:99459beb81b1
14 14
15 from PyQt6.QtCore import pyqtSlot, QProcess, QTimer 15 from PyQt6.QtCore import pyqtSlot, QProcess, QTimer
16 from PyQt6.QtWidgets import QDialog, QDialogButtonBox 16 from PyQt6.QtWidgets import QDialog, QDialogButtonBox
17 17
18 from EricWidgets.EricPathPicker import EricPathPickerModes 18 from EricWidgets.EricPathPicker import EricPathPickerModes
19 from EricWidgets.EricApplication import ericApp
19 20
20 from .Ui_VirtualenvConfigurationDialog import Ui_VirtualenvConfigurationDialog 21 from .Ui_VirtualenvConfigurationDialog import Ui_VirtualenvConfigurationDialog
21 22
22 import Preferences 23 import Preferences
23 import Utilities 24 import Utilities
92 self.__pyvenvFound = False 93 self.__pyvenvFound = False
93 self.__condaFound = False 94 self.__condaFound = False
94 self.buttonBox.button( 95 self.buttonBox.button(
95 QDialogButtonBox.StandardButton.Ok).setEnabled(False) 96 QDialogButtonBox.StandardButton.Ok).setEnabled(False)
96 97
97 # TODO: adapt color to current palette 98 self.__mandatoryStyleSheet = (
98 self.__mandatoryStyleSheet = "QLineEdit {border: 2px solid;}" 99 "QLineEdit {border: 2px solid; border-color: #dd8888}"
100 if ericApp().usesDarkPalette() else
101 "QLineEdit {border: 2px solid; border-color: #800000}"
102 )
99 self.targetDirectoryPicker.setStyleSheet(self.__mandatoryStyleSheet) 103 self.targetDirectoryPicker.setStyleSheet(self.__mandatoryStyleSheet)
100 self.nameEdit.setStyleSheet(self.__mandatoryStyleSheet) 104 self.nameEdit.setStyleSheet(self.__mandatoryStyleSheet)
101 self.condaTargetDirectoryPicker.setStyleSheet( 105 self.condaTargetDirectoryPicker.setStyleSheet(
102 self.__mandatoryStyleSheet) 106 self.__mandatoryStyleSheet)
103 self.condaNameEdit.setStyleSheet(self.__mandatoryStyleSheet) 107 self.condaNameEdit.setStyleSheet(self.__mandatoryStyleSheet)

eric ide

mercurial