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
=== modified file 'gtk-3.0/toolbar.css'
--- gtk-3.0/toolbar.css 2012-08-16 22:17:17 +0000
+++ gtk-3.0/toolbar.css 2013-02-28 21:01:21 +0000
@@ -107,11 +107,12 @@
107 *******************/107 *******************/
108108
109109
110.inline-toolbar.toolbar,110.inline-toolbar.toolbar {
111.inline-toolbar.toolbar .button {
112111
112 -GtkToolbar-button-relief: normal;
113 -unico-inner-stroke-width: 1px;
114 border-width: 0 1px 1px 1px;
113 padding: 0;115 padding: 0;
114
115 -unico-border-gradient: -gtk-gradient (linear,116 -unico-border-gradient: -gtk-gradient (linear,
116 left top, left bottom,117 left top, left bottom,
117 from (shade (@bg_color, 0.70)),118 from (shade (@bg_color, 0.70)),
@@ -123,33 +124,58 @@
123124
124}125}
125126
126.inline-toolbar.toolbar {127GtkPaned .inline-toolbar.toolbar {
127 -GtkToolbar-button-relief: normal;128
128 -unico-inner-stroke-width: 1px;129 border-width: 1px 0 0 0;
129}130 /*FIXME: This should probably use alpha just in case */
130131 background-image: -gtk-gradient (linear, left top, left bottom,
131.inline-toolbar.toolbar,132 from (shade (@bg_color, 0.92)),
132.inline-toolbar.toolbar .button:nth-child(first),133 to (shade (@bg_color, 0.98)));
133.inline-toolbar.toolbar GtkToolButton:nth-child(first) .button {
134 border-width: 0 1px 1px 1px;
135}
136
137.inline-toolbar.toolbar .button:nth-child(first),
138.inline-toolbar.toolbar GtkToolButton:nth-child(first) .button {
139 -unico-inner-stroke-width: 1px 0 1px 1px;
140}134}
141135
142.inline-toolbar.toolbar .button {136.inline-toolbar.toolbar .button {
143 border-width: 0 1px 1px 0;137 border-width: 0 0 0 1px;
144 -unico-inner-stroke-width: 1px 0 1px 0;138 -unico-inner-stroke-width: 0;
145 -unico-outer-stroke-width: 0;139 -unico-outer-stroke-width: 0;
146 -unico-inner-stroke-color: alpha (shade (@theme_bg_color, 1.2), 0.5);
147 -GtkButton-inner-border: 2px 4px 2px 4px;140 -GtkButton-inner-border: 2px 4px 2px 4px;
141 padding: 0;
142 background-image: none;
143 background-color: @transparent;
144}
145
146.inline-toolbar.toolbar .button:active,
147.inline-toolbar.toolbar .button:active:hover {
148
149 background-color: alpha (#000, 0.05);
150 background-image: none;
151
152 -unico-border-gradient: -gtk-gradient (linear,
153 left top, left bottom,
154 from (shade (@base_color, 0.74)),
155 to (shade (@base_color, 0.74)));
156
157 -unico-inner-stroke-gradient: -gtk-gradient (linear,
158 left top, left bottom,
159 from (alpha (#000, 0.07)),
160 to (alpha (#000, 0.03)));
161}
162
163.inline-toolbar.toolbar GtkToolButton:first-child .button,
164.inline-toolbar.toolbar .button:first-child {
165 border-width: 0;
166 -unico-inner-stroke-width: 0;
167}
168
169.inline-toolbar.toolbar GtkToolButton:last-child .button,
170.inline-toolbar.toolbar .button:last-child {
171 border-width: 0 1px 0 1px;
172 border-radius: 0 2px 2px 0;
173 -unico-outer-stroke-width: 0;
148}174}
149175
150.inline-toolbar.toolbar .button *:insensitive,176.inline-toolbar.toolbar .button *:insensitive,
151.inline-toolbar.toolbar .button:insensitive {177.inline-toolbar.toolbar .button:insensitive {
152 background-image: -gtk-gradient (linear, left top, left bottom,178 background-image: none;
153 from (shade (@base_color, 0.86)),179 background-color: alpha (#000, 0.02);
154 to (shade (@base_color, 0.92)));180 color: @insensitive_color;
155}181}

Subscribers

People subscribed via source and target branches

to all changes: