Merge lp:~danrabbit/egtk/inline-toolbar-refactor into lp:egtk/1.0

Proposed by Danielle Foré
Status: Superseded
Proposed branch: lp:~danrabbit/egtk/inline-toolbar-refactor
Merge into: lp:egtk/1.0
Diff against target: 98 lines (+49/-23)
1 file modified
gtk-3.0/toolbar.css (+49/-23)
To merge this branch: bzr merge lp:~danrabbit/egtk/inline-toolbar-refactor
Reviewer Review Type Date Requested Status
Danielle Foré Needs Fixing
Cassidy James Blaede Needs Information
Review via email: mp+149688@code.launchpad.net

This proposal has been superseded by a proposal from 2013-02-28.

Description of the change

This branch refactors inline toolbars to use transparent buttons (like we just did for spinbutton).

It also adds a fix that makes inline toolbars look nice when they're being used in a sourcelist (as seen in footnote).

To post a comment you must log in.
587. By Danielle Foré

preserve selection style in album list view

Revision history for this message
Cassidy James Blaede (cassidyjames) wrote :

There's no active style; is that intended?

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

oops you're right. My bad xD

review: Needs Fixing
Revision history for this message
Cassidy James Blaede (cassidyjames) wrote :

Yay code reviews for catching this stuff! ;)
On Feb 21, 2013 3:29 AM, "Daniel Fore" <email address hidden> wrote:

> Review: Needs Fixing
>
> oops you're right. My bad xD
> --
>
> https://code.launchpad.net/~danrabbit/egtk/inline-toolbar-refactor/+merge/149688
> You are reviewing the proposed merge of
> lp:~danrabbit/egtk/inline-toolbar-refactor into lp:egtk.
>

588. By Danielle Foré

active states for inline toolbar buttons

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'gtk-3.0/toolbar.css'
2--- gtk-3.0/toolbar.css 2012-08-16 22:17:17 +0000
3+++ gtk-3.0/toolbar.css 2013-02-28 21:01:21 +0000
4@@ -107,11 +107,12 @@
5 *******************/
6
7
8-.inline-toolbar.toolbar,
9-.inline-toolbar.toolbar .button {
10+.inline-toolbar.toolbar {
11
12+ -GtkToolbar-button-relief: normal;
13+ -unico-inner-stroke-width: 1px;
14+ border-width: 0 1px 1px 1px;
15 padding: 0;
16-
17 -unico-border-gradient: -gtk-gradient (linear,
18 left top, left bottom,
19 from (shade (@bg_color, 0.70)),
20@@ -123,33 +124,58 @@
21
22 }
23
24-.inline-toolbar.toolbar {
25- -GtkToolbar-button-relief: normal;
26- -unico-inner-stroke-width: 1px;
27-}
28-
29-.inline-toolbar.toolbar,
30-.inline-toolbar.toolbar .button:nth-child(first),
31-.inline-toolbar.toolbar GtkToolButton:nth-child(first) .button {
32- border-width: 0 1px 1px 1px;
33-}
34-
35-.inline-toolbar.toolbar .button:nth-child(first),
36-.inline-toolbar.toolbar GtkToolButton:nth-child(first) .button {
37- -unico-inner-stroke-width: 1px 0 1px 1px;
38+GtkPaned .inline-toolbar.toolbar {
39+
40+ border-width: 1px 0 0 0;
41+ /*FIXME: This should probably use alpha just in case */
42+ background-image: -gtk-gradient (linear, left top, left bottom,
43+ from (shade (@bg_color, 0.92)),
44+ to (shade (@bg_color, 0.98)));
45 }
46
47 .inline-toolbar.toolbar .button {
48- border-width: 0 1px 1px 0;
49- -unico-inner-stroke-width: 1px 0 1px 0;
50+ border-width: 0 0 0 1px;
51+ -unico-inner-stroke-width: 0;
52 -unico-outer-stroke-width: 0;
53- -unico-inner-stroke-color: alpha (shade (@theme_bg_color, 1.2), 0.5);
54 -GtkButton-inner-border: 2px 4px 2px 4px;
55+ padding: 0;
56+ background-image: none;
57+ background-color: @transparent;
58+}
59+
60+.inline-toolbar.toolbar .button:active,
61+.inline-toolbar.toolbar .button:active:hover {
62+
63+ background-color: alpha (#000, 0.05);
64+ background-image: none;
65+
66+ -unico-border-gradient: -gtk-gradient (linear,
67+ left top, left bottom,
68+ from (shade (@base_color, 0.74)),
69+ to (shade (@base_color, 0.74)));
70+
71+ -unico-inner-stroke-gradient: -gtk-gradient (linear,
72+ left top, left bottom,
73+ from (alpha (#000, 0.07)),
74+ to (alpha (#000, 0.03)));
75+}
76+
77+.inline-toolbar.toolbar GtkToolButton:first-child .button,
78+.inline-toolbar.toolbar .button:first-child {
79+ border-width: 0;
80+ -unico-inner-stroke-width: 0;
81+}
82+
83+.inline-toolbar.toolbar GtkToolButton:last-child .button,
84+.inline-toolbar.toolbar .button:last-child {
85+ border-width: 0 1px 0 1px;
86+ border-radius: 0 2px 2px 0;
87+ -unico-outer-stroke-width: 0;
88 }
89
90 .inline-toolbar.toolbar .button *:insensitive,
91 .inline-toolbar.toolbar .button:insensitive {
92- background-image: -gtk-gradient (linear, left top, left bottom,
93- from (shade (@base_color, 0.86)),
94- to (shade (@base_color, 0.92)));
95+ background-image: none;
96+ background-color: alpha (#000, 0.02);
97+ color: @insensitive_color;
98 }

Subscribers

People subscribed via source and target branches

to all changes: