_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 { 274border: none; 275} 276 277// Workaround: Firefox doesn't properly read color from 278// menuitem:disabled, but from menuitem label:disabled. 279menuitem label:disabled { 280color: disabled($on-surface); 281} 282} 283 284// for backward compatibility 285#MozillaGtkWidget { 286> widget { 287> menubar { 288color: hint($on-titlebar); 289 290&:hover { 291color: $on-titlebar; 292} 293 294&:disabled { 295color: disabled-hint($on-titlebar); 296} 297} 298 299> frame { 300color: stroke($on-surface); 301} 302} 303 304menu > separator { 305color: divider($on-surface); 306} 307} 308 309/** 310* Inkscape 311*/ 312 313#ToolboxCommon { 314> #AuxToolbox { 315#StyleSwatch { 316font-size: smaller; 317} 318 319#Kludge { 320padding: 0; 321} 322 323spinbutton, 324entry { 325min-height: 32px; 326} 327 328button:not(.up):not(.down) { 329min-height: 24px; 330min-width: 16px; 331padding: 4px 8px; 332border-radius: $corner-radius; 333} 334 335spinbutton button { 336border-width: 4px; 337} 338} 339 340> toolbar.vertical { 341margin-top: -4px; 342 343button { 344min-height: 24px; 345min-width: 24px; 346padding: 4px; 347border-radius: $corner-radius; 348} 349} 350} 351 352#CanvasTable { 353button { 354min-height: 16px; 355min-width: 16px; 356padding: 0; 357} 358 359#HorizontalScrollbar { 360border-top: 1px solid divider($on-surface); 361} 362 363#VerticalScrollbar { 364&:dir(ltr) { 365border-left: 1px solid divider($on-surface); 366} 367 368&:dir(rtl) { 369border-right: 1px solid divider($on-surface); 370} 371} 372} 373 374#Canvas_and_Dock { 375frame > border { 376border: none; 377} 378 379// each canvases' titlebar 380widget > widget { 381> button.flat { 382min-height: 16px; 383min-width: 16px; 384padding: 4px; 385} 386 387> box.horizontal image { 388padding: 4px; 389} 390} 391 392// vertical dock buttons 393box.horizontal > box.vertical > button.flat { 394min-height: 16px; 395min-width: 24px; 396padding: 8px 4px; 397} 398} 399 400/** 401* Synapse 402*/ 403 404box.vertical > widget > widget:selected { 405background-color: $overlay-selected; 406} 407