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