Thanks for the ideas.

I was asked to add some kind of color indication to help reduce mistakes 
made when artists have multiple mayas open in Windows (So much easier in 
Linux with multiple desktops!), but haven't had the chance to train up on 
using PySide yet. Anyways I think changing the top menuBar color is the 
solution I'll test out now. At first polling with my co-workers they like 
this best, thought it worked well and didn't distract.

from PySide import QtGui
QtGui.qApp.setStyleSheet("""
QMenuBar {
    background: rgb( 200, 40, 0 );
   color:          rgb( 255, 255, 255 );
}
""") 

The Color setting is to make the text white or change depending on what 
color the menubar is set to so it can still be readable

Cheers

On Monday, September 26, 2016 at 9:18:20 PM UTC-7, damonshelton wrote:
>
> I have set this using style sheets for certain elements that most Uis 
> would have. Even made a system that lets users have control over the colors.
> I set the style sheet on the maya mainwindow
> have not checked the toolbars in 2017 yet
> mainwindow is a wrappedinstance - I set the background color of a few 
> items in the maya gui back for personal choice of how overwhelming the 
> colors get because maya utilizes toolBars for some big sections of the main 
> ui
>
> mainwindow.setStyleSheet('QToolBar, QStatusBar, 
> QMenuBar{background-color:rgb(%d, %d, 
> %d);}\nQMainWindow#%s,#toolBar1,#toolBar2,#toolBar3,#toolBar4,#toolBar5,#toolBar6,#toolBar7{background-color:rgb(70,70,70);}'%(splits[0],
>  
> splits[1], splits[2], mainwindow.objectName()))
>
> On Monday, September 26, 2016, Chad_Fox <[email protected] <javascript:>> 
> wrote:
>
>> I'm familair with how we can edit Maya's UI color with the window, 
>> layout, button commands, but was wonding this morning if there's a way to 
>> just change UI border/ window frame colors or title bar colors in python?
>>
>> The end goal is that I would like to use a slightly different color for 
>> each instance of Maya I open up. 
>>
>> Have any of you tried this before or know where to read up on how?
>>
>> Thanks!
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Python Programming for Autodesk Maya" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected].
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/python_inside_maya/4fdb53f8-7889-41fa-a0e4-cec794907287%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/python_inside_maya/4fdb53f8-7889-41fa-a0e4-cec794907287%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/2ec2998f-f196-4c66-b531-1402bcf811ce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to