Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mate Panel Shadow #193

Closed
TaylanTatli opened this issue May 10, 2014 · 22 comments
Closed

Mate Panel Shadow #193

TaylanTatli opened this issue May 10, 2014 · 22 comments

Comments

@TaylanTatli
Copy link

TaylanTatli commented May 10, 2014

Mate panel shadow not working on startup. But when i run "marco --replace" it's working.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/2092432-mate-panel-shadow?utm_campaign=plugin&utm_content=tracker%2F314880&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F314880&utm_medium=issues&utm_source=github).
@TaylanTatli
Copy link
Author

Is there any app startup order while system starting? Because if panel start before marco, then shadow works but if marco start before panel, then shadow not working.

@infirit
Copy link
Contributor

infirit commented Jun 21, 2014

There isn't but you can delay the panel for a second or two to allow Marco some time.
in mate-panel.desktop change
X-MATE-Autostart-Phase=Panel to X-MATE-Autostart-Phase=Applications
and then add X-MATE-Autostart-Delay=1.

You may want to play around with the delay and increase it as needed.

@TaylanTatli
Copy link
Author

which desktop file? in /usr/share/applications ? btw, mate-panel have to run first and then marco will run.

@infirit
Copy link
Contributor

infirit commented Jul 2, 2014

Modify whichever one you want to delay, if you want to delay marco update mate-wm.desktop.

@TaylanTatli
Copy link
Author

Thank you but can you say location of this file? Because i don't have that file, searched it. There is marco.desktop in /usr/share/applications/.

@TaylanTatli
Copy link
Author

btw, why i need to change X-MATE-Autostart-Phase?

@infirit
Copy link
Contributor

infirit commented Jul 2, 2014

The name may differ between distro but mate-wm is the same as marco so edit /usr/share/applications/marco.desktop

You need to change the autostart phase because the autostart delay is only allowed in the applications phase.

@TaylanTatli
Copy link
Author

Thank you my panel is ok now. Really thank you. :)

@wandersonwhcr
Copy link

It works for me too.

I installed Debian 7.6.0 + Mate from backports and value of X-MATE-Autostart-Phase was WindowManager. I changed the value and it works like a charm.

Thanks ;)

@infirit
Copy link
Contributor

infirit commented Oct 6, 2014

Did some searching and it looks like this is a old metacity bug, https://bugzilla.gnome.org/show_bug.cgi?id=516088

@zinovyev
Copy link

Thank you really so much! My Mate looks great now!=)

@mrnhmath
Copy link

Is this still relevant with GTK3 release? Or can it be closed in #617 favour and vice-versa?

@Yupy
Copy link

Yupy commented Nov 22, 2017

Not working anymore with GTK3 thats why I ditched the MATE desktop I hate that flat look.

I've tried many many ways to make it appear even with compiz doesen't appear.

Ikey from Solus did a pull request: #593 this might help?

@raveit65
Copy link
Member

And there are open questions with this PR.......

@Dolsilwa
Copy link

Does anybody has any news on panel shadow in MATE?

@Yupy
Copy link

Yupy commented Apr 14, 2018

@Dolsilwa, I doubt they will ever put back the panel shadow, is a bad choice they removed it :( this made me stop using the MATE DE.

That flat look with some darker wallpapers you can barely see it when the themes have a darker color.

@raveit65
Copy link
Member

Guys, do you really think we removed it on purpose ?
This is a fallout from switch to gtk+3.
If someone have an idea to fix it we'll include the fix shortly.
Fixes are welcome.....
But if this is a reason for to use another desktop, please do.
Sorry, we can't help you at the moment.

@Dolsilwa
Copy link

@Yupy You can add panel shadow in MATE through Compton, but it's not a perfect solution (when you maximize an app, panel shadow is drawn on window titlebar).

@raveit65 I know that it was not removed on purpose :-) I know that it's gtk3 transparency fault (or so i understand). And i was just curious, because year ago there were some ideas and some commits done to bring back panel shadow. Right now i'm adding artificial shadow directly to wallpaper (in Gimp), so it's not an issue that would make me stop using MATE :-) MATE is most vesatile GTK-based DE, and is my favourite. That being said, MATE lacks a bit in "looks" department. Right now, the best default look has Solus, partly because when panel is only at the bottom of desktop, you don't need panel shadow. But Ubuntu-MATE (which i use) looks a bit ugly with flat, shadow-less panel at the top of desktop. But with panel shadow, default Ubuntu-MATE just looks a lot better (Ubuntu-MATE 16.10 below).

zrzut ekranu w 2018-04-15 17-12-16

@Yupy
Copy link

Yupy commented Apr 15, 2018

I tought the panel shadow was removed because people are starting to adopt the flat look.

Is not a reason to move to other DE (still using Ubuntu-MATE on my main machine and other DE on my work machine) but doesen't fit with some wallpers and themes and this causes inconsistecy IMO.

@raveit65
Copy link
Member

With that commit c4aedbd
An example css for Menta and other light themes which can be used in
~.config/gtk-3.0/gtk.css

.mate-panel-menu-bar.horizontal.top > grid {
    border-style: outset;
    border-width: 0px 0px 1px 0px;
    border-color: rgba(0, 0, 0, 0.23);
}

.mate-panel-menu-bar.horizontal.bottom > grid {
    border-style: outset;
    border-width: 1px 0px 0px 0px;
    border-color: rgba(0, 0, 0, 0.23);
}

.mate-panel-menu-bar.vertical.left > grid {
    border-style: outset;
    border-width: 0px 1px 0px 0px;
    border-color: rgba(0, 0, 0, 0.23);
}

.mate-panel-menu-bar.vertical.right > grid {
    border-style: outset;
    border-width: 0px 0px 0px 1px;
    border-color: rgba(0, 0, 0, 0.23);
}

@lukefromdc
Copy link
Member

A true shadow can't be rendered on the panel's window as the window does not extend beyond the panel ( _GTK_FRAME_EXTENT value zero or maybe not defined). This suggested workaround uses a border to simulate a shadow and should work. A fit fancier would be to screenshot a desired shadow on some other window, and in GIMP or a similar program cut out just the top, bottom, left, and right shadows and save samples of each as .png files. These could then be used to define an image border that would look exactly like a shadow because it is a screenshot of a shadow. That's how i copied theme elements between GTK2 and GTK3.

@raveit65
Copy link
Member

Closing, not posts since years.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

10 participants