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