Topic: Theming VLC and other Qt4 applications under Openbox
Due to an earlier forum thread on a related subject, I have spent a little bit of time experimenting with ways in which to theme VLC so that it sits nicely with the default CrunchBang GTK+ theme. The image below shows the result of my experimentation:
If any of the following is obvious to you, I apologise. I have never really used KDE for any length of time and my knowledge of Qt is somewhat limited. Anyhow, the above was achieved by running qtconfig-qt4, a basic Qt4 style editor, and tinkering about with some of the colours. The output of qtconfig-qt4 is saved as ~/.config/Trolltech.conf and it appears to be the only file that defines Qt4 themes/styles under CrunchBang Linux 8.10.01.
Below are the contents of ~/.config/Trolltech.conf on my system. I am sure the styling I have applied can be improved upon, but if you would like to theme your Qt4 apps in a similar manner, you should be able to simply copy what is below into your existing Trolltech.conf file, or create a new one.
[Qt%20Plugin%20Cache%204.4.false]
usr\lib\qt4\plugins\inputmethods\libqimsw-multi.so=40403, 0, i686 Linux g++-4 full-config, 2008-10-03T21:02:22
usr\lib\qt4\plugins\imageformats\libqgif.so=40403, 0, i686 Linux g++-4 full-config, 2008-10-03T21:02:22
usr\lib\qt4\plugins\imageformats\libqico.so=40403, 0, i686 Linux g++-4 full-config, 2008-10-03T21:02:22
usr\lib\qt4\plugins\imageformats\libqjpeg.so=40403, 0, i686 Linux g++-4 full-config, 2008-10-03T21:02:22
usr\lib\qt4\plugins\imageformats\libqmng.so=40403, 0, i686 Linux g++-4 full-config, 2008-10-03T21:02:22
usr\lib\qt4\plugins\imageformats\libqtiff.so=40403, 0, i686 Linux g++-4 full-config, 2008-10-03T21:02:22
[Qt%20Factory%20Cache%204.4]
com.trolltech.Qt.QInputContextFactoryInterface%3A\usr\lib\qt4\plugins\inputmethods\libqimsw-multi.so=2008-10-03T21:02:22, imsw-multi
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqgif.so=2008-10-03T21:02:22, gif
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqico.so=2008-10-03T21:02:22, ico
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqjpeg.so=2008-10-03T21:02:22, jpeg, jpg
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqmng.so=2008-10-03T21:02:22, mng
com.trolltech.Qt.QImageIOHandlerFactoryInterface%3A\usr\lib\qt4\plugins\imageformats\libqtiff.so=2008-10-03T21:02:22, tiff, tif
[Qt]
customColors\0=4280690214
customColors\1=4284374622
customColors\2=4294967295
customColors\3=4280690214
customColors\4=4294967295
customColors\5=4294967295
customColors\6=4294967295
customColors\7=4294967295
customColors\8=4294967295
customColors\9=4294967295
customColors\10=4294967295
customColors\11=4294967295
customColors\12=4294967295
customColors\13=4294967295
customColors\14=4294967295
customColors\15=4294967295
font="Sans Serif,9,-1,5,50,0,0,0,0,0"
Palette\active=#d1d1d1, #5e5e5e, #8d8d8d, #757575, #2f2f2f, #3e3e3e, #ffffff, #ffffff, #ffffff, #5e5e5e, #5e5e5e, #000000, #262626, #ffffff, #0000ee, #52188b, #e8e8e8, #000000, #ffffdc, #000000
Palette\inactive=#d1d1d1, #5e5e5e, #8d8d8d, #6c6c6c, #2f2f2f, #3e3e3e, #ffffff, #ffffff, #ffffff, #5e5e5e, #5e5e5e, #000000, #262626, #ffffff, #0000ee, #52188b, #e8e8e8, #000000, #ffffdc, #000000
Palette\disabled=#808080, #5e5e5e, #8d8d8d, #6c6c6c, #2f2f2f, #3e3e3e, #808080, #ffffff, #808080, #5e5e5e, #5e5e5e, #000000, #262626, #808080, #0000ee, #52188b, #e8e8e8, #000000, #ffffdc, #000000
fontPath=@Invalid()
embedFonts=true
style=Plastique
doubleClickInterval=400
cursorFlashTime=1000
wheelScrollLines=3
resolveSymlinks=false
globalStrut\width=0
globalStrut\height=0
useRtlExtensions=false
XIMInputStyle=On The Spot
audiosink=Auto
videomode=Auto
GUIEffects=none
Font%20Substitutions\arial=helvetica
Font%20Substitutions\courier%20new=courier
Font%20Substitutions\sans%20serif=helvetica
Font%20Substitutions\times%20new%20roman=times
filedialog="@ByteArray(\0\0\0\xbe\0\0\0\x3\0\0\0\x1e\0\0\0\xff\0\0\0\0\0\0\0\x2\0\0\0^\0\0\x1x\x1\0\0\0\x6\x1\0\0\0\x1\0\0\0\x2\0\0\0\x5\x66ile:\0\0\0\x18\x66ile:///home/corenominal\0\0\0\x1\0\0\0\x32\0/\0h\0o\0m\0\x65\0/\0\x63\0o\0r\0\x65\0n\0o\0m\0i\0n\0\x61\0l\0/\0\x44\0r\0o\0p\0\x62\0o\0x\0\0\0\x32\0/\0h\0o\0m\0\x65\0/\0\x63\0o\0r\0\x65\0n\0o\0m\0i\0n\0\x61\0l\0/\0\x44\0r\0o\0p\0\x62\0o\0x\0\0\0~\0\0\0\xff\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x1\xc3\0\0\0\x4\x1\x1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x64\xff\xff\xff\xff\0\0\0\x81\0\0\0\0\0\0\0\x4\0\0\0\xea\0\0\0\x1\0\0\0\0\0\0\0:\0\0\0\x1\0\0\0\0\0\0\0;\0\0\0\x1\0\0\0\0\0\0\0\x64\0\0\0\x1\0\0\0\0\0\0\0\x1)"Also, if you have not done so already, you might want to install VLC. It really should have been included in CrunchBang 8.10.01 by default. VLC rocks!
sudo apt-get install vlc-nox vlcNotes:
This should affect styling of all Qt4 applications, including Skype.
Did I mention that the above styling can almost certainly be improved upon? Please feel free to have go


