<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -23,13 +23,43 @@
 #include &quot;explorerstyle.h&quot;
 #endif
 
+#if defined(Q_WS_X11)
+#include &lt;qdebug.h&gt;
+#include &lt;qstyle.h&gt;
+#include &lt;qstylefactory.h&gt;
+#endif
+
 int main(int argc, char **argv)
 {
     Q_INIT_RESOURCE(htmls);
     Q_INIT_RESOURCE(data);
+
+#if defined(Q_WS_X11)
+    // See if -style oxygen has been passed as a command line argument
+    int hasStyle = -1;
+    int hasOxygen = -1;
+    for (int i = 0; i &lt; argc; ++i) {
+        if (QLatin1String(argv[i]) == QLatin1String(&quot;-style&quot;))
+            hasStyle = i;
+        if (QLatin1String(argv[i]) == QLatin1String(&quot;oxygen&quot;))
+            hasOxygen = i;
+    }
+    bool keepOxygen = (hasStyle + 1 == hasOxygen);
+#endif
     BrowserApplication application(argc, argv);
     if (!application.isRunning())
         return 0;
+
+#if defined(Q_WS_X11)
+    if (!keepOxygen
+        &amp;&amp; application.style()-&gt;objectName() == QLatin1String(&quot;oxygen&quot;)) {
+        qWarning() &lt;&lt; &quot;Oxygen style has been detected, loading Plastique style.&quot; &lt;&lt; endl
+                   &lt;&lt; &quot; - KDE's 4.2's Oxygen style has too many issues with Qt 4.5 features that Arora uses and while many of the issues have been fixed for KDE 4.3, KDE 4.2 users get a really ugly Arora.&quot;
+                   &lt;&lt; &quot;Once KDE 4.3 is released this check will be removed.&quot;
+                   &lt;&lt; &quot;If you are still want to use Oxygen add the arguments -style oxygen on the command line.&quot;;
+        application.setStyle(QLatin1String(&quot;plastique&quot;));
+    }
+#endif
 #ifdef Q_OS_WIN
     application.setStyle(new ExplorerStyle);
 #endif</diff>
      <filename>src/main.cpp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f01c6a6f30031c735916fda1d7317cdd697400e5</id>
    </parent>
  </parents>
  <author>
    <name>Benjamin C Meyer</name>
    <login>icefox</login>
    <email>ben@meyerhome.net</email>
  </author>
  <url>http://github.com/Arora/arora/commit/34a819786a82ead0bc56794520e7ca97f6663826</url>
  <id>34a819786a82ead0bc56794520e7ca97f6663826</id>
  <committed-date>2009-03-27T16:23:51-07:00</committed-date>
  <authored-date>2009-03-27T16:23:23-07:00</authored-date>
  <message>Add check for the Oxygen style and switch to plastique unless the user specifies oxygen on the command line</message>
  <tree>63c321c88f7530b904ad91057c40523909f65619</tree>
  <committer>
    <name>Benjamin C Meyer</name>
    <login>icefox</login>
    <email>ben@meyerhome.net</email>
  </committer>
</commit>
