_misc.scss
ASCII text
1/** 2* Tilix 3*/ 4 5overlay > revealer { 6&.left > scrolledwindow.frame, 7&.right > scrolledwindow.frame { 8border-style: none; 9box-shadow: $shadow-z16; 10} 11 12&.left > scrolledwindow.frame { 13margin-right: 32px; 14} 15 16&.right > scrolledwindow.frame { 17margin-left: 32px; 18} 19} 20 21.terminix-session-sidebar, // for backward compatibility 22.tilix-session-sidebar { 23background-image: image($surface); 24} 25 26.terminal-titlebar button { 27border-radius: 0; 28} 29 30button.image-button.session-new-button { 31min-width: $medium-size - 4px; 32} 33 34// Remove extra padding 35notebook.tilix-background tab > box > stack { 36margin: -6px; 37} 38 39button.flat.tilix-small-button { 40// NOTE: padding is hard-coded with: 41// padding: 2px 4px; 42min-height: $small-size - 2px * 2; 43min-width: $small-size - 4px * 2; 44} 45 46/** 47* Terminator 48*/ 49 50.terminator-terminal-window { 51paned > separator { 52background-color: $background; 53} 54 55// this should be fixed by the upstream 56notebook.frame { 57border-style: none; 58background-color: transparent; 59} 60} 61 62/** 63* Ubitquity 64*/ 65 66#live_installer .menubar progressbar trough { 67border-radius: 4px; // Adjust to hard-coded progress border-radius 68background-color: disabled-stroke($on-titlebar); 69} 70 71/** 72* Eclipse 73*/ 74 75window.background > box.vertical > scrolledwindow > widget toolbar { 76padding: 2px; 77 78separator, 79button { 80margin: 2px; 81} 82 83button { 84border-radius: $corner-radius; 85} 86} 87 88/** 89* FileZilla 90*/ 91 92window.background > box.vertical > widget > widget > widget > widget > widget > widget > widget > scrolledwindow > widget { 93> entry { 94all: unset; 95padding: 5px; 96box-shadow: inset 0 0 0 1px $overlay-selected; 97background-color: $base; 98} 99 100> widget > entry { 101all: unset; 102padding: 0 3px 1px; 103box-shadow: inset 0 0 0 1px $overlay-selected; 104background-color: $base; 105} 106} 107 108/** 109* Chromium 110*/ 111 112window.background.chromium { 113background-color: $surface; 114 115// FIXME: There is no way to change the color of the toolbar buttons 116toolbar button { 117// color: hint($on-surface); 118} 119 120// toolbar's border-bottom refers to button's border 121// FIXME: Chrome's button border ignores theme's alpha value :( 122entry, 123> button { 124border: 1px solid stroke($on-surface); 125} 126 127> button { 128color: $primary; 129 130&:disabled { 131color: disabled-hint($on-surface); 132} 133} 134 135menubar, 136headerbar { 137color: hint($on-titlebar); 138} 139 140// Workaround for non-animatable buttons in headerbar 141headerbar button:active { 142background-color: overlay("pressed", $on-titlebar); 143} 144 145spinner { 146color: $primary; 147} 148 149// For text field 150textview.view { 151background-color: transparent; 152} 153 154// For prominent button, starred icon, etc. 155treeview.view.cell:selected:focus { 156background-color: $primary; 157color: $on-primary; 158} 159 160// For table header 161treeview.view button { 162border: 1px solid stroke($on-surface); 163background-color: $base; // FIXME: This should not be necessary 164// color: hint($on-surface); 165} 166} 167 168tooltip.background.chromium { 169background-color: rgba($tooltip, 1); 170} 171 172/** 173* Firefox 174*/ 175 176#MozillaGtkWidget { 177> widget { 178// For popover, entry in toolbar, etc. 179text { 180background-color: $surface; 181} 182 183// For selection, active tab indicator, etc. 184text:selected { 185// Use traditional selection style as workaround 186background-color: $primary; 187color: $on-primary; 188} 189 190// For separators in bookmark toolbar 191> separator { 192color: divider($on-surface); 193} 194 195// avoid black border 196> scrollbar { 197// background-clip: border-box; 198} 199 200// Emphasize toolbar's border-bottom 201> frame > border { 202// FIXME: On Wayland, translucent colors don't work well here. 203// See: https://github.com/nana-4/materia-theme/issues/467 204border-color: opacify(stroke($on-surface), $background); 205} 206 207> entry, 208> button > button { 209border: 1px solid stroke($on-surface); 210border-radius: $corner-radius; 211box-shadow: none; 212 213&:disabled { 214border-color: disabled-stroke($on-surface); 215} 216} 217 218> entry { 219min-height: 32px - 2px; 220background-color: $base; 221 222&:focus { 223border-color: $primary; 224box-shadow: inset 0 0 0 1px $primary; 225} 226 227&:disabled { 228background-color: $base; 229} 230} 231 232> button > button { 233padding: 4px 8px; 234background-size: auto; 235 236&:hover { 237box-shadow: inset 0 0 0 9999px overlay("hover", $on-surface); 238} 239 240&:active { 241background-image: image(overlay("pressed", $on-surface)); 242} 243} 244 245// use 16px assets for hard-coded sizing 246> checkbutton > check { 247@extend %small_check; 248} 249 250> radiobutton > radio { 251@extend %small_radio; 252} 253 254> checkbutton > check, 255> radiobutton > radio { 256margin: 0; 257padding: 0; 258} 259 260// make check/radio visible regardless of whether the background is bright or dark 261> checkbutton > check:not(:checked):not(:indeterminate), 262> radiobutton > radio:not(:checked):not(:indeterminate) { 263color: $grey-600; 264 265&:disabled { 266color: rgba($grey-600, .5); 267} 268} 269} 270 271// remove ugly border around the menus 272menu { 273// FIXME: The ugly border is still needed, since the menu doesn't 274// draw its drop shadow in some environments. See: 275// https://github.com/nana-4/materia-theme/issues/462 276 277// border: none; 278} 279 280// Workaround: Firefox doesn't properly read color from 281// menuitem:disabled, but from menuitem label:disabled. 282menuitem label:disabled { 283color: disabled($on-surface); 284} 285} 286 287// for backward compatibility 288#MozillaGtkWidget { 289> widget { 290> menubar { 291color: hint($on-titlebar); 292 293&:hover { 294color: $on-titlebar; 295} 296 297&:disabled { 298color: disabled-hint($on-titlebar); 299} 300} 301 302> frame { 303color: stroke($on-surface); 304} 305} 306 307menu > separator { 308color: divider($on-surface); 309} 310} 311 312/** 313* Inkscape 314*/ 315 316#ToolboxCommon { 317> #AuxToolbox { 318#StyleSwatch { 319font-size: smaller; 320} 321 322#Kludge { 323padding: 0; 324} 325 326spinbutton, 327entry { 328min-height: 32px; 329} 330 331button:not(.up):not(.down) { 332min-height: 24px; 333min-width: 16px; 334padding: 4px 8px; 335border-radius: $corner-radius; 336} 337 338spinbutton button { 339border-width: 4px; 340} 341} 342 343> toolbar.vertical { 344margin-top: -4px; 345 346button { 347min-height: 24px; 348min-width: 24px; 349padding: 4px; 350border-radius: $corner-radius; 351} 352} 353} 354 355#CanvasTable { 356button { 357min-height: 16px; 358min-width: 16px; 359padding: 0; 360} 361 362#HorizontalScrollbar { 363border-top: 1px solid divider($on-surface); 364} 365 366#VerticalScrollbar { 367&:dir(ltr) { 368border-left: 1px solid divider($on-surface); 369} 370 371&:dir(rtl) { 372border-right: 1px solid divider($on-surface); 373} 374} 375} 376 377#Canvas_and_Dock { 378frame > border { 379border: none; 380background-color: transparent; 381} 382 383// each canvases' titlebar 384widget > widget { 385> button.flat { 386min-height: 16px; 387min-width: 16px; 388padding: 4px; 389} 390 391> box.horizontal image { 392padding: 4px; 393} 394} 395 396// vertical dock buttons 397box.horizontal > box.vertical > button.flat { 398min-height: 16px; 399min-width: 24px; 400padding: 8px 4px; 401} 402} 403 404/** 405* Synapse 406*/ 407 408box.vertical > widget > widget:selected { 409background-color: $overlay-selected; 410} 411