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