Skip to content
This repository has been archived by the owner on Jan 22, 2022. It is now read-only.

Add dim background color to select element popup #294

Open
wants to merge 1 commit into
base: xenial
Choose a base branch
from

Conversation

giiba
Copy link

@giiba giiba commented Feb 14, 2020

First, thanks to @lduboeuf for this implementation! This is a great looking way to handle these menus, much easier to interact with than the tiny box that shows up in Demo Browser.

However I am curious why the dimming of the background was disabled? On a white page it makes the select dialogue look very undefined... I think at a minimum there should be a border to define the popup, or just letting the site be dimmed which I personally like.

My suggestion:
screenshot20200214_071231219

As exists now:
screenshot20200214_074419061

I know there is a slight border, but it doesn't feel like enough. Just a suggestion.

First, thanks to @lduboeuf for this implementation! This is a great looking way to handle these menus, much easier to interact with than the tiny box that shows up in Demo Browser.

However I am curious why the dimming of the background was disabled? On a white page it makes the select dialogue look very undefined... I think at a minimum there should be a border to define the popup, or just letting the site be dimmed which I personally like.

Pictures to follow.
@lduboeuf
Copy link
Contributor

lduboeuf commented Mar 1, 2020

We should ask UX team if ok with default opaque bg color for dropdown, this was only my personnal opinion. cc @cibersheep ?

Or we need to change Popup component in ui toolkit a bit to allow the background customization.

@cibersheep
Copy link
Contributor

Interesting question. The default opacity depends on the size of the screen. On mobile is too dark to see what we are selecting in the pop up but it's the standard behaviour (the toolkit expects it underneath that's why the border is so subtle).

Eather go with standard or as lduboeuf says: a less dark layer

@lduboeuf
Copy link
Contributor

lduboeuf commented Mar 2, 2020

@cibersheep , see PR ubports/ubuntu-ui-toolkit#68 for allowing customization of the background color

@cibersheep
Copy link
Contributor

I don't think we should let change the color of the background dim but the opacity.

@lduboeuf
Copy link
Contributor

lduboeuf commented Mar 2, 2020

@cibersheep why not ? If any apps ( others than the core ones ) want to play with a different style, as we can both set color and opacity with the color property

@cibersheep
Copy link
Contributor

I see your point. I might have been too afraid of people :)

@lduboeuf
Copy link
Contributor

@Gliba, could you please edit the PR title to be more precise, e.g "add dim background color to dropdowns" ?

@giiba giiba changed the title Style change... Add dim background color to select element popup Mar 18, 2020
@kugiigi
Copy link
Contributor

kugiigi commented Jul 5, 2020

Old PR but can't we use Popup/Dialog from qqc2? I think they are more flexible and the dimming isn't as opaque as in UITK. Actually, this is more of a general question because I have things in mind where I intend to use qqc2 instead of UITK.

@dobey
Copy link
Member

dobey commented Oct 16, 2020

Is this good too merge @cibersheep ?

@cibersheep
Copy link
Contributor

We have changed the SuruDark Dialog colors recently ubports/ubuntu-ui-toolkit#98
I think the dim background could behave like the one under the Dialog

@dobey
Copy link
Member

dobey commented Dec 18, 2020

We have changed the SuruDark Dialog colors recently ubports/ubuntu-ui-toolkit#98
I think the dim background could behave like the one under the Dialog

Can you please update the branch in this PR according to this comment @giiba ? Thanks.

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.

5 participants