Ignore:
Timestamp:
Jan 31, 2017 10:06:45 AM (5 years ago)
Author:
vondreele
Message:

tidy up periodic table - better foreground/background contrast on elements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIElemGUI.py

    r2678 r2679  
    8686            # value change. Not ideal because wx.CB_READONLY is better.
    8787            i,j= wx.__version__.split('.')[0:2]
    88             if int(i)+int(j)/10. > 2.8 and not sys.platform.startswith('Win'):
     88            if int(i)+int(j)/10. > 2.8:
    8989                El = wx.ComboBox(choices=name, parent=self, pos=pos, size=wx.Size(butWid,27),
    9090                    style=wx.CB_DROPDOWN, value=name[0]+' ') # add an invisible space
    91                 if sum(color)/3 < 128: # background is mostly dark, use white letters
     91                if sum(color)/3 < 150 and color[1] < 150: # background is mostly dark, use white letters
    9292                    El.SetForegroundColour((255,255,255))
    9393            else:
Note: See TracChangeset for help on using the changeset viewer.