Merge lp:~flexiondotorg/ubuntu-themes/lp1624571 into lp:ubuntu-themes

Proposed by Martin Wimpress 
Status: Merged
Approved by: Iain Lane
Approved revision: 518
Merged at revision: 517
Proposed branch: lp:~flexiondotorg/ubuntu-themes/lp1624571
Merge into: lp:ubuntu-themes
Diff against target: 23 lines (+4/-0)
2 files modified
Ambiance/gtk-3.20/apps/libreoffice.css (+2/-0)
Radiance/gtk-3.20/apps/libreoffice.css (+2/-0)
To merge this branch: bzr merge lp:~flexiondotorg/ubuntu-themes/lp1624571
Reviewer Review Type Date Requested Status
Iain Lane Approve
Review via email: mp+307819@code.launchpad.net

Commit message

Fix borders of Libreoffice toolbars, so that they don't overlap the window decorations

Description of the change

There is an unnecessary light coloured border around the LibreOffice toolbars.

LibreOffice uses styling from GTK_STYLE_CLASS_PRIMARY_TOOLBAR and GTK_STYLE_CLASS_TOOLBAR in addition to .libreoffice-toolbar that was added in this patch:

  * https://git.launchpad.net/~libreoffice/ubuntu/+source/libreoffice/tree/patches/gtk3-toolbar-styleclass.diff?h=ubuntu-yakkety-5.2

This merge proposal excludes .libreoffice-toolbar from .primary-toolbar so that only the .libreoffice-toolbar styling from gtk-3.20/apps/libreoffice.css is applied.

  * http://bazaar.launchpad.net/~ubuntu-art-pkg/ubuntu-themes/trunk/revision/509#Ambiance/gtk-3.20/apps/libreoffice.css

The Arc theme issue tracker has a good discussion of the issue.

  * https://github.com/horst3180/arc-theme/issues/659

This merge proposal was adapted from:

  * https://github.com/horst3180/arc-theme/commit/5b15bdc4425b6b3b8e374f76541f020419663edd#diff-da6ed7fedc8a7bcf24b6cc6ed0573831

To post a comment you must log in.
Revision history for this message
Iain Lane (laney) wrote :

I think it would be nicer to reset the values for ".libreoffice-toolbar" (and maybe ".primary-toolbar.libreoffice-toolbar) in apps/libreoffice.css if at all possible, so as not to clutter up the main theme with too many more hacks.

Please could you try that?

review: Needs Information
Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :

Alternative potential solutions I've tried are simply removing the border via:

.libreoffice-toolbar {
    background-image: none;
    border: none;
}

This has the illusion of working of light coloured toolbars, as in Ambiance. But ultimately the white border is still there, just thinner, and still encroaches slightly into the window border. Using the same change in a theme with a dark toolbar the white borders remain very evident.

I've also tried the following, which makes no difference whatsoever:

.primary-toolbar.libreoffice-toolbar {
    background-image: none;
}

.primary-toolbar.libreoffice-toolbar button:hover {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@focus_color, 1.5)),
                                     color-stop (0.5, shade (@focus_color, 1.33)),
                                     to (shade (@focus_color, 1.28)));
    border-image-source: url("assets/button-hover.png");
}
.primary-toolbar.libreoffice-toolbar button:active {
    background-image: -gtk-gradient (linear, left top, left bottom,
                                     from (shade (@selected_bg_color, 1.5)),
                                     color-stop (0.5, shade (@selected_bg_color, 1.33)),
                                     to (shade (@selected_bg_color, 1.28)));
    border-image-source: url("assets/button-active-hover.png");
}

518. By Martin Wimpress 

Unset border and box-shadow for LibreOffice toolbars. (LP: #1624571)

Revision history for this message
Martin Wimpress  (flexiondotorg) wrote :

As discussed in #ubuntu-desktop a much simpler solution exists for Ambiance and Radiance:

.libreoffice-toolbar {
    background-image: none;
    border: none;
    box-shadow: none;
}

This merge proposal has been updated to use the above solution, which is far less invasive.

Revision history for this message
Iain Lane (laney) wrote :

Ta

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'Ambiance/gtk-3.20/apps/libreoffice.css'
2--- Ambiance/gtk-3.20/apps/libreoffice.css 2016-08-30 09:51:51 +0000
3+++ Ambiance/gtk-3.20/apps/libreoffice.css 2016-10-06 18:53:57 +0000
4@@ -1,5 +1,7 @@
5 .libreoffice-toolbar {
6 background-image: none;
7+ border: none;
8+ box-shadow: none;
9 }
10 .libreoffice-toolbar button:hover {
11 background-image: -gtk-gradient (linear, left top, left bottom,
12
13=== modified file 'Radiance/gtk-3.20/apps/libreoffice.css'
14--- Radiance/gtk-3.20/apps/libreoffice.css 2016-08-30 09:51:51 +0000
15+++ Radiance/gtk-3.20/apps/libreoffice.css 2016-10-06 18:53:57 +0000
16@@ -1,5 +1,7 @@
17 .libreoffice-toolbar {
18 background-image: none;
19+ border: none;
20+ box-shadow: none;
21 }
22 .libreoffice-toolbar button:hover {
23 background-image: -gtk-gradient (linear, left top, left bottom,

Subscribers

People subscribed via source and target branches