diff --git a/news/textbox-color.rst b/news/textbox-color.rst new file mode 100644 index 00000000..d8c98f14 --- /dev/null +++ b/news/textbox-color.rst @@ -0,0 +1,23 @@ +**Added:** + +* + +**Changed:** + +* + +**Deprecated:** + +* + +**Removed:** + +* + +**Fixed:** + +* Change background color to match system settings in `Phase Configuration`. + +**Security:** + +* diff --git a/src/diffpy/pdfgui/gui/phaseconfigurepanel.py b/src/diffpy/pdfgui/gui/phaseconfigurepanel.py index 1050ef42..365ecd76 100644 --- a/src/diffpy/pdfgui/gui/phaseconfigurepanel.py +++ b/src/diffpy/pdfgui/gui/phaseconfigurepanel.py @@ -320,6 +320,7 @@ def restrictConstrainedParameters(self): self.setToolTips(tooltips.phasepanel) self.textCtrlA.DefaultStyle.BackgroundColour + txtbg = self.textCtrlScaleFactor.DefaultStyle.BackgroundColour # First the TextCtrls for key, var in self.lConstraintsMap.items(): @@ -331,8 +332,7 @@ def restrictConstrainedParameters(self): tt.SetTip(self.constraints[var].formula) else: textCtrl.SetEditable(True) - # textCtrl.SetBackgroundColour(txtbg) - textCtrl.SetBackgroundColour(wx.WHITE) + textCtrl.SetBackgroundColour(txtbg) # Now the grid rows = self.gridAtoms.GetNumberRows()