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