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

Open
TaylanTatli opened this Issue May 10, 2014 · 22 comments

Comments

Projects
None yet
10 participants
@TaylanTatli

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

This comment has been minimized.

Show comment
Hide comment
@TaylanTatli

TaylanTatli Jun 21, 2014

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.

TaylanTatli commented Jun 21, 2014

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 infirit added the confirmed label Jun 21, 2014

@infirit

This comment has been minimized.

Show comment
Hide comment
@infirit

infirit Jun 21, 2014

Contributor

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.

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

This comment has been minimized.

Show comment
Hide comment
@TaylanTatli

TaylanTatli Jul 2, 2014

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

TaylanTatli commented Jul 2, 2014

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

@infirit

This comment has been minimized.

Show comment
Hide comment
@infirit

infirit Jul 2, 2014

Contributor

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

Contributor

infirit commented Jul 2, 2014

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

@TaylanTatli

This comment has been minimized.

Show comment
Hide comment
@TaylanTatli

TaylanTatli Jul 2, 2014

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 commented Jul 2, 2014

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

This comment has been minimized.

Show comment
Hide comment
@TaylanTatli

TaylanTatli Jul 2, 2014

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

TaylanTatli commented Jul 2, 2014

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

@infirit

This comment has been minimized.

Show comment
Hide comment
@infirit

infirit Jul 2, 2014

Contributor

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.

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

This comment has been minimized.

Show comment
Hide comment
@TaylanTatli

TaylanTatli Jul 4, 2014

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

TaylanTatli commented Jul 4, 2014

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

@wandersonwhcr

This comment has been minimized.

Show comment
Hide comment
@wandersonwhcr

wandersonwhcr Oct 4, 2014

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 ;)

wandersonwhcr commented Oct 4, 2014

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

This comment has been minimized.

Show comment
Hide comment
@infirit

infirit Oct 6, 2014

Contributor

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

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

This comment has been minimized.

Show comment
Hide comment
@zinovyev

zinovyev Oct 29, 2014

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

zinovyev commented Oct 29, 2014

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

@mrnhmath

This comment has been minimized.

Show comment
Hide comment
@mrnhmath

mrnhmath Nov 15, 2017

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

mrnhmath commented Nov 15, 2017

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

@otwesou

This comment has been minimized.

Show comment
Hide comment
@otwesou

otwesou Nov 15, 2017

@mrnhmath, #617 still applies for me with gtk3. as for this bug, running marco --replace didn't result in a shadow being added for me.

otwesou commented Nov 15, 2017

@mrnhmath, #617 still applies for me with gtk3. as for this bug, running marco --replace didn't result in a shadow being added for me.

@Yupy

This comment has been minimized.

Show comment
Hide comment
@Yupy

Yupy 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?

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

This comment has been minimized.

Show comment
Hide comment
@raveit65

raveit65 Nov 22, 2017

Member

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

Member

raveit65 commented Nov 22, 2017

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

@Dolsilwa

This comment has been minimized.

Show comment
Hide comment
@Dolsilwa

Dolsilwa Apr 14, 2018

Does anybody has any news on panel shadow in MATE?

Dolsilwa commented Apr 14, 2018

Does anybody has any news on panel shadow in MATE?

@Yupy

This comment has been minimized.

Show comment
Hide comment
@Yupy

Yupy 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.

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

This comment has been minimized.

Show comment
Hide comment
@raveit65

raveit65 Apr 14, 2018

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.

Member

raveit65 commented Apr 14, 2018

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

This comment has been minimized.

Show comment
Hide comment
@Dolsilwa

Dolsilwa Apr 15, 2018

@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

Dolsilwa commented Apr 15, 2018

@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

This comment has been minimized.

Show comment
Hide comment
@Yupy

Yupy 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.

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

This comment has been minimized.

Show comment
Hide comment
@raveit65

raveit65 Jun 29, 2018

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);
}
Member

raveit65 commented Jun 29, 2018

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

This comment has been minimized.

Show comment
Hide comment
@lukefromdc

lukefromdc Jun 29, 2018

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.

Member

lukefromdc commented Jun 29, 2018

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.

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