_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 204 205// border-color: stroke($on-surface); 206border-color: opacify(stroke($on-surface), $background); 207} 208 209> entry, 210> button > button { 211border: 1px solid stroke($on-surface); 212border-radius: $corner-radius; 213box-shadow: none; 214 215&:disabled { 216border-color: disabled-stroke($on-surface); 217} 218} 219 220> entry { 221min-height: 32px - 2px; 222background-color: $base; 223 224&:focus { 225border-color: $primary; 226box-shadow: inset 0 0 0 1px $primary; 227} 228 229&:disabled { 230background-color: $base-alt; 231} 232} 233 234> button > button { 235padding: 4px 8px; 236background-size: auto; 237 238&:hover { 239box-shadow: inset 0 0 0 9999px overlay("hover", $on-surface); 240} 241 242&:active { 243background-image: image(overlay("pressed", $on-surface)); 244} 245} 246 247// use 16px assets for hard-coded sizing 248> checkbutton > check { 249@extend %small_check; 250} 251 252> radiobutton > radio { 253@extend %small_radio; 254} 255 256> checkbutton > check, 257> radiobutton > radio { 258margin: 0; 259padding: 0; 260} 261 262// make check/radio visible regardless of whether the background is bright or dark 263> checkbutton > check:not(:checked):not(:indeterminate), 264> radiobutton > radio:not(:checked):not(:indeterminate) { 265color: $grey-600; 266 267&:disabled { 268color: rgba($grey-600, .5); 269} 270} 271} 272 273// remove ugly border around the menus 274menu { 275// FIXME: The ugly border is still needed, since the menu doesn't 276// draw its drop shadow in some environments. See: 277// https://github.com/nana-4/materia-theme/issues/462 278 279// border: none; 280} 281 282// Workaround: Firefox doesn't properly read color from 283// menuitem:disabled, but from menuitem label:disabled. 284menuitem label:disabled { 285color: disabled($on-surface); 286} 287} 288 289// for backward compatibility 290#MozillaGtkWidget { 291> widget { 292> menubar { 293color: hint($on-titlebar); 294 295&:hover { 296color: $on-titlebar; 297} 298 299&:disabled { 300color: disabled-hint($on-titlebar); 301} 302} 303 304> frame { 305color: stroke($on-surface); 306} 307} 308 309menu > separator { 310color: divider($on-surface); 311} 312} 313 314/** 315* Inkscape 316*/ 317 318#ToolboxCommon { 319> #AuxToolbox { 320#StyleSwatch { 321font-size: smaller; 322} 323 324#Kludge { 325padding: 0; 326} 327 328spinbutton, 329entry { 330min-height: 32px; 331} 332 333button:not(.up):not(.down) { 334min-height: 24px; 335min-width: 16px; 336padding: 4px 8px; 337border-radius: $corner-radius; 338} 339 340spinbutton button { 341border-width: 4px; 342} 343} 344 345> toolbar.vertical { 346margin-top: -4px; 347 348button { 349min-height: 24px; 350min-width: 24px; 351padding: 4px; 352border-radius: $corner-radius; 353} 354} 355} 356 357#CanvasTable { 358button { 359min-height: 16px; 360min-width: 16px; 361padding: 0; 362} 363 364#HorizontalScrollbar { 365border-top: 1px solid divider($on-surface); 366} 367 368#VerticalScrollbar { 369&:dir(ltr) { 370border-left: 1px solid divider($on-surface); 371} 372 373&:dir(rtl) { 374border-right: 1px solid divider($on-surface); 375} 376} 377} 378 379#Canvas_and_Dock { 380frame > border { 381border: none; 382background-color: transparent; 383} 384 385// each canvases' titlebar 386widget > widget { 387> button.flat { 388min-height: 16px; 389min-width: 16px; 390padding: 4px; 391} 392 393> box.horizontal image { 394padding: 4px; 395} 396} 397 398// vertical dock buttons 399box.horizontal > box.vertical > button.flat { 400min-height: 16px; 401min-width: 24px; 402padding: 8px 4px; 403} 404} 405 406/** 407* Synapse 408*/ 409 410box.vertical > widget > widget:selected { 411background-color: $overlay-selected; 412} 413