Merge lp:~laney/terminator/gtk3.20-embedded-css into lp:terminator/gtk3

Proposed by Iain Lane
Status: Merged
Merged at revision: 1714
Proposed branch: lp:~laney/terminator/gtk3.20-embedded-css
Merge into: lp:terminator/gtk3
Diff against target: 33 lines (+6/-3)
1 file modified
terminatorlib/terminator.py (+6/-3)
To merge this branch: bzr merge lp:~laney/terminator/gtk3.20-embedded-css
Reviewer Review Type Date Requested Status
Stephen Boddy Approve
Review via email: mp+316094@code.launchpad.net

Description of the change

Update the selectors to include 3.20 compatibility too. This release moved to CSS nodes - all themes and application CSS have to be ported.

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

Without this, the header in the notebook gets a transparent background - try in (e.g.) current zesty with Ambiance

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

Have you looked at the css files in the terminatorlib/themes subfolder? If I'm understanding what you're saying, then it sounds like some of those would need modifications too, to work properly with the newer Gtk versions.

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

Nope, I didn't see those. But yes it looks like that's the case. Most of the selectors have to be rewritten for 3.20. Fortunately the online documentation is quite good in telling you exactly which CSS nodes each widget contains now.

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

Yeah, I'm a bit hit and miss with getting the selectors(?) right at the best of times. Doing it blindly for systems with newer software where I can't see the difference will be rather challenging. I'll probably leave it till people who get issues submit patches... unless... ;-) you want to be a diamond geezer and polish them up?

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

On Wed, Feb 01, 2017 at 12:05:36PM -0000, Stephen Boddy wrote:
> Yeah, I'm a bit hit and miss with getting the selectors(?) right at the best of times. Doing it blindly for systems with newer software where I can't see the difference will be rather challenging. I'll probably leave it till people who get issues submit patches... unless... ;-) you want to be a diamond geezer and polish them up?

I could try if I knew what the CSS was attempting to do. I'm running
with just the fix in this MP currently, because the problem there is
extreeeeeeeemely obvious, and I don't see any real visual problems.
Presumably something annoyed someone enough in the past that they cooked
up these tweaks though.

I'd like it if you could review/merge this MP and then hopefully I or
someone else comes along and fixes the standalone CSS files in another
one. :)

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

Revision history for this message
Stephen Boddy (stephen-j-boddy) wrote :

No probs. Done.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'terminatorlib/terminator.py'
2--- terminatorlib/terminator.py 2016-12-12 11:27:56 +0000
3+++ terminatorlib/terminator.py 2017-02-01 11:07:57 +0000
4@@ -404,7 +404,8 @@
5 .terminator-terminal-window {
6 background-color: alpha(@theme_bg_color,0); }
7
8- .terminator-terminal-window .notebook.header {
9+ .terminator-terminal-window .notebook.header,
10+ .terminator-terminal-window notebook header {
11 background-color: @theme_bg_color; }
12
13 .terminator-terminal-window .pane-separator {
14@@ -417,7 +418,8 @@
15 # Fix several themes that put a borders, corners, or backgrounds around
16 # viewports, making the titlebar look bad.
17 css += """
18- .terminator-terminal-window GtkViewport {
19+ .terminator-terminal-window GtkViewport,
20+ .terminator-terminal-window viewport {
21 border-width: 0px;
22 border-radius: 0px;
23 background-color: transparent; }
24@@ -485,7 +487,8 @@
25 css = ""
26 if self.config['handle_size'] in xrange(0, 21):
27 css += """
28- .terminator-terminal-window GtkPaned {
29+ .terminator-terminal-window GtkPaned,
30+ .terminator-terminal-window paned {
31 -GtkPaned-handle-size: %s; }
32 """ % self.config['handle_size']
33 style_provider = Gtk.CssProvider()

Subscribers

People subscribed via source and target branches

to status/vote changes: