[libreoffice/f16] Resolves: rhbz#751290 kde black on dark-grey tooltip-texts

Caolán McNamara caolanm at fedoraproject.org
Wed Nov 23 09:09:59 UTC 2011


commit 3fedf1555ac19de3cdff0c619877cabcff093791
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Nov 23 09:09:54 2011 +0000

    Resolves: rhbz#751290 kde black on dark-grey tooltip-texts

 ...es-rhbz-751290-KDE-black-on-dark-tooltips.patch |   60 ++++++++++++++++++++
 libreoffice.spec                                   |    7 ++-
 2 files changed, 66 insertions(+), 1 deletions(-)
---
diff --git a/0001-Resolves-rhbz-751290-KDE-black-on-dark-tooltips.patch b/0001-Resolves-rhbz-751290-KDE-black-on-dark-tooltips.patch
new file mode 100644
index 0000000..1d14db7
--- /dev/null
+++ b/0001-Resolves-rhbz-751290-KDE-black-on-dark-tooltips.patch
@@ -0,0 +1,60 @@
+From 7cd58dbe32e5421986216dd7c6b24a4bb0b9c1e5 Mon Sep 17 00:00:00 2001
+From: Luboš Luňák <l.lunak at suse.cz>
+Date: Tue, 18 Oct 2011 14:52:47 +0000
+Subject: style tooltips properly with KDE4 vclplug (fdo#40461)
+
+---
+(limited to 'vcl/unx/kde4')
+
+diff --git a/vcl/unx/kde4/KDESalFrame.cxx b/vcl/unx/kde4/KDESalFrame.cxx
+index 10e7350..4dd54e5 100644
+--- a/vcl/unx/kde4/KDESalFrame.cxx
++++ b/vcl/unx/kde4/KDESalFrame.cxx
+@@ -38,6 +38,8 @@
+ #include <kmainwindow.h>
+ #include <kapplication.h>
+ #include <ktoolbar.h>
++#include <qdebug.h>
++#include <qtooltip.h>
+ 
+ #undef Region
+ 
+@@ -239,11 +241,9 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
+     style.SetFieldTextColor( aText );
+     style.SetFieldRolloverTextColor( aText );
+     style.SetWindowTextColor( aText );
+-    style.SetHelpTextColor( aText );
+ 
+     // Base
+     style.SetFieldColor( aBase );
+-    style.SetHelpColor( aBase );
+     style.SetWindowColor( aBase );
+     style.SetActiveTabColor( aBase );
+ 
+@@ -268,11 +268,14 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
+     style.SetHighlightColor( aHigh );
+     style.SetHighlightTextColor( toColor(pal.color( QPalette::HighlightedText))  );
+ 
++    // Tooltip
++    style.SetHelpColor( toColor( QToolTip::palette().color( QPalette::Active, QPalette::ToolTipBase )));
++    style.SetHelpTextColor( toColor( QToolTip::palette().color( QPalette::Active, QPalette::ToolTipText )));
++
+     // Font
+     Font aFont = toFont( kapp->font(), rSettings.GetUILocale() );
+ 
+     style.SetAppFont( aFont );
+-    style.SetHelpFont( aFont );
+ 
+     style.SetMenuFont( aFont ); // will be changed according to pMenuBar
+     //style.SetToolFont( aFont ); //already set above
+@@ -291,6 +294,8 @@ void KDESalFrame::UpdateSettings( AllSettings& rSettings )
+     }
+     style.SetFloatTitleFont( aFont );
+ 
++    style.SetHelpFont( toFont( QToolTip::font(), rSettings.GetUILocale()));
++
+     int flash_time = QApplication::cursorFlashTime();
+     style.SetCursorBlinkTime( flash_time != 0 ? flash_time/2 : STYLE_CURSOR_NOBLINKTIME );
+ 
+--
+cgit v0.9.0.2-2-gbebe
diff --git a/libreoffice.spec b/libreoffice.spec
index bc4763f..cafba91 100644
--- a/libreoffice.spec
+++ b/libreoffice.spec
@@ -28,7 +28,7 @@ Summary:        Free Software Productivity Suite
 Name:           libreoffice
 Epoch:          1
 Version:        %{libo_version}.2
-Release:        2%{?dist}
+Release:        3%{?dist}
 License:        LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and (CDDL or GPLv2) and Public Domain
 Group:          Applications/Productivity
 URL:            http://www.documentfoundation.org/develop
@@ -122,6 +122,7 @@ Patch26: 0001-Related-fdo-37195-migrationoo3-not-registered.patch
 Patch27: 0001-Resolves-rhbz-738255-avoid-crash-on-NULL-pointer.patch
 Patch28: 0001-add-Oracle-Java-1.7.0-recognition.patch
 Patch29: 0001-fix-horizontal-scrollbars-with-KDE-oxygen-style-bnc-.patch
+Patch30: 0001-Resolves-rhbz-751290-KDE-black-on-dark-tooltips.patch
 
 %{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
 %define instdir %{_libdir}
@@ -793,6 +794,7 @@ mv -f redhat.soc extras/source/palettes/standard.soc
 %patch27 -p1 -b .rhbz738255-avoid-crash-on-NULL-pointer.patch
 %patch28 -p1 -b .add-Oracle-Java-1.7.0-recognition.patch
 %patch29 -p1 -b .fix-horizontal-scrollbars-with-KDE-oxygen-style-bnc-.patch
+%patch30 -p1 -b .Resolves-rhbz-751290-KDE-black-on-dark-tooltips.patch
 
 # these are horribly incomplete--empty translations and copied english
 # strings with spattering of translated strings
@@ -2095,6 +2097,9 @@ update-desktop-database %{_datadir}/applications &> /dev/null || :
 %{basisinstdir}/program/kde-open-url
 
 %changelog
+* Wed Nov 23 2011 Caolán McNamara <caolanm at redhat.com> - 3.4.4.1-3
+- Resolves: rhbz#751290 kde black on dark-grey tooltip-texts
+
 * Fri Nov 11 2011 Caolán McNamara <caolanm at redhat.com> - 3.4.4.1-2
 - Resolves: fdo#42749 KDE oxygen theme and scrollbars
 


More information about the scm-commits mailing list