Here is what I have done so far. Its not completed yet, but its a
good start.
just import nukeSS
then pass the mainwindow to it like so
class MainWindow(QtGui.QMainWindow, Ui_MainWindow):
def __init__(self,app, parent=None):
app.setStyle(QtGui.QStyleFactory.create("plastique"))
super(MainWindow, self).__init__(parent)
self.setupUi(self)
nukeSS.setStyleSheet(self)
...or jst open the .py file and extract the stylesheet text
hope this helps
On Wed, 18 May 2011 14:24 +0200, "Matthieu Cadet"
<[email protected]> wrote:
Hi Nukers,
I've created some custom dialog box with PyQt, i am able to
launch it
from Nuke, but does anyone know the Palette Color used by Nuke ?
or the QStyle used ?
I've set my QApplication to style "Plastique" that seems to be
closest
than Nuke, but all the rest like Background color or text color
uses my
Windows 7 color....
Any idea on how to do this ? how to make your PyQt window looks
like Nuke UI ?
thank for your help ;)
--
--
Matthieu Cadet
Compositor Artist & TD
nWave Digital
[1][email protected]
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python
References
1. mailto:[email protected]
--
Hugo Léveillé
TD Compositing, Vision Globale
[email protected]
def setStyleSheet(main):
main.setStyleSheet("""
QMainWindow{background-color: rgb(50,50,50);}
QDialog{background-color: rgb(50,50,50);}
QLabel{color: white;}
QLabel[mandatory="true"] {
color: red;
}
QLineEdit {border: 1px solid orange;
color: white;
background: rgb(100,100,100);
selection-color: white;
selection-background-color: orange;}
QTextBrowser {border: 1px solid orange;
color: white;
background: rgb(100,100,100);
selection-color: white;
selection-background-color: orange;}
QCheckBox {color: white;
background-color:orange;
background: rgb(50,50,50);
selection-color: white;
selection-background-color: orange;}
QSpinBox {color: white;
background-color:orange;
background: rgb(75,75,75);
selection-color: white;
selection-background-color: orange;}
QGroupBox{color: white;}
QComboBox{color: white;
background-color: rgb(100,100,100);}
QMessageBox{background: rgb(50,50,50);}
QListWidget {background: rgb(100,100,100);
color: white;
selection-color: white;
selection-background-color: orange;
alternate-background-color: rgb(90,90,90);
border: 1px solid orange;}
QCalendar {background: rgb(100,100,100);
color: white;
selection-color: white;
selection-background-color: orange;
alternate-background-color: rgb(90,90,90);
border: 1px solid orange;}
QTableWidget {background: rgb(100,100,100);
color: white;
selection-color: white;
selection-background-color: orange;
alternate-background-color: rgb(90,90,90);
border: 1px solid orange;}
QPushButton{color: white;
background-color: rgb(75,75,75);
selection-color: black;
border-style: outset;
border-width: 1px;
border-color: black;
selection-background-color: orange;}
QProgressBar{color: white;
background-color: rgb(75,75,75);
selection-color: black;
border-style: outset;
border-width: 1px;
border-color: black;
selection-background-color: orange;
text-align: center;}
QTabWidget {background: rgb(50,50,50);
color: white;
selection-color: white;
selection-background-color: orange;
alternate-background-color: rgb(90,90,90);
border: 1px solid orange;}
QPushButton:pressed {
background-color: rgb(25, 25, 25);}""")
_______________________________________________
Nuke-python mailing list
[email protected], http://forums.thefoundry.co.uk/
http://support.thefoundry.co.uk/cgi-bin/mailman/listinfo/nuke-python