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

Fix row:selected buttons #2850

Merged
merged 3 commits into from
May 18, 2021
Merged

Fix row:selected buttons #2850

merged 3 commits into from
May 18, 2021

Conversation

Jupi007
Copy link
Member

@Jupi007 Jupi007 commented May 17, 2021

Capture d’écran du 2021-05-17 15-51-54

I'll do the patch for GTK4 inside the Libadwaita PR to avoid merging clash.

Closes #2847

Copy link
Member

@Feichtmeier Feichtmeier left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, I rather thought about a :not(.circular) selector to only change the radius of all other buttons, shouldnt this be enough?

@Jupi007
Copy link
Member Author

Jupi007 commented May 17, 2021

Sorry I misunderstood your issue 😓
That I fixed here is the action button orange border and the dark icon on selected rows.
I didn't noticed the white outline...

In fact the buttons doesn't use the .circular selector but a .btn_circular, btw in the dev version, it looks like they moved to .circular: bottlesdevs/Bottles@4a2572d#diff-e144420ba74b5637b04111e3de9b54f8c9451a2c626eac32b946b9218bff9a34
That fix your issue :)

@Feichtmeier
Copy link
Member

Oh okay 😊
It's still too much diff in common I think. Can't we somehow leave this in tweaks?

@Jupi007
Copy link
Member Author

Jupi007 commented May 18, 2021

It's still too much diff in common I think. Can't we somehow leave this in tweaks?

The problem is that these lines overwrite the border of all widgets on row:selected. It is very simpler to comment them directly.
Move this to tweaks will need to re-overwrite the border to the default value. But I think it is the better solution if we want one day to drop some tweaks.

Well, stop complaining, I'll try to do this :)

@Feichtmeier
Copy link
Member

Right, okay. Just keep in mind that it needs to stay maintainable. Feel free to merge when you are done

@Feichtmeier
Copy link
Member

I mean, we could also move away from _tweaks completely. If we mark each yaru change in common.

@Jupi007
Copy link
Member Author

Jupi007 commented May 18, 2021

I mean, we could also move away from _tweaks completely. If we mark each yaru change in common.

That could be simpler in some case but more complicated in other case.

Here we have the same problem as the inverted headerbar: if I want to re-overwrite the button border looks to default, I must restyle the whole button stack. So it's really better to just comment some lines in _common.

@Feichtmeier
Copy link
Member

There are several things in _tweaks that are really just nitpicks in my opion and rarely seen in apps, maybe we could have a dedicated discussion on this topic, I would prefer for libadwaita to stop any yaru modifications except _colors.scss

@Jupi007
Copy link
Member Author

Jupi007 commented May 18, 2021

There are several things in _tweaks that are really just nitpicks in my opion and rarely seen in apps, maybe we could have a dedicated discussion on this topic, I would prefer for libadwaita to stop any yaru modifications except _colors.scss

Okay 👍

About this PR, unless you really want to move the patch to _tweaks (but that will need to add a mammoth part of code), I think I'll merge this as it.

@Feichtmeier
Copy link
Member

Yes, go for it

@Jupi007
Copy link
Member Author

Jupi007 commented May 18, 2021

Btw this PR also fix switches in selected rows.

Capture d’écran du 2021-05-18 19-28-39

Closes #2849

@Jupi007 Jupi007 merged commit 077031e into master May 18, 2021
@Jupi007 Jupi007 deleted the fix-row-selected-buttons branch May 18, 2021 17:33
Jupi007 added a commit that referenced this pull request May 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Outline radius on .circular buttons is wrong
2 participants