Warning, /plasma/breeze-gtk/src/gtk3/widgets/_headerbar.scss is written in an unsupported language. File is not indexed.

0001 @charset "UTF-8";
0002 
0003 /***************
0004  * Header bars *
0005  ***************/
0006 
0007 %titlebar,
0008 headerbar {
0009         padding: 0px 6px;
0010         border-width: 0px 0px 1px 0px;
0011         border-radius: 6px 6px 0px 0px;
0012         border-style: solid;
0013         border-color: gtk("@borders");
0014         color: gtk("@theme_titlebar_foreground");
0015         background-image: none;
0016         background-color: gtk("@theme_titlebar_background");
0017         border-top: 1px solid lighter(gtk("@theme_titlebar_background"));
0018 
0019         &:backdrop {
0020                 background-image: none;
0021                 background-color: gtk(
0022                         "@theme_titlebar_background_backdrop"
0023                 );
0024                 color: gtk("@theme_titlebar_foreground_backdrop");
0025                 border-top: 1px solid lighter(gtk("@theme_titlebar_background_backdrop"));
0026                 box-shadow: none;
0027         }
0028         label {
0029                 font-weight: normal;
0030                 &:backdrop {
0031                         color: gtk("@theme_titlebar_foreground_backdrop");
0032                 }
0033         }
0034         .path-bar button {
0035                 color: gtk("@theme_titlebar_foreground");
0036                 font-weight: normal;
0037                 &:backdrop {
0038                         color: gtk("@theme_titlebar_foreground_backdrop");
0039                 }
0040         }
0041         .linked button {
0042                 @include neobutton(normal);
0043         }
0044         button {
0045                 @include neobutton(toolbutton);
0046 
0047                 //ensure we don't have a shadow on headerbar buttons at all
0048                 box-shadow: none;
0049                 color: gtk("@theme_titlebar_foreground");
0050 
0051                 &:hover {
0052                         color: gtk("@theme_titlebar_foreground");
0053                 }
0054 
0055                 &:backdrop {
0056                         background-image: none;
0057                         background-color: gtk(
0058                                 "@theme_titlebar_background_backdrop"
0059                         );
0060                         color: gtk("@theme_titlebar_foreground_backdrop");
0061                 }
0062 
0063                 &.flat:backdrop,
0064                 &.flat:backdrop:disabled,
0065                 &:disabled:backdrop {
0066                         background-image: none;
0067                         background-color: gtk(
0068                                 "@theme_titlebar_background_backdrop"
0069                         );
0070                         color: gtk("@theme_titlebar_foreground_backdrop");
0071                         border-color: transparent;
0072                 }
0073                 &.flat:disabled {
0074                         @extend %undecorated_button;
0075                         color: gtk("@theme_titlebar_foreground_insensitive");
0076                 }
0077                 &:disabled {
0078                         background-color: transparent;
0079                         background-image: none;
0080                         border-color: transparent;
0081                         color: gtk("@theme_titlebar_foreground_insensitive");
0082                 }
0083         }
0084 
0085         .title {
0086                 font-weight: normal;
0087                 padding: 0px 12px;
0088                 &:backdrop {
0089                         color: gtk("@theme_titlebar_foreground_backdrop");
0090                 }
0091         }
0092 
0093         .subtitle {
0094                 font-size: smaller;
0095                 padding: 0 12px;
0096                 @extend .dim-label;
0097                 &:backdrop {
0098                         color: gtk("@theme_titlebar_foreground_backdrop");
0099                 }
0100         }
0101 
0102         separator {
0103                 border-width: 0px;
0104                 background-color: transparent;
0105                 background-image: none;
0106                 border-color: transparent;
0107         }
0108 
0109         &.selection-mode,
0110         &.selection-mode headerbar {
0111                 background-color: gtkmix(
0112                         "@theme_titlebar_background",
0113                         "@theme_button_decoration_focus",
0114                         0.5
0115                 );
0116                 separator {
0117                         background-color: gtk(
0118                                 "@theme_button_decoration_focus"
0119                         );
0120                 }
0121                 button:not(.titlebutton) {
0122                         background-color: gtkalpha(
0123                                 gtk("@theme_button_decoration_focus"),
0124                                 0.5
0125                         );
0126                         &:active,
0127                         &:focus {
0128                                 background-color: gtk(
0129                                         "@theme_button_decoration_focus"
0130                                 );
0131                         }
0132                 }
0133 
0134                 .subtitle:link {
0135                         @extend %link, :selected;
0136                 }
0137 
0138                 .selection-menu {
0139                         padding: 4px 6px;
0140 
0141                         GtkArrow {
0142                                 -GtkArrow-arrow-scaling: 1;
0143                         }
0144 
0145                         .arrow {
0146                                 -gtk-icon-source: -gtk-icontheme($arrow_down);
0147                                 -gtk-icon-shadow: none;
0148                         }
0149                 }
0150         }
0151 
0152         .tiled &,
0153         .maximized & {
0154                 border-radius: 0; // squared corners when the window is max'd or tiled
0155         }
0156 }
0157 
0158 headerbar {
0159         // add vertical margins to headerbar entries, buttons and separators to avoid them spanning the whole height
0160         entry,
0161         spinbutton,
0162         separator,
0163         button {
0164                 margin-top: 8px;
0165                 margin-bottom: 8px;
0166         }
0167 }