--- a/eric7/VirtualEnv/VirtualenvConfigurationDialog.py Mon Dec 27 18:17:46 2021 +0100 +++ b/eric7/VirtualEnv/VirtualenvConfigurationDialog.py Mon Dec 27 19:46:16 2021 +0100 @@ -16,6 +16,7 @@ from PyQt6.QtWidgets import QDialog, QDialogButtonBox from EricWidgets.EricPathPicker import EricPathPickerModes +from EricWidgets.EricApplication import ericApp from .Ui_VirtualenvConfigurationDialog import Ui_VirtualenvConfigurationDialog @@ -94,8 +95,11 @@ self.buttonBox.button( QDialogButtonBox.StandardButton.Ok).setEnabled(False) - # TODO: adapt color to current palette - self.__mandatoryStyleSheet = "QLineEdit {border: 2px solid;}" + self.__mandatoryStyleSheet = ( + "QLineEdit {border: 2px solid; border-color: #dd8888}" + if ericApp().usesDarkPalette() else + "QLineEdit {border: 2px solid; border-color: #800000}" + ) self.targetDirectoryPicker.setStyleSheet(self.__mandatoryStyleSheet) self.nameEdit.setStyleSheet(self.__mandatoryStyleSheet) self.condaTargetDirectoryPicker.setStyleSheet(