Skip to content

style: change background color to match system #243

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jan 17, 2025
Merged
Show file tree
Hide file tree
Changes from 3 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>
5 changes: 3 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,8 @@ def restrictConstrainedParameters(self):
tt.SetTip(self.constraints[var].formula)
else:
textCtrl.SetEditable(True)
# textCtrl.SetBackgroundColour(txtbg)
textCtrl.SetBackgroundColour(wx.WHITE)
textCtrl.SetBackgroundColour(txtbg)
# textCtrl.SetBackgroundColour(wx.SystemSettings.GetColour(wx.SYS_COLOUR_GRAYTEXT))

# Now the grid
rows = self.gridAtoms.GetNumberRows()
Expand Down
Loading