From 0589c108603be377c155d9a5f0a4a32c1b502abae7b6d4e23b9d50b8ad92ecfe Mon Sep 17 00:00:00 2001 From: Hrvoje Senjan Date: Fri, 27 Nov 2015 06:37:35 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/breeze?expand=0&rev=79 --- set-breezyGTK-as-default-gtk-theme.patch | 58 ------------------------ 1 file changed, 58 deletions(-) delete mode 100644 set-breezyGTK-as-default-gtk-theme.patch diff --git a/set-breezyGTK-as-default-gtk-theme.patch b/set-breezyGTK-as-default-gtk-theme.patch deleted file mode 100644 index 3688b85..0000000 --- a/set-breezyGTK-as-default-gtk-theme.patch +++ /dev/null @@ -1,58 +0,0 @@ ---- breeze-5.4.2/misc/gtkbreeze/main.cpp 2015-10-01 11:33:03.000000000 +0200 -+++ breeze-5.4.2.new/misc/gtkbreeze/main.cpp 2015-10-18 16:45:26.142502413 +0200 -@@ -74,7 +74,7 @@ QString isGtkThemeSetToOxygen(QString gt - */ - int setGtk2() - { -- const QString gtk2Theme = QStringLiteral("Orion"); // Orion looks kindae like breeze -+ const QString gtk2Theme = QStringLiteral("BreezyGTK"); // BreezyGTK looks kindae like breeze - const QString gtk2ThemeSettings = QStringLiteral("gtk-2.0/gtkrc"); // system installed file to check for - - const QString gtkThemeDirectory = isGtkThemeInstalled(gtk2Theme, gtk2ThemeSettings); -@@ -106,7 +106,7 @@ int setGtk2() - out << QStringLiteral("}\n"); - out << QStringLiteral("widget_class \"*\" style \"user-font\"\n"); - out << QStringLiteral("gtk-font-name=\"Oxygen-Sans Sans-Book 10\"\n"); // matches plasma-workspace:startkde/startkde.cmake -- out << QStringLiteral("gtk-theme-name=\"Orion\"\n"); -+ out << QStringLiteral("gtk-theme-name=\"BreezyGTK\"\n"); - out << QStringLiteral("gtk-icon-theme-name=\"breeze\"\n"); - out << QStringLiteral("gtk-fallback-icon-theme=\"gnome\"\n"); - out << QStringLiteral("gtk-toolbar-style=GTK_TOOLBAR_ICONS\n"); -@@ -123,8 +123,8 @@ int setGtk3() - { - qCDebug(GTKBREEZE) << "setGtk3()"; - -- const QString gtk3Theme = QStringLiteral("Orion"); // Orion looks kindae like breeze -- const QString gtk3ThemeSettings = QStringLiteral("gtk-3.0/settings.ini"); // check for installed /usr/share/themes/Orion/gtk-3.0/settings.ini -+ const QString gtk3Theme = QStringLiteral("BreezyGTK"); // BreezyGTK looks kindae like breeze -+ const QString gtk3ThemeSettings = QStringLiteral("gtk-3.0/settings.ini"); // check for installed /usr/share/themes/BreezyGTK/gtk-3.0/settings.ini - - const QString gtkThemeDirectory = isGtkThemeInstalled(gtk3Theme, gtk3ThemeSettings); - if (gtkThemeDirectory == 0) { -@@ -158,26 +158,6 @@ int setGtk3() - out << QStringLiteral("gtk-menu-images=1\n"); - out << QStringLiteral("gtk-button-images=1\n"); - qCDebug(GTKBREEZE) << "gtk3rc written"; -- -- QString cssFile = QStandardPaths::standardLocations(QStandardPaths::HomeLocation).first() + -- QDir::separator() + ".config/gtk-3.0/gtk.css"; -- QFile gtkcss3writer(cssFile); -- opened = gtkcss3writer.open(QIODevice::WriteOnly | QIODevice::Text); -- if (!opened) { -- qCWarning(GTKBREEZE) << "failed to open " << cssFile; -- return 1; -- } -- QTextStream outcss(>kcss3writer); -- outcss << QStringLiteral(".window-frame, .window-frame:backdrop {\n"); -- outcss << QStringLiteral(" box-shadow: 0 0 0 black;\n"); -- outcss << QStringLiteral(" border-style: none;\n"); -- outcss << QStringLiteral(" margin: 0;\n"); -- outcss << QStringLiteral(" border-radius: 0;\n"); -- outcss << QStringLiteral("}\n\n"); -- outcss << QStringLiteral(".titlebar {\n"); -- outcss << QStringLiteral(" border-radius: 0;\n"); -- outcss << QStringLiteral("}\n"); -- qCDebug(GTKBREEZE) << ".config/gtk-3.0/gtk.css written"; - return 0; - } -