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