[Upstream] Ambiance wrong color for text toolbar buttons in LibreOffice

Bug #1427346 reported by Pavel Zahradník
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
LibreOffice
Fix Released
Medium
libreoffice (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

With Ambiance theme, text toolbar buttons in LibreOffice are colored as disabled (even when they are enabled). With Radiance theme their color seems correct.

See attachment with screenshot taken from LibreOffice Calc Preview

Revision history for this message
In , Thomas Bordfeldt (bordfeldt) wrote :

Created attachment 113799
Screenshot with "Close Preview"-button

LO 4.4.1.2 on Xubuntu 14.04 64bit

In Print-Preview-Mode in Writer or Calc the "Close Preview"-Button is active, but greyed out.

Revision history for this message
In , Jmadero-dev (jmadero-dev) wrote :

Cannot confirm:

Ubuntu 14.10 x64
LibreOffice 4.4.1.2 rc

Revision history for this message
In , Cno (cno) wrote :

same issue as the other bugs?

Revision history for this message
In , Raal (raal) wrote :

I can confirm with Version: 4.4.2.0.0+
Build ID: 3e3f0f5c3051ea982f8f753e0f3e51441e8f9496
TinderBox: Linux-rpm_deb-x86_64@46-TDF, Branch:libreoffice-4-4, Time: 2015-02-22_10:24:01
Probably same root cause as in bug 85990

Revision history for this message
Pavel Zahradník (pavel-zahradnik) wrote :
Revision history for this message
Adolfo Jayme Barrientos (fitojb) wrote :
Changed in ubuntu-themes (Ubuntu):
status: New → Triaged
importance: Undecided → Low
summary: - Ambiance wrong color for text toolbar buttons in LibreOffice
+ [Upstream] Ambiance wrong color for text toolbar buttons in LibreOffice
affects: ubuntu-themes (Ubuntu) → libreoffice (Ubuntu)
Revision history for this message
In , Luke (lukebenes) wrote :

I CAN confirm:

Ubuntu 14.10 x86
LibreOffice: 4.5.0.0.alpha0+
Build ID: 4ee55eed6a34f6f061a0cd369a30afb464f9fa27

Revision history for this message
In , Raal (raal) wrote :
Download full text (3.7 KiB)

This appears to have begun at the below commit.

Adding Cc: to <email address hidden> ; Could you possibly take a look at this? Thanks

ed815944b5123c83f574bc814c266d1a346af05c is the first bad commit
commit ed815944b5123c83f574bc814c266d1a346af05c
Author: Matthew Francis <email address hidden>
Date: Sun Mar 15 03:14:10 2015 +0800

    source-hash-0ed0974298992ae871a8fbe79f856cf2588aeec6

    (Bibisect: Skipped preceding irrelevant commit(s) e5bbc721d6bd5536bdd34f33fc79933a379f2919)

    commit 0ed0974298992ae871a8fbe79f856cf2588aeec6
    Author: Michael Jaumann <email address hidden>
    AuthorDate: Tue Sep 23 12:34:54 2014 +0000
    Commit: Samuel Mehrbrodt <email address hidden>
    CommitDate: Mon Sep 29 17:44:07 2014 +0000

        fdo#59299 Personas for bottom toolbars

        Change-Id: If823964bf3bb67563504db61b6c5d557cab89243
        Reviewed-on: https://gerrit.libreoffice.org/11609
        Reviewed-by: Samuel Mehrbrodt <email address hidden>
        Tested-by: Samuel Mehrbrodt <email address hidden>

:040000 040000 cbef77b3f28fa181e5bf377bc21d72684b7d8266 4fe9067c423579069e3ca6dafc6a9bf08b3690f5 M opt

git bisect log
# bad: [cf6ea17155fabb2a120ba07c150735591ac861d7] source-hash-3f94c9e9ddfd807b449f3bb9b232cf2041fa12d2
# good: [fc71ac001f16209654d15ef8c1c4018aa55769f5] source-hash-c15927f20d4727c3b8de68497b6949e72f9e6e9e
git bisect start 'latest' 'oldest'
# good: [8cf60cc706948588e2f33a6d98b7c55d454e362a] source-hash-f340f0454627939f1830826fb5cc53a90e6c62a4
git bisect good 8cf60cc706948588e2f33a6d98b7c55d454e362a
# bad: [7beddf3808dadd525d7e55c00a5a90a2b44c23d3] source-hash-2f10386ce577f52e139aa23d41bc787d8e0b4d59
git bisect bad 7beddf3808dadd525d7e55c00a5a90a2b44c23d3
# good: [7d319609d8266af06aa3256fd3773d052b9150dc] source-hash-1fec67aab152e0c0ad6dd85082c50f1beff7d520
git bisect good 7d319609d8266af06aa3256fd3773d052b9150dc
# bad: [136c4fdf380a2d05111e313540e4be01a74c4eb6] source-hash-7bacb89bb955f4985e435c33dde629099dab744b
git bisect bad 136c4fdf380a2d05111e313540e4be01a74c4eb6
# good: [f3c053a278b473b5029baf72c02bdc3d78289b51] source-hash-a37a8733609a59eccabf89b2ff67d5ee6bf194bb
git bisect good f3c053a278b473b5029baf72c02bdc3d78289b51
# good: [30a34b701cf5b78868db5cc5ec7df738a54a5efb] source-hash-63ec219eca557c562433c4e9965a6f154e5966b5
git bisect good 30a34b701cf5b78868db5cc5ec7df738a54a5efb
# bad: [9ebfb6380d0d06e5465527738e402cd58bb7c467] source-hash-a67e6ae04086f2f60bb9747fbfc09a5a3d303d84
git bisect bad 9ebfb6380d0d06e5465527738e402cd58bb7c467
# good: [b629fd5ebfe6113a8db53ac648ab8b7a936f72da] source-hash-c353caee1c86476d98cd483f963f63c4195975f4
git bisect good b629fd5ebfe6113a8db53ac648ab8b7a936f72da
# good: [ca930c01a86e13c009262cc284749154e49721a4] source-hash-0b23ac2c9d36c89137feeb82d0aed7a8628a53b7
git bisect good ca930c01a86e13c009262cc284749154e49721a4
# good: [4eb8ac0bf78ea68f9fc0e5bdf0a7e7544aa2a222] source-hash-1424a8174eb37d26a2ec41a981a74f34661c0044
git bisect good 4eb8ac0bf78ea68f9fc0e5bdf0a7e7544aa2a222
# bad: [7287f3141a4844c3fc7ca6b474580bea64f1393a] source-hash-2b2246bb164ae58a39843218dcbcc425e4c38803
git bisect bad 7287f3141a4844c3fc7ca6b474580bea64f1393a
# good: [0fc28e964490618...

Read more...

Revision history for this message
In , Fdbugs-a (fdbugs-a) wrote :

@raal: Thanks for bisecting this one. If you have another minute at some point, could you possibly check if the two linked bugs (bug 86774 and bug 85990) come from the same commit (i.e. are duplicates) ?

No need to go through the whole bisection again, just checkout source-hash-0ed0974298992ae871a8fbe79f856cf2588aeec6 and check the behaviour, then checkout HEAD~1 (the commit before the current commit) and compare.

Revision history for this message
In , Raal (raal) wrote :

*** Bug 85990 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Meta-dev (meta-dev) wrote :

@raal: Thanks vor bibisecting!

this is most likely causted by http://opengrok.libreoffice.org/xref/core/vcl/source/window/toolbox.cxx#1469 SetTextColor(...

Unfortunatly i didn't have any LO build or time to investigate on this.

Revision history for this message
In , Raal (raal) wrote :

*** Bug 86774 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Lo-2 (lo-2) wrote :

Ubuntu 15.04 LO Version: 4.4.2.2
Build ID: 40m0(Build:2)
Locale: en_US

Still happening.

Revision history for this message
In , Adolfo Jayme Barrientos (fitojb) wrote :

*** Bug 91233 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Luke (lukebenes) wrote :

Michael or Samuel.
Could you please look into this issue? This regression is still affecting recent builds.

Tested on Version: 5.1.0.0.alpha1+
Build ID: 2e6feddc53830406fa04b4a0aea49bb8438dc702

Revision history for this message
In , Joeyisdamanya (joeyisdamanya) wrote :

I also encountered this issue. Since the author of commit causing this regression has said he does not have time to support his patch, it should be reverted until he can.

Having personas apply to customized toolbars would be nice. But that’s purely an aesthetic improvement for users that customize their UI. Michael's enhancement breaks the DEFAULT toolbar for everyone and he has stated he cannot support it.

Unsupported, broken patches should be reverted.

Revision history for this message
In , Meta-dev (meta-dev) wrote :

Sry, for my absence.
I think i can try to fix it next week. Just have to resetup my development environment.

Revision history for this message
In , Jmadero-dev (jmadero-dev) wrote :

Just FYI - this isn't how the project works. Sometimes the fix has fixed something more serious than the regression so we don't have an "automatically revert" policy. Nor do we have a "demand volunteers do X" policy.

Revision history for this message
In , Adolfo Jayme Barrientos (fitojb) wrote :

*** Bug 95101 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Luke (lukebenes) wrote :

[Template Manager] "New Folder" button is also greyed out. The Ubuntu bug report also lists more examples outside of print preview. Review duplicates and see also, for further details.

The common theme seems to be buttons that use text instead of icons suffer from this regression.

Revision history for this message
In , Luke (lukebenes) wrote :

Also these only affect dark desktop themes. If you change the theme from Ambiance to Radiance, the text buttons will not be greyed out.

Revision history for this message
In , Meta-dev (meta-dev) wrote :

can't reproduce it with Linux Mint 17.2 Rafaela

LO: 5.1.0.0.alpha1+

tried dark and bright desktop themes, cinnamon and kde desktops

Revision history for this message
In , Momonasmon (momonasmon) wrote :

*** Bug 95571 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Luke (lukebenes) wrote :

Michael Jaumann,
If your distro supports GTK3, you must:

$ SAL_USE_VCLPLUGIN=gtk ./soffice

I can still reproduce this bug with a recent build,
Version: 5.1.0.0.alpha1+
Build ID: ce463679a5a362d5c3f7c146f70b6be838ddbb2d

Revision history for this message
In , Qubit (qubit) wrote :

Migrating Whiteboard tags to Keywords: (bibisected)
[NinjaEdit]

Revision history for this message
In , Luke (lukebenes) wrote :

File > Templates > Manage > "New Folder" and
File > Print Preview > "Close Preview" both appear greyed out in the LibreOffice that ships with Ubuntu 16.04, Version: 5.1.4.2
Build ID: 1:5.1.4-0ubuntu1

With recent Version: 5.3.0.0.alpha0+
Build ID: 4a6329badc9c8679945d1a1ec225e26e15d7bfd2
"Close Preview" is still greyed out

Revision history for this message
Luke (lukebenes) wrote :

It's not just the 'Close Preview' button. Multiple UI elements throughout are affected. Other examples include
File > Templates > Manage > "New Folder"

Revision history for this message
In , Cno (cno) wrote :

setting priority to high
It makes not only bad visibility of the controls but more important a bad presentation on an important OS, lasting 1.5 year now, so as if a neat UI is not important.

Revision history for this message
In , Luke (lukebenes) wrote :

Still an issue with Version: 5.2.1.2
Build ID: 1:5.2.1~rc2-0ubuntu1 that ships with Ubuntu 16.10.

Revision history for this message
In , Libreoffice-commits (libreoffice-commits) wrote :

Caolán McNamara committed a patch related to this issue.
It has been pushed to "master":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=b5f9fdff49e6955550cffa5318bee9d5c09f3479

Resolves: tdf#89760 get correct menubar text color for 'close preview'

It will be available in 5.3.0.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.

Revision history for this message
In , Caolanm (caolanm) wrote :

seems to work for me with that in place

Revision history for this message
In , Cno (cno) wrote :

Created attachment 128054
srceen print from daily 2016 10 18

(In reply to Caolán McNamara from comment #27)
> seems to work for me with that in place

I don't see any improvement - see attachment

Revision history for this message
In , Adolfo Jayme Barrientos (fitojb) wrote :

@Cor: I think you should install the “libreoffice-gtk3” package… The Ambiance theme should be usable with GTK+3 LibreOffice since Ubuntu 16.10.

Revision history for this message
In , Caolanm (caolanm) wrote :

If you've still got a problem, then I need to know the details of the platform you are running on because there are significant differences in how themes work in gtk3 between < 3.20 and >= 3.20. I'm assuming Ubuntu, so...

lsb_release -a
and
dpkg -l libgtk-3-0

Revision history for this message
In , Cno (cno) wrote :

(In reply to Caolán McNamara from comment #30)

$ lsb_release -a
LSB Version: core-9.20160110ubuntu0.2-amd64:core-9.20160110ubuntu0.2-noarch:printing-9.20160110ubuntu0.2-amd64:printing-9.20160110ubuntu0.2-noarch:security-9.20160110ubuntu0.2-amd64:security-9.20160110ubuntu0.2-noarch
Distributor ID: Ubuntu
Description: Ubuntu 16.04.1 LTS
Release: 16.04
Codename: xenial

$ dpkg -l libgtk-3-0
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-====================-===============-===============-=============================================
ii libgtk-3-0:amd64 3.18.9-1ubuntu3 amd64 GTK+ graphical user interface library

Revision history for this message
In , Luke (lukebenes) wrote :

Caolán,
This is NOT a gtk3 specific issue. As I said earlier, you must use:

$ SAL_USE_VCLPLUGIN=gtk ./soffice

It's still not fixed with Build ID: e64ea98801d20e5024da900a0ac8faaf565f4bf3 on 16.04.

Revision history for this message
In , Caolanm (caolanm) wrote :

ah right. gtk2 problem remains of course. I suppose the real problem then is using the menubar color inside a toolbox. We should add a ToolbarTextColor I guess and pull the font from a native toolbarbutton

Revision history for this message
In , Luke (lukebenes) wrote :
Revision history for this message
In , Caolanm (caolanm) wrote :

That suggests that the problem is simply that the menubar font color is used instead of the toolbar font color, so we need to add a ToolFontColor and use it instead of using the menufontcolor in the toolbar

Revision history for this message
In , Caolanm (caolanm) wrote :
Revision history for this message
In , Cno (cno) wrote :
Revision history for this message
In , Luke (lukebenes) wrote :

Verified FIXED for both the gtk and gtk3 backends under 16.04.
Tested on Version: 5.3.0.0.alpha1+
Build ID: 395295a40c24a49c12415ec803860a888d734515

Thanks Caolán!

Revision history for this message
In , Cno (cno) wrote :

lovely, thanks!

Revision history for this message
In , Libreoffice-commits (libreoffice-commits) wrote :

Caolán McNamara committed a patch related to this issue.
It has been pushed to "libreoffice-5-2":

http://cgit.freedesktop.org/libreoffice/core/commit/?id=1439b3499ced0f1131af8e0de107e96d8aac4039&h=libreoffice-5-2

Resolves: tdf#89760 add and use a ToolFontColor for toolbar item entries

It will be available in 5.2.4.

The patch should be included in the daily builds available at
http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
http://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

*** Bug 90572 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Xiscofauli (xiscofauli) wrote :

*** Bug 104284 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Aron Budea (baron-z) wrote :

*** Bug 104471 has been marked as a duplicate of this bug. ***

Changed in df-libreoffice:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Synchronising bug status with upstream.

Changed in libreoffice (Ubuntu):
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.