Skip to content

Commit

Permalink
style: change background color to match system (#243)
Browse files Browse the repository at this point in the history
* change background color to match system

* news

* Comply with dataset config panels

* remove comment
  • Loading branch information
cadenmyers13 authored Jan 17, 2025
1 parent bf4873c commit c446969
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 2 deletions.
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 @@ -321,6 +321,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 @@ -332,8 +333,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

0 comments on commit c446969

Please sign in to comment.