QT CSS StyleSheet for change Maya UI

1,170 views
Skip to first unread message

vux

unread,
Sep 8, 2012, 10:15:10 AM9/8/12
to python_in...@googlegroups.com
With Qt css styleSheets we may change all aspects of Maya UI very simply.
For example this code change all XYZ-fields of AttributeEditor:

ui.qApp.setStyleSheet(' \
QLineEdit#A3FGXfield { border-radius: 0; background-color: #222222; color: #ffbbbb } \
QLineEdit#A3FGXfield { border-radius: 0; background-color: #222222; color: #bbffbb } \
QLineEdit#A3FGXfield { border-radius: 0; background-color: #222222; color: #bbbbff } \
') 

 

vux

unread,
Sep 8, 2012, 10:16:19 AM9/8/12
to python_in...@googlegroups.com
EDIT:

ui.qApp.setStyleSheet(' \
QLineEdit#A3FGXfield { border-radius: 0; background-color: #222222; color: #ffbbbb } \
QLineEdit#A3FGYfield { border-radius: 0; background-color: #222222; color: #bbffbb } \
QLineEdit#A3FGZfield { border-radius: 0; background-color: #222222; color: #bbbbff } \
')

Justin Israel

unread,
Sep 8, 2012, 11:22:12 AM9/8/12
to python_in...@googlegroups.com, python_in...@googlegroups.com
Thanks for the snippet.
But no need to blast the group with 5 copies of the message and images ;)


Reply all
Reply to author
Forward
0 new messages