Skip to content

Commit c446969

Browse files
authored
style: change background color to match system (#243)
* change background color to match system * news * Comply with dataset config panels * remove comment
1 parent bf4873c commit c446969

File tree

2 files changed

+25
-2
lines changed

2 files changed

+25
-2
lines changed

news/textbox-color.rst

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
**Added:**
2+
3+
* <news item>
4+
5+
**Changed:**
6+
7+
* <news item>
8+
9+
**Deprecated:**
10+
11+
* <news item>
12+
13+
**Removed:**
14+
15+
* <news item>
16+
17+
**Fixed:**
18+
19+
* Change background color to match system settings in `Phase Configuration`.
20+
21+
**Security:**
22+
23+
* <news item>

src/diffpy/pdfgui/gui/phaseconfigurepanel.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@ def restrictConstrainedParameters(self):
321321

322322
self.setToolTips(tooltips.phasepanel)
323323
self.textCtrlA.DefaultStyle.BackgroundColour
324+
txtbg = self.textCtrlScaleFactor.DefaultStyle.BackgroundColour
324325

325326
# First the TextCtrls
326327
for key, var in self.lConstraintsMap.items():
@@ -332,8 +333,7 @@ def restrictConstrainedParameters(self):
332333
tt.SetTip(self.constraints[var].formula)
333334
else:
334335
textCtrl.SetEditable(True)
335-
# textCtrl.SetBackgroundColour(txtbg)
336-
textCtrl.SetBackgroundColour(wx.WHITE)
336+
textCtrl.SetBackgroundColour(txtbg)
337337

338338
# Now the grid
339339
rows = self.gridAtoms.GetNumberRows()

0 commit comments

Comments
 (0)