add alternative for gtkrc and settings.ini and patch for openmamba colors [release 5.5.2-3mamba;Fri Dec 25 2015]
This commit is contained in:
parent
77062be0bc
commit
7f001a0841
34
breeze-gtk-5.5.2-gtk2-openmamba-colors.patch
Normal file
34
breeze-gtk-5.5.2-gtk2-openmamba-colors.patch
Normal file
@ -0,0 +1,34 @@
|
||||
diff -Nru breeze-gtk-5.5.2.orig/Breeze-dark-gtk/gtk-2.0/gtkrc breeze-gtk-5.5.2/Breeze-dark-gtk/gtk-2.0/gtkrc
|
||||
--- breeze-gtk-5.5.2.orig/Breeze-dark-gtk/gtk-2.0/gtkrc 2015-12-22 11:25:40.000000000 +0100
|
||||
+++ breeze-gtk-5.5.2/Breeze-dark-gtk/gtk-2.0/gtkrc 2015-12-25 23:51:59.868501566 +0100
|
||||
@@ -1,6 +1,6 @@
|
||||
# Breezy | ScionicSpectre
|
||||
|
||||
-gtk-color-scheme = "base_color:#232629\nfg_color:#EEEFF0\ntooltip_fg_color:#FFFFFF\ntooltip_bg_color:#000000\nselected_bg_color:#3DAEE9\nselected_fg_color:#EEEFF0\ntext_color:#EEEFF0\nbg_color:#31363B\ninsensitive_fg_color:#4c5054"
|
||||
+gtk-color-scheme = "base_color:#232629\nfg_color:#EEEFF0\ntooltip_fg_color:#FFFFFF\ntooltip_bg_color:#000000\nselected_bg_color:#52AE32\nselected_fg_color:#EEEFF0\ntext_color:#EEEFF0\nbg_color:#31363B\ninsensitive_fg_color:#4c5054"
|
||||
|
||||
gtk-auto-mnemonics = 1
|
||||
|
||||
diff -Nru breeze-gtk-5.5.2.orig/Breeze-gtk/gtk-2.0/gtkrc breeze-gtk-5.5.2/Breeze-gtk/gtk-2.0/gtkrc
|
||||
--- breeze-gtk-5.5.2.orig/Breeze-gtk/gtk-2.0/gtkrc 2015-12-22 11:25:41.000000000 +0100
|
||||
+++ breeze-gtk-5.5.2/Breeze-gtk/gtk-2.0/gtkrc 2015-12-25 23:49:48.547590452 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
# Theme: Breezy
|
||||
# Description: Breeze theme for GTK+2.0
|
||||
|
||||
-gtk-color-scheme = "bg_color:#EFF0F1\nselected_bg_color:#3DAEE9\nbase_color:#FCFCFC" # Background, base.
|
||||
+gtk-color-scheme = "bg_color:#EFF0F1\nselected_bg_color:#52AE32\nbase_color:#FCFCFC" # Background, base.
|
||||
gtk-color-scheme = "fg_color:#31363B\nselected_fg_color:#FFFFFF\ninsensitive_fg_color:#BDC3C7\ntext_color:#31363B" # Foreground, text.
|
||||
gtk-color-scheme = "tooltip_bg_color:#31363B\ntooltip_fg_color:#FCFCFC" # Tooltips.
|
||||
|
||||
@@ -77,8 +77,8 @@
|
||||
|
||||
GtkEntry::state-hint = 1
|
||||
|
||||
- GtkWidget::link-color = "#1998DA"
|
||||
- GtkWidget::visited-link-color = "#1478AC"
|
||||
+ GtkWidget::link-color = "#4A7F37"
|
||||
+ GtkWidget::visited-link-color = "#65885E"
|
||||
|
||||
# Colors
|
||||
|
110
breeze-gtk.spec
Normal file
110
breeze-gtk.spec
Normal file
@ -0,0 +1,110 @@
|
||||
%define majver %(echo %version | cut -d. -f1-2)
|
||||
|
||||
Name: breeze-gtk
|
||||
Version: 5.5.2
|
||||
Release: 3mamba
|
||||
Summary: A GTK Theme Built to Match KDE's Breeze
|
||||
Group: Graphical Desktop/Look 'n' feel
|
||||
Vendor: openmamba
|
||||
Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
URL: http://www.kde.org
|
||||
Source: http://download.kde.org/stable/plasma/%{version}/breeze-gtk-%{version}.tar.xz
|
||||
Patch0: breeze-gtk-5.5.2-gtk2-openmamba-colors.patch
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libgcc
|
||||
BuildRequires: libqt5-devel
|
||||
BuildRequires: libstdc++6-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: cmake
|
||||
BuildRequires: rpm-macros-kde5
|
||||
BuildRequires: extra-cmake-modules
|
||||
Provides: oxygen-gtk3
|
||||
Obsoletes: oxygen-gtk3
|
||||
Provides: QtCurve
|
||||
Requires: breeze-icons
|
||||
Requires: adwaita-icon-theme
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||
|
||||
%description
|
||||
A GTK Theme Built to Match KDE's Breeze.
|
||||
|
||||
%debug_package
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
|
||||
# openmamba color in breeze for gtk 3
|
||||
sed -i "s|#3daee9|#52ae32|g" Breeze-gtk/gtk-3.0/gtk.css
|
||||
|
||||
%build
|
||||
%cmake_kde5 -d build
|
||||
%make
|
||||
|
||||
%install
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
%makeinstall -C build
|
||||
|
||||
install -d -m0755 %{buildroot}%{_sysconfdir}/gtk-3.0
|
||||
cat > %{buildroot}%{_sysconfdir}/gtk-3.0/settings.ini-Breeze << _EOF
|
||||
[Settings]
|
||||
gtk-font-name=Bitstream Vera Sans Roman 9
|
||||
gtk-theme-name=Breeze
|
||||
gtk-icon-theme-name=breeze
|
||||
gtk-fallback-icon-theme=Adwaita
|
||||
gtk-toolbar-style=GTK_TOOLBAR_ICONS
|
||||
gtk-menu-images=0
|
||||
gtk-button-images=0
|
||||
_EOF
|
||||
|
||||
%clean
|
||||
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||||
|
||||
%preun
|
||||
if [ $1 -eq 0 ]; then
|
||||
/usr/sbin/update-alternatives --remove settings.ini %{_datadir}/themes/Breeze/gtk-3.0/settings.ini-Breeze
|
||||
/usr/sbin/update-alternatives --remove gtkrc %{_datadir}/themes/Breeze/gtk-2.0/gtkrc
|
||||
/usr/sbin/update-alternatives --remove gtkrc %{_datadir}/themes/Breeze-Dark/gtk-2.0/gtkrc
|
||||
fi
|
||||
:
|
||||
|
||||
%posttrans
|
||||
if [ $1 -ge 1 ]; then
|
||||
/usr/sbin/alternatives --install \
|
||||
%{_sysconfdir}/gtk-3.0/settings.ini settings.ini %{_sysconfdir}/gtk-3.0/settings.ini-Breeze 50
|
||||
/usr/sbin/alternatives --install \
|
||||
%{_sysconfdir}/gtk-2.0/gtkrc gtkrc %{_datadir}/themes/Breeze/gtk-2.0/gtkrc 50
|
||||
/usr/sbin/alternatives --install \
|
||||
%{_sysconfdir}/gtk-2.0/gtkrc gtkrc %{_datadir}/themes/Breeze-Dark/gtk-2.0/gtkrc 40
|
||||
fi
|
||||
:
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_sysconfdir}/gtk-3.0/settings.ini-Breeze
|
||||
%{_libdir}/kconf_update_bin/gtkbreeze5.5
|
||||
%{_datadir}/kconf_update/gtkbreeze5.5.upd
|
||||
%dir %{_datadir}/themes/Breeze
|
||||
%dir %{_datadir}/themes/Breeze/gtk-2.0
|
||||
%{_datadir}/themes/Breeze/gtk-2.0/*
|
||||
%dir %{_datadir}/themes/Breeze/gtk-3.0
|
||||
%{_datadir}/themes/Breeze/gtk-3.0/*
|
||||
%dir %{_datadir}/themes/Breeze-Dark
|
||||
%dir %{_datadir}/themes/Breeze-Dark/gtk-2.0
|
||||
%{_datadir}/themes/Breeze-Dark/gtk-2.0/*
|
||||
%dir %{_datadir}/themes/Breeze-Dark/gtk-3.0
|
||||
%{_datadir}/themes/Breeze-Dark/gtk-3.0/*
|
||||
%doc COPYING.LIB
|
||||
|
||||
%changelog
|
||||
* Fri Dec 25 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.2-3mamba
|
||||
- add alternative for gtkrc and settings.ini and patch for openmamba colors
|
||||
|
||||
* Fri Dec 25 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.2-2mamba
|
||||
- obsolete oxygen-gtk and provide gtk-3.0 settings.ini
|
||||
|
||||
* Fri Dec 25 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 5.5.2-1mamba
|
||||
- package created using the webbuild interface
|
Loading…
Reference in New Issue
Block a user