Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions news/textbox-color.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* <news item>

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* Change background color to match system settings in `Phase Configuration`.

**Security:**

* <news item>
4 changes: 2 additions & 2 deletions src/diffpy/pdfgui/gui/phaseconfigurepanel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand All @@ -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()
Expand Down
Loading