_mate.scss
ASCII text
1// Based on: 2// https://github.com/mate-desktop/mate-themes/blob/master/desktop-themes/Menta/gtk-3.0/mate-applications.css 3 4@use "../../../theme"; 5@use "../../../theme-color"; 6@use "../../../shadow"; 7@use "../common"; 8@use "../drawing"; 9 10/** 11* Mate-Panel 12*/ 13 14// first make all transparent 15.mate-panel-menu-bar menubar, 16#PanelApplet-window-menu-applet-button { 17background-color: transparent; 18} 19 20// let's start it 21.mate-panel-menu-bar { 22background-color: theme-color.$panel; 23color: theme-color.hint(theme-color.$on-panel); 24font-weight: 500; 25 26button { 27min-height: 16px; 28min-width: 16px; 29padding: 0; // NOTE: Most buttons padding are hard-coded to 0 (except for hide buttons) 30border-radius: 0; 31color: theme-color.hint(theme-color.$on-panel); 32@include drawing.ink-color(theme-color.$on-panel, $button-style: "flat"); 33 34&:disabled { 35background-color: transparent; 36color: theme-color.disabled-hint(theme-color.$on-panel); 37} 38 39&:checked { 40$background-color: theme-color.activated-overlay(theme-color.$on-panel); 41color: theme-color.$on-panel; 42@include drawing.ink-color(theme-color.$on-panel, $button-style: "flat", $on: $background-color); 43 44&:disabled { 45background-color: theme-color.activated-overlay(theme-color.$on-panel); 46color: theme-color.disabled(theme-color.$on-panel); 47} 48} 49} 50} 51 52// hide buttons 53PanelToplevel.horizontal > grid > button { 54min-width: 24px; 55} 56 57PanelToplevel.vertical > grid > button { 58min-height: 24px; 59} 60 61#PanelApplet { 62// border-width: 0; 63} 64 65PanelSeparator { 66color: theme-color.divider(theme-color.$on-panel); 67} 68 69// the grid left from na-tray and wncktasklist 70MatePanelAppletFrameDBus > MatePanelAppletFrameDBus { 71background-image: 72repeating-linear-gradient( 73currentcolor, 74currentcolor 4px, 75transparent 4px, 76transparent 6px 77); 78background-repeat: no-repeat; 79background-size: 4px 10px; 80color: theme-color.disabled-hint(theme-color.$on-panel); 81 82&:dir(ltr) { 83background-position: 3px; 84} 85 86&:dir(rtl) { 87background-position: calc(100% - 3px); 88} 89} 90 91// main menu 92.mate-panel-menu-bar { 93// set normal menubar button 94menubar > menuitem { 95color: theme-color.hint(theme-color.$on-panel); 96 97&:hover { 98background-color: theme-color.activated-overlay(theme-color.$on-panel); 99color: theme-color.$on-panel; 100} 101 102&:disabled { 103color: theme-color.disabled-hint(theme-color.$on-panel); 104} 105} 106 107&.horizontal menubar > menuitem { 108padding: 0 8px; 109} 110 111&.vertical menubar > menuitem { 112padding: 8px 0; 113} 114 115// set normal menubar menuitem 116menubar menu > menuitem { 117// adjust sizing since the menuitem has large icons 118min-height: theme.$menu-item-dense-height; 119padding: 0 6px; 120// font-weight: initial; 121} 122} 123 124// all applets 125.mate-panel-menu-bar #PanelApplet button { 126-GtkWidget-window-dragging: true; 127// padding: 4px; 128} 129 130.mate-panel-menu-bar #tasklist-button { 131border-image: 132radial-gradient( 133circle closest-corner at center calc(100% - 1px), 134currentcolor 0%, 135transparent 0% 136) 0 0 0 / 0 0 0; 137 138&:checked { 139border-image: 140radial-gradient( 141circle closest-corner at center calc(100% - 1px), 142currentcolor 100%, 143transparent 0% 144) 0 0 2 / 0 0 2px; 145} 146 147// instead of #tasklist-button { padding: 0 4px; } 148image:dir(ltr), 149label:dir(rtl) { 150padding-left: 4px; 151} 152 153label:dir(ltr), 154image:dir(rtl) { 155padding-right: 4px; 156} 157} 158 159// #tasklist-button is always horizontal even if the panel is vertical 160.mate-panel-menu-bar.vertical #tasklist-button { 161min-height: 32px; 162} 163 164#showdesktop-button { 165.mate-panel-menu-bar.horizontal & image { 166min-width: 24px; 167padding: 0 4px; 168} 169 170.mate-panel-menu-bar.vertical & image { 171min-height: 24px; 172padding: 4px 0; 173} 174} 175 176// WnckPager 177PanelApplet.wnck-applet .wnck-pager { 178background-color: transparent; 179color: theme-color.primary(theme-color.$on-panel); 180 181&:hover { 182background-color: theme-color.hover-overlay(theme-color.$on-panel); 183} 184 185&:active { 186background-color: theme-color.pressed-overlay(theme-color.$on-panel); 187} 188 189&:selected { 190background-color: theme-color.$primary; 191} 192} 193 194#clock-applet-button { 195.mate-panel-menu-bar.horizontal & label { 196padding: 0 8px; 197} 198 199.mate-panel-menu-bar.vertical & label { 200padding: 8px 0; 201} 202} 203 204#MatePanelPopupWindow { 205border: 1px solid theme-color.divider(theme-color.$on-surface); 206border-radius: theme.$corner-radius + 1px; 207box-shadow: inset 0 1px theme-color.highlight(theme-color.$surface-z8); 208background-clip: padding-box; 209background-color: theme-color.$surface-z8; 210 211frame > border { 212border-style: none; 213background-color: transparent; 214} 215 216calendar { 217border-style: none; 218 219&:not(:selected) { 220background-color: transparent; 221} 222 223// Add separator between calendar and location 224+ box { 225margin-top: -5px; 226padding-top: 5px; 227border-top: 1px solid theme-color.divider(theme-color.$on-surface); 228} 229} 230 231expander > title { 232min-height: 32px; 233} 234 235button { 236@extend %button-flat-basic; 237 238padding: 4px 16px; 239} 240 241// Weird, this sets the border color of the clockmap 242> frame > box > box > box > widget { 243color: theme-color.divider(theme-color.$on-surface); 244} 245} 246 247na-tray-applet { 248-NaTrayApplet-icon-padding: 3px; 249-NaTrayApplet-icon-size: 16; 250} 251 252// remove right space a bit 253na-tray-applet > widget > box { 254// margin-right: 2px; 255} 256 257// no background for icon-padding area 258na-tray-applet widget box widget { 259// background-color: transparent; 260} 261 262// Classic icon style 263.mate-panel-menu-bar { 264-PanelMenuBar-icon-visible: true; 265} 266 267// volume applet, brightness applet 268.mate-panel-applet-slider { 269border: 1px solid theme-color.divider(theme-color.$on-surface); 270border-radius: theme.$corner-radius + 1px; 271box-shadow: inset 0 1px theme-color.highlight(theme-color.$surface-z8); 272background-clip: padding-box; 273background-color: theme-color.$surface-z8; 274 275frame > border { 276border-style: none; 277background-color: transparent; 278} 279} 280 281// mate-menu 282 283// #PanelApplet itself cannot change the background-color 284#PanelApplet { 285&:not(:selected) > box { 286transition: theme.$transition; 287} 288 289&:selected > box { 290background-color: theme-color.activated-overlay(theme-color.$on-panel); 291color: theme-color.$on-panel; 292} 293} 294 295#mate-menu { 296// FIXME, does not work 297border: 1px solid theme-color.divider(theme-color.$on-surface); 298box-shadow: inset 0 1px theme-color.highlight(theme-color.$surface-z8); 299background-clip: padding-box; 300background-color: theme-color.$surface-z8; 301 302button { 303@extend %button-flat-basic; 304 305min-height: 24px; 306min-width: 24px; 307padding: 4px 0; 308color: theme-color.$on-surface; 309font-weight: normal; 310 311&:not(.flat) { 312background-color: theme-color.activated-overlay(theme-color.$on-surface); 313} 314 315image, 316label + label { 317color: theme-color.hint(theme-color.$on-surface); 318} 319} 320 321entry { 322margin: 0 0 4px; 323 324image { 325margin: 0; 326} 327 328+ button { 329margin: 0 4px 4px; 330padding: (theme.$medium-size - 24px) / 2; 331} 332} 333} 334 335// brisk-menu 336.brisk-menu { 337box-shadow: inset 0 1px theme-color.highlight(theme-color.$surface-z8); 338background-color: theme-color.$surface-z8; 339 340entry { 341margin-bottom: -2px; 342border-bottom: 1px solid theme-color.divider(theme-color.$on-surface); 343border-image: none; 344box-shadow: none; 345background-color: transparent; 346} 347 348entry + box > box { 349&:dir(ltr) { 350margin-right: -2px; 351border-right: 1px solid theme-color.divider(theme-color.$on-surface); 352} 353 354&:dir(rtl) { 355margin-left: -2px; 356border-left: 1px solid theme-color.divider(theme-color.$on-surface); 357} 358} 359 360.categories-list { 361padding-top: 4px; 362 363button { 364margin: 0 4px; 365} 366} 367 368.session-button { 369padding: (theme.$large-size - 24px) / 2; 370} 371 372.frame { 373border-style: none; 374background-color: transparent; 375} 376 377.apps-list { 378padding: 4px 0; 379background-color: transparent; 380 381row { 382padding: 0; 383 384&:hover { 385box-shadow: none; 386} 387} 388 389button { 390border-radius: 0; 391color: theme-color.$on-surface; 392font-weight: normal; 393} 394} 395} 396 397/** 398* CAJA File manager 399*/ 400 401// pathbar toggle button 402.caja-navigation-window box.horizontal > button.toggle.image-button { 403@extend %button-flat-activatable; 404 405border-radius: theme.$corner-radius; 406} 407 408// pathbar 409// pathbar buttons 410.caja-pathbar button { 411margin: 0 -1px 0 -2px; 412// padding: 4px; 413 414@extend %pathbar_button; 415 416// NOTE: padding is hard-coded to 0 417&.slider-button { 418min-width: 24px; 419} 420 421// arrow button 422> widget { 423-gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); 424-GtkArrow-arrow-scaling: 1; 425} 426} 427 428// places, treeview, history, information, emblems and notes 429// .caja-side-pane notebook treeview.view, 430// .caja-side-pane notebook textview.view text, 431.caja-side-pane notebook viewport.frame, 432.caja-side-pane notebook widget .vertical { 433// background-color: $surface-z1; 434} 435 436// treeview rows 437.caja-side-pane treeview.view { 438// padding: 2px 0; 439} 440 441.caja-side-pane notebook, 442.caja-notebook { 443border-top: 1px solid theme-color.divider(theme-color.$on-surface); 444 445.frame { 446border-style: none; 447background-color: transparent; 448} 449} 450 451// window and desktop mode 452.caja-canvas-item { 453border-radius: theme.$corner-radius; 454} 455 456// desktop mode 457.caja-desktop.caja-canvas-item { 458@extend %iconview-desktop; 459} 460 461.caja-desktop EelEditableLabel.entry { 462} 463 464// override https://github.com/mate-desktop/caja/blob/master/data/caja.css 465.caja-desktop.view .entry, 466.caja-navigation-window .view .entry { 467border: none; 468border-radius: theme.$corner-radius; 469background-color: theme-color.entry-fill(theme-color.$on-surface); 470background-image: none; 471color: theme-color.$on-surface; 472 473&:selected { 474background-color: theme-color.$selected-overlay; 475} 476} 477 478.caja-desktop.view .entry { 479background-color: theme-color.$scrim-alt; 480color: theme-color.$on-dark; 481text-shadow: shadow.$text-shadow; 482caret-color: currentcolor; // this shouldn't be needed. 483 484&:selected { 485// FIXME: this should have light overlay. 486background-color: theme-color.$selected-overlay; 487} 488} 489 490// statusbar 491.caja-navigation-window statusbar { 492margin: 0 -10px; 493padding: 0 4px; 494border-top: 1px solid theme-color.divider(theme-color.$on-surface); 495} 496 497// infobar 498 499.caja-notebook frame > border { 500border-style: none; 501background-color: transparent; 502} 503 504#caja-extra-view-widget { 505border-bottom: 1px solid theme-color.divider(theme-color.$on-surface); 506// background-color: $surface-z1; 507 508> box > box > label { 509font-weight: bold; 510} 511 512button { 513@extend %button-flat; 514 515&:not(:disabled) { 516color: theme-color.$primary; 517@include drawing.ink-color(theme-color.$primary, $button-style: "flat"); 518} 519} 520} 521 522/** 523* Pluma 524*/ 525 526// Pluma status bar 527.pluma-window statusbar { 528margin: 0 -10px; 529padding: 0 4px; 530border-top: 1px solid theme-color.divider(theme-color.$on-surface); 531 532frame { 533> border { 534border-style: none; 535background-color: transparent; 536} 537 538button.flat { 539padding: 0 4px; 540border-radius: 0; 541 542widget { 543-gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); 544-GtkArrow-arrow-scaling: 1; 545} 546} 547} 548} 549 550// Printpreview 551.pluma-print-preview { 552toolbar { 553border-bottom: 1px solid theme-color.divider(theme-color.$on-surface); 554} 555 556scrolledwindow { 557// background-color: $surface-z1; 558} 559} 560 561// sidebar file-browser 562.pluma-window paned.horizontal box.vertical { 563box.horizontal button.flat { 564margin: 1px; 565 566@extend %button-small; 567} 568 569.frame { 570border-style: none; 571background-color: transparent; 572} 573 574notebook.frame { 575margin-top: -1px; 576border-top: 1px solid theme-color.divider(theme-color.$on-surface); 577 578box.vertical toolbar.horizontal { 579border-bottom: 1px solid theme-color.divider(theme-color.$on-surface); 580} 581} 582} 583 584/** 585* Atril 586*/ 587 588.atril-window paned.horizontal box.vertical { 589.frame { 590border-style: none; 591background-color: transparent; 592} 593 594notebook .frame { 595border-top: 1px solid theme-color.divider(theme-color.$on-surface); 596} 597} 598 599/* mate-screensaver lock dialog */ 600 601.lock-dialog { 602border: 1px solid theme-color.divider(theme-color.$on-surface); 603border-radius: theme.$corner-radius + 1px; 604box-shadow: shadow.$z6, inset 0 1px theme-color.highlight(theme-color.$surface-z8); // not sure if box-shadow works here 605background-clip: padding-box; 606background-color: theme-color.$surface-z8; 607 608frame > border { 609border-style: none; 610background-color: transparent; 611} 612 613button { 614@extend %button-flat; 615 616&:not(:disabled) { 617color: theme-color.$primary; 618@include drawing.ink-color(theme-color.$primary, $button-style: "flat"); 619} 620} 621} 622 623/* multimedia OSD */ 624 625MsdOsdWindow.background.osd { 626border-radius: theme.$corner-radius; 627background-color: theme-color.$tooltip; 628color: theme-color.$on-tooltip; 629 630.trough { 631border-radius: 0; 632background-color: theme-color.disabled-stroke(theme-color.$on-tooltip); 633} 634 635.progressbar { 636border-radius: 0; 637background-color: theme-color.$on-tooltip; 638} 639 640// For mate-settings-daemon noncomposited osd windows 641&.msd-osd-window-solid { 642} 643} 644