~3v1n0/ubuntu-themes/headerbar-maximized-destructive-suggested-actions

« back to all changes in this revision

Viewing changes to Radiance/gtk-3.20/gtk-widgets.css

  • Committer: Bileto Bot
  • Author(s): Marco Trevisan (Treviño)
  • Date: 2017-10-12 05:18:21 UTC
  • mfrom: (579.1.6 ubuntu-themes)
  • Revision ID: ci-train-bot@canonical.com-20171012051821-s6q9f2lylni9fgf0
Ambiance, Radiance: use toolbar-mode gradients on titlebars for maximized windows (LP: #1717023, #1721440)

Show diffs side-by-side

added added

removed removed

Lines of Context:
285
285
 
286
286
.primary-toolbar .linked button,
287
287
headerbar .linked button {
288
 
    box-shadow: inset 1px 0 shade (@dark_bg_color, 1.4),
 
288
    box-shadow: inset 1px 0 @panel_lighter_color,
289
289
                inset -1px 0 shade (@dark_bg_color, 0.9);
290
290
}
291
291
 
296
296
 
297
297
.primary-toolbar .linked button:last-child,
298
298
headerbar .linked button:last-child {
299
 
    box-shadow: inset 1px 0 shade (@dark_bg_color, 1.4)
 
299
    box-shadow: inset 1px 0 @panel_lighter_color
300
300
}
301
301
 
302
302
.primary-toolbar .linked button:active,
903
903
menu {
904
904
    background-image: none;
905
905
    background-color: shade (@dark_bg_color, 1.08);
906
 
    border-bottom-color: shade (@dark_bg_color, 0.96);
 
906
    border-bottom-color: @panel_darker_color;
907
907
    border-left-color: shade (@dark_bg_color, 0.8);
908
908
    border-right-color: shade (@dark_bg_color, 0.8);
909
 
    border-top-color: shade (@dark_bg_color, 0.96);
 
909
    border-top-color: @panel_darker_color;
910
910
    padding: 0;
911
911
    border-width: 1px;
912
912
    border-style: solid;
2180
2180
}
2181
2181
 
2182
2182
.titlebar:not(headerbar),
2183
 
headerbar:not(.toolbar-mode),
 
2183
headerbar,
2184
2184
UnityDecoration .top {
2185
2185
    min-height: 26px;
2186
2186
    border: 1px solid rgba (85, 40, 0, 0.04); /* shade (@dark_bg_color) (shade (#edebe6, 1.06) */
2201
2201
}
2202
2202
 
2203
2203
.titlebar:not(headerbar):backdrop,
2204
 
headerbar:not(.toolbar-mode):backdrop,
 
2204
headerbar:backdrop,
2205
2205
UnityDecoration .top:backdrop {
2206
2206
    border: 1px solid rgba (110, 27, 0, 0.04); /* shade @dark_bg_color - shade (#edebe6, 0.96) */
2207
2207
    background-color: transparent;
2250
2250
    border: none;
2251
2251
}
2252
2252
 
2253
 
.maximized .titlebar:not(:backdrop):not(.toolbar-mode),
2254
 
.tiled .titlebar:not(:backdrop):not(.toolbar-mode) {
2255
 
    box-shadow: inset 0 1px shade (#edebe6, 1.08);
2256
 
}
2257
 
 
2258
2253
window.csd > .titlebar:not(headerbar) {
2259
2254
    padding: 0;
2260
2255
    background-color: transparent;
2369
2364
 * primary-toolbar *
2370
2365
 *******************/
2371
2366
.primary-toolbar,
 
2367
.maximized .titlebar:not(headerbar),
 
2368
.maximized headerbar,
2372
2369
/* Workaround for LP: #1689239, selects headerbars used as toolbar in Unity */
2373
2370
:not(.titlebar) > headerbar:not(.titlebar),
2374
2371
window.csd.unity-csd.maximized .titlebar,
2376
2373
    -GtkWidget-window-dragging: true;
2377
2374
 
2378
2375
    background-image: -gtk-gradient (linear, left top, left bottom,
2379
 
                                     from (shade (@dark_bg_color, 0.96)),
2380
 
                                     to (shade (@dark_bg_color, 1.4)));
 
2376
                                     from (@panel_darker_color),
 
2377
                                     to (shade (@dark_bg_color, 1.1)));
2381
2378
    border-bottom-color: shade (@dark_bg_color, 1.1);
2382
2379
    border-top-color: shade (@dark_bg_color, 1.09);
2383
2380
    border-style: solid;
2390
2387
    box-shadow: inset 0 1px shade (@dark_bg_color, 0.94);
2391
2388
}
2392
2389
 
 
2390
/* Use a lighter gradient for default (mutter-generated) decorations */
 
2391
.maximized .titlebar.default-decoration:not(:backdrop) {
 
2392
    background-image: -gtk-gradient (linear, left top, left bottom,
 
2393
                                     color-stop (0.1, @panel_darker_color),
 
2394
                                     to (@maximized_header_color));
 
2395
}
 
2396
 
 
2397
.maximized .menubar:not(:backdrop),
 
2398
.maximized menubar:not(:backdrop) {
 
2399
    background-color: @maximized_header_color;
 
2400
}
 
2401
 
2393
2402
.primary-toolbar:backdrop,
 
2403
.maximized .titlebar:not(headerbar):backdrop,
 
2404
.maximized headerbar:backdrop,
2394
2405
/* Workaround for LP: #1689239, selects headerbars used as toolbar in Unity */
2395
2406
:not(.titlebar) > headerbar:not(.titlebar):backdrop,
2396
2407
window.csd.unity-csd.maximized .titlebar:backdrop,
2405
2416
}
2406
2417
 
2407
2418
.primary-toolbar:disabled,
 
2419
.maximized .titlebar:not(headerbar):disabled,
 
2420
.maximized headerbar:disabled,
2408
2421
.titlebar.toolbar-mode:disabled,
2409
2422
window.csd.unity-csd.maximized .titlebar:disabled,
2410
2423
headerbar:disabled {