Merge lp:~danrabbit/egtk/linked-buttons into lp:egtk/1.0

Proposed by Danielle Foré
Status: Merged
Merged at revision: 535
Proposed branch: lp:~danrabbit/egtk/linked-buttons
Merge into: lp:egtk/1.0
Diff against target: 75 lines (+60/-5)
1 file modified
gtk-3.0/gtk-widgets.css (+60/-5)
To merge this branch: bzr merge lp:~danrabbit/egtk/linked-buttons
Reviewer Review Type Date Requested Status
Danielle Foré Approve
Review via email: mp+113683@code.launchpad.net

Description of the change

This branch adds support for "linked" button. This appears in the File Chooser Dialog (the breadcrumb), the back/forward buttons in Epiphany, and I'm sure other places.

To post a comment you must log in.
Revision history for this message
Danielle Foré (danrabbit) wrote :

This branch seems to break button hovers for some reason. Need to investigate

review: Needs Fixing
Revision history for this message
Rico Tzschichholz (ricotz) wrote :
Revision history for this message
Danielle Foré (danrabbit) wrote :

Hm, well not sure what I was talking about hovers since we don't have a hover state currently. So merging and we'll see what breaks :D

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'gtk-3.0/gtk-widgets.css'
2--- gtk-3.0/gtk-widgets.css 2012-07-06 03:36:03 +0000
3+++ gtk-3.0/gtk-widgets.css 2012-07-06 04:04:23 +0000
4@@ -606,11 +606,66 @@
5 background-color: @selected_bg_color
6 }
7
8-
9-
10-
11-
12-
13+/*********
14+* Linked *
15+*********/
16+
17+/* Middle button */
18+.linked .entry,
19+.linked .button,
20+.linked .button:active,
21+.linked .button:active:hover,
22+.linked .button:focus,
23+.linked .button:focus:active,
24+.linked .button:insensitive {
25+ border-right-width: 0;
26+ -unico-outer-stroke-width: 1px 0 1px 0;
27+ border-radius: 0;
28+}
29+
30+/* Leftmost button */
31+.linked .entry:first-child,
32+.linked .button:first-child,
33+.linked .button:active:first-child,
34+.linked .button:active:hover:first-child,
35+.linked .button:focus:first-child,
36+.linked .button:focus:active:first-child,
37+.linked .button:insensitive:first-child {
38+ -unico-outer-stroke-width: 1px 0 1px 1px;
39+ border-bottom-right-radius: 0;
40+ border-top-right-radius: 0;
41+ border-bottom-left-radius: 2.5px;
42+ border-top-left-radius: 2.5px;
43+}
44+
45+/* Rightmost button */
46+.linked .entry:last-child,
47+.linked .button:last-child,
48+.linked .button:active:last-child,
49+.linked .button:active:hover:last-child,
50+.linked .button:focus:last-child,
51+.linked .button:focus:active:last-child,
52+.linked .button:insensitive:last-child {
53+ border-right-width: 1px;
54+ -unico-outer-stroke-width: 1px 1px 1px 0;
55+ border-bottom-right-radius: 2.5px;
56+ border-top-right-radius: 2.5px;
57+ border-bottom-left-radius: 0;
58+ border-top-left-radius: 0;
59+}
60+
61+/* Linked single button */
62+.linked .entry:only-child,
63+.linked .button:only-child,
64+.linked .button:active:only-child,
65+.linked .button:active:hover:only-child,
66+.linked .button:focus:only-child,
67+.linked .button:focus:active:only-child,
68+.linked .button:insensitive:only-child {
69+ border-width: 1px;
70+ -unico-outer-stroke-width: 1px;
71+ border-radius: 2.5px;
72+}
73
74 /****************************************************************************************************
75 ******************************************************* Redo this crap ******************************

Subscribers

People subscribed via source and target branches

to all changes: