Skip to content
This repository was archived by the owner on May 23, 2025. It is now read-only.

Make "Up" and "Overflow" menu icons more visible in AccountProfile - #3272

Merged
connyduck merged 4 commits into
tuskyapp:developfrom
nikclayton:profile-visible-icons
Feb 23, 2023
Merged

Make "Up" and "Overflow" menu icons more visible in AccountProfile#3272
connyduck merged 4 commits into
tuskyapp:developfrom
nikclayton:profile-visible-icons

Conversation

@nikclayton

@nikclayton nikclayton commented Feb 6, 2023

Copy link
Copy Markdown
Contributor

The toolbar in AccountProfile is transparent, so any profile image the user has chosen is shown under it.

This makes the "Up" and "Overflow" menu icons also have transparent backgrounds.

Consequently, they can be hard to spot, or possibly invisible, on backgrounds that are very dark or very light.

Fix this by compositing the icons in a LayerDrawable, with a circular background identical to the surface colour. This ensures they stand out against the background image, and blend in when the user scrolls.

Fixes #2723

The toolbar in AccountProfile is transparent, so any profile image the user
has chosen is shown under it.

This makes the "Up" and "Overflow" menu icons also have transparent
backgrouns.

Consequently, they can be hard to spot, or possibly invisible, on backgrounds
that are very dark or very light.

Fix this by compositing the icons in a LayerDrawable, with a circular
background identical to the surface colour. This ensures they stand out
against the background image, and blend in when the user scrolls.

@connyduck connyduck left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice! Would it be possible to have a bit of transparency on the background?

Comment thread app/src/main/java/com/keylesspalace/tusky/components/account/AccountActivity.kt Outdated
@nikclayton

Copy link
Copy Markdown
Contributor Author

Nice! Would it be possible to have a bit of transparency on the background?

A bit, but not much. It's very easy to go too transparent and then on pathological backgrounds everything ends up camouflaged again.

@connyduck
connyduck merged commit 70092c8 into tuskyapp:develop Feb 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Three-dots-menu (hamburger menu) not easily visible depending on background pic of account

2 participants