aboutsummaryrefslogtreecommitdiff
path: root/common/gtk-3.0/3.14/_transparent_widgets.scss
blob: 1238b47e93e1c51b52153797ba3cd2d4db89b938 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
.titlebar .separator {
  color: $header_border;  //fixes separator in gnome-tweak-tool
}

GtkFileChooserDialog .dialog-action-box { background-color: $bg_color }  // fix for non gnome environments

NemoWindow GtkEventBox { background-color: $bg_color; } // fixes nemo statusbar

GtkFileChooserDialog *,
NautilusWindow *,
NemoWindow {
  -GtkPaned-handle-size: 0;
}

@if $variant==dark {
  GtkFileChooserDialog,
  NautilusWindow ,
  NemoWindow {
    .sidebar { border-right: 1px solid $dark_sidebar_border; }

    .sidebar:dir(rtl) { border-left: 1px solid $dark_sidebar_border; }
  }
}

// Dark transparent sidebars
GtkFileChooserDialog,
NautilusWindow,
NemoWindow,
MarlinViewWindow {

  &.csd.background,
  .source-list, .source-list.view, .source-list.view:prelight { background-color: transparent; }

  GtkBox.sidebar { background-color: transparent; }

  .sidebar, MarlinPlacesSidebar {
    background-color: $dark_sidebar_bg;

    .view, .source-list.sidebar row {
      background-color: transparent;
      color: $dark_sidebar_fg;

      &.image { color: transparentize($dark_sidebar_fg, 0.4); }

      &.cell:selected {
        background-color: $selected_bg_color;
        color: $selected_fg_color;
      }
    }

    &.frame {
      color: $dark_sidebar_fg;
    }

    .separator { color: transparent; }

    .scrollbar {

      &.trough { background-color: transparent; border-color: transparent; }

      &.slider {
        border-radius: 20px;
        border: 3px solid transparent; //margin :/
        background-color: transparentize(lighten($dark_sidebar_fg, 15%), 0.3);
        &:hover {
          background-color: lighten($dark_sidebar_fg, 20%);
        }
        &:prelight:active {
          background-color: $selected_bg_color;
        }
        &.fine-tune {
          border-width: 4px;
          &:prelight:active {
            background-color: $selected_bg_color;
          }
        }
        &:insensitive {
          background-color: transparent;
        }
      }
    }
  }
  &.maximized .sidebar { background-color: opacify($dark_sidebar_bg, 1); }

  .pane-separator { background-color: $dark_sidebar_border; }
}

// Yeah, this is ugly, but prevents a transparent background in the image preview box
GtkFileChooserDialog GtkPaned > .vertical > .horizontal { background-color: $bg_color; }

// Gedit sidebar
GeditWindow.background.csd {
  background-color: transparent;

  .pane-separator,
  .pane-separator:hover { background-color: $dark_sidebar_border; }

  .titlebar .pane-separator,
  &.maximized .titlebar .pane-separator,
  .titlebar .pane-separator:backdrop,
  &.maximized .titlebar .pane-separator:backdrop { background-color: $header_border; }

  .titlebar { background-color: transparent; }

  &.maximized .titlebar {
    background-color: opacify($header_bg, 1);

    &:backdrop { background-color: $header_bg_backdrop; }
  }

  .gedit-titlebar-left.titlebar,
  .gedit-titlebar-right.titlebar {
    background-color: $header_bg;

    &:backdrop { background-color: $header_bg_backdrop; }
  }
}

.gedit-bottom-panel-paned { background-color: $base_color; }

.gedit-document-panel {
  background-color: $dark_sidebar_bg;

  .maximized & { background-color: opacify($dark_sidebar_bg, 1); }

  .list-row { color: $dark_sidebar_fg; }

  .list-row {
    background-color: transparentize($dark_sidebar_fg, 1);
    border: solid transparentize($dark_sidebar_fg, 1);
    border-width: 3px 2px 3px 2px;
  }
  .list-row:hover {
    border: solid transparentize($dark_sidebar_fg, 0.85);
    border-width: 3px 2px 3px 2px;
    background-color: transparentize($dark_sidebar_fg, 0.85);
  }
  .list-row:active {
    color: $selected_fg_color;
    background-color: $selected_bg_color;
    border: solid $selected_bg_color;
    border-width: 3px 2px 3px 2px;

    .button { color: $selected_fg_color; }
  }
  .list-row:selected, .list-row:selected:hover {
    color: $selected_fg_color;
    background-color: $selected_bg_color;
    border: solid $selected_bg_color;
    border-width: 3px 2px 3px 2px;
  }
  .prelight-row .button:active {
    color: $dark_sidebar_fg;
  }
}

GeditWindow.background.csd GeditFileBrowserWidget {
  background-color: $dark_sidebar_bg;

  .maximized & { background-color: opacify($dark_sidebar_bg, 1); }

  .scrollbar {

    &.trough { background-color: transparent; border-color: transparent; }

    &.slider {
      border-radius: 20px;
      border: 3px solid transparent; //margin :/
      background-color: transparentize(lighten($dark_sidebar_fg, 15%), 0.3);
      &:hover {
        background-color: lighten($dark_sidebar_fg, 20%);
      }
      &:prelight:active {
        background-color: $selected_bg_color;
      }
      &.fine-tune {
        border-width: 4px;
        &:prelight:active {
          background-color: $selected_bg_color;
        }
      }
      &:insensitive {
        background-color: transparent;
      }
    }
  }

  .scrollbars-junction,
  .scrollbars-junction.frame { // the small square between two scrollbars
    border-color: transparent;
    background-color: transparent;
  }

  .horizontal {
    background-color: transparent;
    border-color: darken($dark_sidebar_bg, 7%);

    .button {
      @include button(undecorated);
      color: $dark_sidebar_fg;
      border: 1px solid transparent;

      &:hover { border: 1px solid $selected_bg_color; }
      &:active, &:checked { @include button(active); }
      &:insensitive { color: transparentize($dark_sidebar_fg, 0.6); }
    }
    GtkComboBox { color: $dark_sidebar_fg; }
  }
}

GeditWindow.background.csd GeditFileBrowserView.view {

  background-color: transparent;
  color: $dark_sidebar_fg;

  &.expander {
    color: $dark_sidebar_fg;
    &:hover { color: $selected_bg_color; }
  }
}

// Filechooser bottom bar
GtkFileChooserDialog .action-bar.frame {
  background-color: darken($dark_sidebar_bg, 2%);
  border-color: if($variant =='light', darken($dark_sidebar_bg, 7%), darken($dark_sidebar_bg, 15%));

  GtkLabel { color: $dark_sidebar_fg; }

  .button {
    @include button(undecorated);

    &:hover { border: 1px solid $selected_bg_color; }
    &:active, &:checked {
      border: 1px solid $selected_bg_color;
      color: $selected_fg_color;
      background-color: $selected_bg_color;
    }
    &:insensitive { color: transparentize($dark_sidebar_fg, 0.6); }
  }

  GtkComboBox { color: $dark_sidebar_fg; }
}