_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-z8); 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: $surface-z0; 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: $surface-z1; 98} 99 100> widget > entry { 101all: unset; 102padding: 0 3px 1px; 103box-shadow: inset 0 0 0 1px $overlay-selected; 104background-color: $surface-z1; 105} 106} 107 108/** 109* Chromium 110*/ 111 112window.background.chromium { 113background-color: $surface-z8; 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 145// For text field 146textview.view { 147background-color: transparent; 148} 149 150// For prominent button, starred icon, etc. 151treeview.view.cell:selected:focus { 152background-color: $primary; 153color: $on-primary; 154} 155 156// For table header 157treeview.view button { 158border: 1px solid stroke($on-surface); 159background-color: $surface-z1; // FIXME: This should not be necessary 160// color: hint($on-surface); 161} 162} 163 164tooltip.background.chromium { 165background-color: rgba($tooltip, 1); 166} 167 168/** 169* Firefox 170*/ 171 172#MozillaGtkWidget { 173> widget { 174// For popover, entry in toolbar, etc. 175text { 176background-color: $surface-z8; 177} 178 179// For selection, active tab indicator, etc. 180text:selected { 181// Use traditional selection style as workaround 182background-color: $primary; 183color: $on-primary; 184} 185 186// For separators in bookmark toolbar 187> separator { 188color: divider($on-surface); 189} 190 191// avoid black border 192> scrollbar { 193// background-clip: border-box; 194} 195 196// Emphasize toolbar's border-bottom 197> frame > border { 198// FIXME: On Wayland, translucent colors don't work well here. 199// See: https://github.com/nana-4/materia-theme/issues/467 200border-color: opacify(stroke($on-surface), $surface-z0); 201} 202 203> entry, 204> button > button { 205border: 1px solid stroke($on-surface); 206border-radius: $corner-radius; 207box-shadow: none; 208 209&:disabled { 210border-color: disabled-stroke($on-surface); 211} 212} 213 214> entry { 215min-height: 32px - 2px; 216background-color: $surface-z1; 217 218&:focus { 219border-color: $primary; 220box-shadow: inset 0 0 0 1px $primary; 221} 222 223&:disabled { 224background-color: $surface-z1; 225} 226} 227 228> button > button { 229padding: 4px 8px; 230 231&:active { 232background-size: 1000% 1000%; 233} 234} 235 236// use 16px assets for hard-coded sizing 237> checkbutton > check { 238@extend %small_check; 239} 240 241> radiobutton > radio { 242@extend %small_radio; 243} 244 245> checkbutton > check, 246> radiobutton > radio { 247margin: 0; 248padding: 0; 249} 250 251// make check/radio visible regardless of whether the background is bright or dark 252> checkbutton > check:not(:checked):not(:indeterminate), 253> radiobutton > radio:not(:checked):not(:indeterminate) { 254color: $grey-600; 255 256&:disabled { 257color: rgba($grey-600, .5); 258} 259} 260} 261 262// remove ugly border around the menus 263menu { 264// FIXME: The ugly border is still needed, since the menu doesn't 265// draw its drop shadow in some environments. See: 266// https://github.com/nana-4/materia-theme/issues/462 267 268// border: none; 269} 270 271// Workaround: Firefox doesn't properly read color from 272// menuitem:disabled, but from menuitem label:disabled. 273menuitem label:disabled { 274color: disabled($on-surface); 275} 276} 277 278// for backward compatibility 279#MozillaGtkWidget { 280> widget { 281> menubar { 282color: hint($on-titlebar); 283 284&:hover { 285color: $on-titlebar; 286} 287 288&:disabled { 289color: disabled-hint($on-titlebar); 290} 291} 292 293> frame { 294color: stroke($on-surface); 295} 296} 297 298menu > separator { 299color: divider($on-surface); 300} 301} 302 303/** 304* Inkscape 305*/ 306 307#ToolboxCommon { 308> #AuxToolbox { 309#StyleSwatch { 310font-size: smaller; 311} 312 313#Kludge { 314padding: 0; 315} 316 317spinbutton, 318entry { 319min-height: 32px; 320} 321 322button:not(.up):not(.down) { 323min-height: 24px; 324min-width: 16px; 325padding: 4px 8px; 326border-radius: $corner-radius; 327} 328 329spinbutton button { 330border-width: 4px; 331} 332} 333 334> toolbar.vertical { 335margin-top: -4px; 336 337button { 338min-height: 24px; 339min-width: 24px; 340padding: 4px; 341border-radius: $corner-radius; 342} 343} 344} 345 346#CanvasTable { 347button { 348min-height: 16px; 349min-width: 16px; 350padding: 0; 351border-radius: 0; 352@extend %button-flat-activatable; 353} 354 355#HorizontalScrollbar { 356border-top: 1px solid divider($on-surface); 357} 358 359#VerticalScrollbar { 360&:dir(ltr) { 361border-left: 1px solid divider($on-surface); 362} 363 364&:dir(rtl) { 365border-right: 1px solid divider($on-surface); 366} 367} 368} 369 370#Canvas_and_Dock { 371frame > border { 372border: none; 373background-color: transparent; 374} 375 376// each canvases' titlebar 377widget > widget { 378> button.flat { 379min-height: 16px; 380min-width: 16px; 381padding: 4px; 382} 383 384> box.horizontal image { 385padding: 4px; 386} 387} 388 389// vertical dock buttons 390box.horizontal > box.vertical > button.flat { 391min-height: 16px; 392min-width: 24px; 393padding: 8px 4px; 394} 395} 396 397/** 398* Synapse 399*/ 400 401box.vertical > widget > widget:selected { 402background-color: $overlay-selected; 403} 404