Merge lp:~roryj/egtk/fix-1293012 into lp:~elementary-design/egtk/trunk

Proposed by Rory
Status: Merged
Approved by: Danielle Foré
Approved revision: 341
Merged at revision: 368
Proposed branch: lp:~roryj/egtk/fix-1293012
Merge into: lp:~elementary-design/egtk/trunk
Diff against target: 33 lines (+9/-6)
1 file modified
gtk-3.0/apps.css (+9/-6)
To merge this branch: bzr merge lp:~roryj/egtk/fix-1293012
Reviewer Review Type Date Requested Status
Danielle Foré Needs Fixing
Review via email: mp+232754@code.launchpad.net

Commit message

Add padding to GtkWidget child instead. Fixes bug #1293012.

Description of the change

Add padding to GtkWidget child instead. Fixes bug #1293012.

To post a comment you must log in.
Revision history for this message
Cody Garver (codygarver) wrote :

.panel-app-button is now empty so it can be removed

Revision history for this message
Danielle Foré (danrabbit) wrote :

I definitely don't want to hardcode the padding. Moving forward, we should be setting styles in CSS, not in code. So I don't agree with this branch.

Maybe we can do something with :first/last-child to replace GtkMenuItem-horizontal-padding. But hardcoding the padding is not a good solution, imo

review: Needs Fixing
Revision history for this message
Rory (roryj) wrote :

I understand why you don't want it harcoded - I didn't realise it was possible with CSS but now I know!

I couldn't get :first-child or :last-child to work, so we cannot add extra padding to last indicator on right, however, for the current layout that shouldn't be a problem.

lp:~roryj/egtk/fix-1293012 updated
341. By Rory

Add padding to GtkWidget child instead.

Revision history for this message
Rory (roryj) wrote :

Any reason for not being merged?

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'gtk-3.0/apps.css'
2--- gtk-3.0/apps.css 2014-08-10 03:54:18 +0000
3+++ gtk-3.0/apps.css 2014-09-02 19:32:37 +0000
4@@ -134,14 +134,17 @@
5 background-color: transparent;
6 }
7
8-.panel-app-button {
9- -GtkMenuItem-horizontal-padding: 6px;
10-}
11-
12 .composited-indicator {
13 background-color: transparent;
14 color: #fff;
15- padding: 0 2px;
16+}
17+
18+.composited-indicator > GtkWidget > GtkWidget {
19+ padding: 0 2px;
20+}
21+
22+.panel-app-button > GtkWidget > GtkWidget {
23+ padding: 0 2px 0 4px;
24 }
25
26 .composited-indicator.menuitem:active,
27@@ -223,4 +226,4 @@
28
29 PantheonTerminalPantheonTerminalWindow.background {
30 background-color: transparent;
31-}
32\ No newline at end of file
33+}

Subscribers

People subscribed via source and target branches

to all changes:
to status/vote changes: