_misc.scss
ASCII text
1@use "sass:color"; 2@use "../../../theme"; 3@use "../../../theme-color"; 4@use "../../../shadow"; 5@use "../../../color-palette"; 6@use "../common"; 7 8/** 9* Tilix 10*/ 11 12overlay > revealer { 13&.left > scrolledwindow.frame, 14&.right > scrolledwindow.frame { 15border-style: none; 16box-shadow: shadow.$z16; 17} 18 19&.left > scrolledwindow.frame { 20margin-right: 32px; 21} 22 23&.right > scrolledwindow.frame { 24margin-left: 32px; 25} 26} 27 28.terminix-session-sidebar, // for backward compatibility 29.tilix-session-sidebar { 30background-image: image(theme-color.$surface-z8); 31} 32 33.terminal-titlebar button { 34border-radius: 0; 35} 36 37button.image-button.session-new-button { 38min-width: theme.$medium-size - 4px; 39} 40 41// Remove extra padding 42notebook.tilix-background tab > box > stack { 43margin: -6px; 44} 45 46button.flat.tilix-small-button { 47// NOTE: padding is hard-coded with: 48// padding: 2px 4px; 49min-height: theme.$small-size - 2px * 2; 50min-width: theme.$small-size - 4px * 2; 51} 52 53/** 54* Terminator 55*/ 56 57.terminator-terminal-window { 58paned > separator { 59background-color: theme-color.$surface-z0; 60} 61 62// this should be fixed by the upstream 63notebook.frame { 64border-style: none; 65background-color: transparent; 66} 67} 68 69/** 70* Ubitquity 71*/ 72 73#live_installer .menubar progressbar trough { 74border-radius: 4px; // Adjust to hard-coded progress border-radius 75background-color: theme-color.disabled-stroke(theme-color.$on-titlebar); 76} 77 78/** 79* Eclipse 80*/ 81 82window.background > box.vertical > scrolledwindow > widget toolbar { 83padding: 2px; 84 85separator, 86button { 87margin: 2px; 88} 89 90button { 91border-radius: theme.$corner-radius; 92} 93} 94 95/** 96* FileZilla 97*/ 98 99window.background > box.vertical > widget > widget > widget > widget > widget > widget > widget > scrolledwindow > widget { 100> entry { 101all: unset; 102padding: 5px; 103box-shadow: inset 0 0 0 1px theme-color.$selected-overlay; 104background-color: theme-color.$surface-z1; 105} 106 107> widget > entry { 108all: unset; 109padding: 0 3px 1px; 110box-shadow: inset 0 0 0 1px theme-color.$selected-overlay; 111background-color: theme-color.$surface-z1; 112} 113} 114 115/** 116* Chromium 117*/ 118 119window.background.chromium { 120background-color: theme-color.$surface-z8; 121 122// FIXME: There is no way to change the color of the toolbar buttons 123toolbar button { 124// color: hint($on-surface); 125} 126 127// toolbar's border-bottom refers to button's border 128// FIXME: Chrome's button border ignores theme's alpha value :( 129entry, 130> button { 131border: 1px solid theme-color.stroke(theme-color.$on-surface); 132} 133 134> button { 135color: theme-color.$primary; 136 137// Source: https://github.com/heldplayer/materia-theme-custom/commit/93af85f1c775745e46f92673bc55edf39b179579 138$this-border-color: theme-color.stroke(theme-color.$on-surface); 139border-color: color.mix(rgba($this-border-color, 1), theme-color.$surface-z8, color.alpha($this-border-color) * 100%); 140 141&:disabled { 142color: theme-color.disabled-hint(theme-color.$on-surface); 143} 144} 145 146menubar, 147headerbar { 148color: theme-color.hint(theme-color.$on-titlebar); 149} 150 151// Workaround for non-animatable buttons in headerbar 152headerbar button:active { 153background-color: theme-color.pressed-overlay(theme-color.$on-titlebar); 154} 155 156// For text field 157textview.view { 158background-color: transparent; 159} 160 161// For prominent button, starred icon, etc. 162treeview.view.cell:selected:focus { 163background-color: theme-color.$primary; 164color: theme-color.$on-primary; 165} 166 167// For table header 168treeview.view button { 169border: 1px solid theme-color.stroke(theme-color.$on-surface); 170background-color: theme-color.$surface-z1; // FIXME: This should not be necessary 171// color: hint($on-surface); 172} 173} 174 175tooltip.background.chromium { 176background-color: rgba(theme-color.$tooltip, 1); 177} 178 179/** 180* Firefox 181*/ 182 183#MozillaGtkWidget { 184> widget { 185// For popover, entry in toolbar, etc. 186text { 187background-color: theme-color.$surface-z8; 188} 189 190// For selection, active tab indicator, etc. 191text:selected { 192// Use traditional selection style as workaround 193background-color: theme-color.$primary; 194color: theme-color.$on-primary; 195} 196 197// For separators in bookmark toolbar 198> separator { 199color: theme-color.divider(theme-color.$on-surface); 200} 201 202// avoid black border 203> scrollbar { 204// background-clip: border-box; 205} 206 207// Emphasize toolbar's border-bottom 208> frame > border { 209// FIXME: On Wayland, translucent colors don't work well here. 210// See: https://github.com/nana-4/materia-theme/issues/467 211border-color: theme-color.opacify(theme-color.stroke(theme-color.$on-surface), theme-color.$surface-z0); 212} 213 214> entry, 215> button > button { 216border: 1px solid theme-color.stroke(theme-color.$on-surface); 217border-radius: theme.$corner-radius; 218box-shadow: none; 219 220&:disabled { 221border-color: theme-color.disabled-stroke(theme-color.$on-surface); 222} 223} 224 225> entry { 226min-height: 32px - 2px; 227background-color: theme-color.$surface-z1; 228 229&:focus { 230border-color: theme-color.$primary; 231box-shadow: inset 0 0 0 1px theme-color.$primary; 232} 233 234&:disabled { 235background-color: theme-color.$surface-z1; 236} 237} 238 239> button > button { 240padding: 4px 8px; 241 242&:active { 243background-size: 1000% 1000%; 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: color-palette.$grey-600; 266 267&:disabled { 268color: rgba(color-palette.$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: theme-color.disabled(theme-color.$on-surface); 286} 287} 288 289// for backward compatibility 290#MozillaGtkWidget { 291> widget { 292> menubar { 293color: theme-color.hint(theme-color.$on-titlebar); 294 295&:hover { 296color: theme-color.$on-titlebar; 297} 298 299&:disabled { 300color: theme-color.disabled-hint(theme-color.$on-titlebar); 301} 302} 303 304> frame { 305color: theme-color.stroke(theme-color.$on-surface); 306} 307} 308 309menu > separator { 310color: theme-color.divider(theme-color.$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: theme.$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: theme.$corner-radius; 353} 354} 355} 356 357#CanvasTable { 358button { 359min-height: 16px; 360min-width: 16px; 361padding: 0; 362border-radius: 0; 363@extend %button-flat-activatable; 364} 365 366#HorizontalScrollbar { 367border-top: 1px solid theme-color.divider(theme-color.$on-surface); 368} 369 370#VerticalScrollbar { 371&:dir(ltr) { 372border-left: 1px solid theme-color.divider(theme-color.$on-surface); 373} 374 375&:dir(rtl) { 376border-right: 1px solid theme-color.divider(theme-color.$on-surface); 377} 378} 379} 380 381#Canvas_and_Dock { 382frame > border { 383border: none; 384background-color: transparent; 385} 386 387// each canvases' titlebar 388widget > widget { 389> button.flat { 390min-height: 16px; 391min-width: 16px; 392padding: 4px; 393} 394 395> box.horizontal image { 396padding: 4px; 397} 398} 399 400// vertical dock buttons 401box.horizontal > box.vertical > button.flat { 402min-height: 16px; 403min-width: 24px; 404padding: 8px 4px; 405} 406} 407 408/** 409* Synapse 410*/ 411 412box.vertical > widget > widget:selected { 413background-color: theme-color.$selected-overlay; 414} 415