elementary / dock

A quick app launcher and window switcher for Pantheon and elementary OS
https://elementary.io
GNU General Public License v3.0
88 stars 23 forks source link

Styling: Make Indicators Monochromatic #61

Closed lainsce closed 2 years ago

lainsce commented 4 years ago

Made them monochromatic, and they adapt to any themes! Fixes #30; fixes #100.

Light:

dots

Dark:

dots-dark

lainsce commented 4 years ago

See updated OP, I could make them monochromatic and contrasty!

matfantinel commented 4 years ago

This would fix #30 , thank you!!!

lainsce commented 3 years ago

Good to go!

fabiozaramella commented 3 years ago

@lainsce Can you resolve the conflicts please?

lainsce commented 3 years ago

Will do.

lainsce commented 3 years ago

There we go.

lainsce commented 3 years ago

Because of the decision to go with #85 I am closing this.

meisenzahl commented 3 years ago

@cassidyjames this is the pull request you were looking for. Is this your preferred way?

If there are still adjustments to be made, I'm happy to work on it.

cassidyjames commented 3 years ago

@meisenzahl yes I think unless/until we decide to drop the open indicators completely, we should fix them to be monochrome at least. :smile:

cassidyjames commented 3 years ago

@JoseExposito I think that's actually intended; Plank has a CascadeHide property set to true in the elementary theme; it's described:

Whether background and icons will unhide/hide with different speeds. The top-border of both will leave/hit the screen-edge at the same time.

We should double-check whether this actually changed the behavior from master, or whether it's just more obvious with the higher contrast indicator color.

JoseExposito commented 3 years ago

@cassidyjames it doesn't happen in master:

https://user-images.githubusercontent.com/1335948/125505078-14003e9d-96aa-40cf-bdef-e2a54788e366.mp4

I believe this is because how indicator are drawn now, but @lainsce will know better.

cassidyjames commented 3 years ago

@JoseExposito ah yeah, it looks like the indicators moved from being attached to the icons to animating on their own or something. I agree the behavior in master looks better; we should resolve that.

danirabbit commented 3 years ago

Honestly this seems like a hack. It's trying to work around theme sizing values. If we're going to ignore values, we should just ignore them, not transform them in an unpredictable way

lainsce commented 3 years ago

If I remember correctly, I had to make some changes to some values to make the indicator more visible, and not just a 2×2 dot that hugs the bottom part of the screen as it was when it had the glow look when I removed said glow look.

All in all, if anyone wants to do something better than this, go ahead.

cassidyjames commented 3 years ago

So the root cause seems to be here:

https://github.com/elementary/dock/blob/9150dd81bc3741d76eefee54993d7fc89d8d0d03/lib/DockRenderer.vala#L1009-L1015

Plank is using the deprecated Gtk.StyleContext.get_background_color (). This should probably be updated to use some other method of getting the accent color.

Marukesu commented 3 years ago

Plank is using the deprecated Gtk.StyleContext.get_background_color (). This should probably be updated to use some other method of getting the accent color.

I tried using Gtk.StyleContext.lookup_color (), some examples using master dots:

Light Mode Dark Mode
Blueberry Light Blueberry Dark
Lime Light Lime Dark
Light Mode Dark Mode
Blueberry Light Blueberry Dark
Lime Light Lime Dark

the yellows dots are urgent dots, where i used warning_color.

BAProductions commented 2 years ago

If I remember correctly, I had to make some changes to some values to make the indicator more visible, and not just a 2×2 dot that hugs the bottom part of the screen as it was when it had the glow look when I removed said glow look.

All in all, if anyone wants to do something better than this, go ahead. I have take a look at what I done!!!! https://github.com/elementary/dock/pull/130

rbreaves commented 2 years ago

Whether this PR or the #130 they should probably both parameterize the indicator glow to be on or off. Having said that I have been enjoying this PR for months now.

danirabbit commented 2 years ago

Thanks for this branch! We're doing a fresh rewrite and this pull no longer applies to the new main