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