_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-color: $surface; 202 203frame > border { 204border-style: none; 205} 206 207calendar { 208border-style: none; 209 210&:not(:selected) { 211background-color: transparent; 212} 213 214// Add separator between calendar and location 215+ box { 216margin-top: -5px; 217padding-top: 5px; 218border-top: 1px solid divider($on-surface); 219} 220} 221 222expander > title { 223min-height: 32px; 224} 225 226button { 227@extend %button-flat-basic; 228 229padding: 4px 16px; 230} 231 232// Weird, this sets the border color of the clockmap 233> frame > box > box > box > widget { 234color: divider($on-surface); 235} 236} 237 238na-tray-applet { 239-NaTrayApplet-icon-padding: 3px; 240-NaTrayApplet-icon-size: 16; 241} 242 243// remove right space a bit 244na-tray-applet > widget > box { 245// margin-right: 2px; 246} 247 248// no background for icon-padding area 249na-tray-applet widget box widget { 250// background-color: transparent; 251} 252 253// Classic icon style 254.mate-panel-menu-bar { 255-PanelMenuBar-icon-visible: true; 256} 257 258// volume applet, brightness applet 259.mate-panel-applet-slider { 260border: 1px solid divider($on-surface); 261border-radius: $corner-radius + 1px; 262box-shadow: inset 0 1px highlight($surface); 263background-color: $surface; 264 265frame > border { 266border-style: none; 267} 268} 269 270// mate-menu 271 272// #PanelApplet itself cannot change the background-color 273#PanelApplet { 274&:not(:selected) > box { 275transition: $transition; 276} 277 278&:selected > box { 279background-color: overlay("activated", $on-panel); 280color: $on-panel; 281} 282} 283 284#mate-menu { 285// FIXME, does not work 286border: 1px solid divider($on-surface); 287background-color: $surface; 288 289button { 290@extend %button-flat-basic; 291 292min-height: 24px; 293min-width: 24px; 294padding: 4px 0; 295color: $on-surface; 296font-weight: normal; 297 298&:not(.flat) { 299background-color: overlay("activated", $on-surface); 300} 301 302image, 303label + label { 304color: hint($on-surface); 305} 306} 307 308entry { 309margin: 0 0 4px; 310 311image { 312margin: 0; 313} 314 315+ button { 316margin: 0 4px 4px; 317padding: ($medium-size - 24px) / 2; 318} 319} 320} 321 322// brisk-menu 323.brisk-menu { 324box-shadow: inset 0 1px highlight($surface); 325background-color: $surface; 326 327entry { 328margin-bottom: -2px; 329border-bottom: 1px solid divider($on-surface); 330border-image: none; 331box-shadow: none; 332background-color: transparent; 333} 334 335entry + box > box { 336&:dir(ltr) { 337margin-right: -2px; 338border-right: 1px solid divider($on-surface); 339} 340 341&:dir(rtl) { 342margin-left: -2px; 343border-left: 1px solid divider($on-surface); 344} 345} 346 347.categories-list { 348padding-top: 4px; 349 350button { 351margin: 0 4px; 352 353&:checked { 354background-color: overlay("activated", $primary); 355color: $primary; 356@include ink-color($primary); 357} 358} 359} 360 361.session-button { 362padding: ($large-size - 24px) / 2; 363} 364 365.frame { 366border-style: none; 367} 368 369.apps-list { 370padding: 4px 0; 371background-color: transparent; 372 373row { 374padding: 0; 375 376&:hover { 377box-shadow: none; 378} 379} 380 381button { 382border-radius: 0; 383color: $on-surface; 384font-weight: normal; 385} 386} 387} 388 389/** 390* CAJA File manager 391*/ 392 393// pathbar toggle button 394.caja-navigation-window box.horizontal > button.toggle.image-button { 395@extend %button-flat-activatable; 396 397border-radius: $corner-radius; 398} 399 400// pathbar 401// pathbar buttons 402.caja-pathbar button { 403margin: 0 -1px 0 -2px; 404// padding: 4px; 405 406@extend %pathbar_button; 407 408// NOTE: padding is hard-coded to 0 409&.slider-button { 410min-width: 24px; 411} 412 413// arrow button 414> widget { 415-gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); 416-GtkArrow-arrow-scaling: 1; 417} 418} 419 420// places, treeview, history, information, emblems and notes 421// .caja-side-pane notebook treeview.view, 422// .caja-side-pane notebook textview.view text, 423.caja-side-pane notebook viewport.frame, 424.caja-side-pane notebook widget .vertical { 425background-color: $base; 426} 427 428// treeview rows 429.caja-side-pane treeview.view { 430// padding: 2px 0; 431} 432 433.caja-side-pane notebook, 434.caja-notebook { 435border-top: 1px solid divider($on-surface); 436 437.frame { 438border-style: none; 439} 440} 441 442// window and desktop mode 443.caja-canvas-item { 444border-radius: $corner-radius; 445} 446 447// desktop mode 448.caja-desktop.caja-canvas-item { 449@extend %iconview-desktop; 450} 451 452.caja-desktop EelEditableLabel.entry { 453} 454 455// override https://github.com/mate-desktop/caja/blob/master/data/caja.css 456.caja-desktop.view .entry, 457.caja-navigation-window .view .entry { 458border: none; 459border-radius: $corner-radius; 460background-color: entry-fill($on-surface); 461background-image: none; 462color: $on-surface; 463 464&:selected { 465background-color: $overlay-selected; 466} 467} 468 469.caja-desktop.view .entry { 470background-color: $scrim-alt; 471color: $on-dark; 472text-shadow: $text-shadow; 473caret-color: currentcolor; // this shouldn't be needed. 474 475&:selected { 476// FIXME: this should have light overlay. 477background-color: $overlay-selected; 478} 479} 480 481// statusbar 482.caja-navigation-window statusbar { 483margin: 0 -10px; 484padding: 0 4px; 485border-top: 1px solid divider($on-surface); 486} 487 488// infobar 489 490.caja-notebook frame > border { 491border-style: none; 492} 493 494#caja-extra-view-widget { 495border-bottom: 1px solid divider($on-surface); 496background-color: $base; 497 498> box > box > label { 499font-weight: bold; 500} 501 502button { 503@extend %button-flat; 504 505&:not(:disabled) { 506color: $primary; 507@include ink-color($primary); 508} 509} 510} 511 512/** 513* Pluma 514*/ 515 516// Pluma status bar 517.pluma-window statusbar { 518margin: 0 -10px; 519padding: 0 4px; 520border-top: 1px solid divider($on-surface); 521 522frame { 523> border { 524border-style: none; 525} 526 527button.flat { 528padding: 0 4px; 529border-radius: 0; 530 531widget { 532-gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); 533-GtkArrow-arrow-scaling: 1; 534} 535} 536} 537} 538 539// Printpreview 540.pluma-print-preview { 541toolbar { 542border-bottom: 1px solid divider($on-surface); 543} 544 545scrolledwindow { 546// background-color: $base; 547} 548} 549 550// sidebar file-browser 551.pluma-window paned.horizontal box.vertical { 552box.horizontal button.flat { 553margin: 1px; 554 555@extend %button-small; 556} 557 558.frame { 559border-style: none; 560} 561 562notebook.frame { 563margin-top: -1px; 564border-top: 1px solid divider($on-surface); 565 566box.vertical toolbar.horizontal { 567border-bottom: 1px solid divider($on-surface); 568} 569} 570} 571 572/** 573* Atril 574*/ 575 576.atril-window paned.horizontal box.vertical { 577.frame { 578border-style: none; 579} 580 581notebook .frame { 582border-top: 1px solid divider($on-surface); 583} 584} 585 586/* mate-screensaver lock dialog */ 587 588.lock-dialog { 589border: 1px solid divider($on-surface); 590border-radius: $corner-radius + 1px; 591box-shadow: $shadow-z6, inset 0 1px highlight($surface); // not sure if box-shadow works here 592background-color: $surface; 593 594frame > border { 595border-style: none; 596} 597 598button { 599@extend %button-flat; 600 601&:not(:disabled) { 602color: $primary; 603@include ink-color($primary); 604} 605} 606} 607 608/* multimedia OSD */ 609 610MsdOsdWindow.background.osd { 611border-radius: $corner-radius; 612background-color: $tooltip; 613color: $on-tooltip; 614 615.trough { 616border-radius: 0; 617background-color: disabled-stroke($on-tooltip); 618} 619 620.progressbar { 621border-radius: 0; 622background-color: $on-tooltip; 623} 624 625// For mate-settings-daemon noncomposited osd windows 626&.msd-osd-window-solid { 627} 628} 629