Commit 5e9d73c6 authored by Clement CHAVANCE's avatar Clement CHAVANCE

microsoft windows style use stylesheet and not a ugly hack

parent 4d5843cd
/*****************************************************************************
* main.cpp: VLMC main
*****************************************************************************
* Copyright (C) 2008-2010 VideoLAN
* Copyright (C) 2008-2009 the VLMC team
*
* Authors: Ludovic Fauvet <etix@l0cal.com>
*
......@@ -28,6 +28,8 @@
#include "MainWindow.h"
#include <QFile>
#include <QApplication>
#include <QColor>
#include <QPalette>
......@@ -59,8 +61,14 @@ VLMCmain( int argc, char **argv )
//Preferences::changeLang( QSettings().value( "Lang" ).toString() );
#ifdef Q_OS_WIN
// Ugly workaround
app.setStyle( "plastique" );
QFile css(":/styles/windows");
if ( css.open( QIODevice::ReadOnly | QIODevice::Text ) )
{
QString styleSheet = css.readAll();
if ( styleSheet != "" )
app.setStyleSheet( styleSheet );
}
#endif
// Creating the color palette
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment