When using the vertical Gin toolbar the environment indicator is very subtle. There is a narrow strip of colour down the left side of the toolbar, and the drupal icon changes to the environment colour. Adding an additional colour indicator to the link in the secondary toolbar would improve visibility, and shouldn't detract from Gin's nice design if you choose complementary colours for your environments.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Peacog created an issue. See original summary.

peacog’s picture

Status: Active » Needs review
StatusFileSize
new8.08 KB
new6.75 KB

The MR adds the proposed change. It looks like this:

Wide screens

Gin environment indicator

Narrow screens

Gin environment indicator

thomas.frobieter’s picture

Issue summary: View changes
StatusFileSize
new20.39 KB

I think the style has changed in meantime?

I'd suggest to preserve the great design, something like this:

thomas.frobieter’s picture

StatusFileSize
new9.39 KB

Oh, lol. Didn't noticed, this is already the exact implementation. We just switched to the modern Gin bar.

So @Peacog, what do you think? Can we close this?

peacog’s picture

StatusFileSize
new16.88 KB

Hi @thomas.frobieter. The patch is to improve visibility when you're using the sidebar, vertical toolbar. With the vertical toolbar the indicator color strip is down the left side of the screen, not across the top. It looks like this (without the patch)

Gin environment indicator

It doesn't stand out much and is easy to miss on a busy screen.

thomas.frobieter’s picture

Assigned: Unassigned » thomas.frobieter
Status: Needs review » Needs work
StatusFileSize
new22.3 KB

True, so lets colorize the menu item like suggested! I'll update the issue fork.

thomas.frobieter’s picture

damienmckenna’s picture

The other issue was committed, so this work can continue now.

metalbote’s picture

I stumbled across the following small flaw with the bottom border radius, my commit fixes it.

Current:
bottom radius not wellbottom radius not well

After:
bottom radius not well
Hovered version, and within will be same as before.

trackleft2’s picture

Please check out the refactoring of how libraries add style for the environment indicator in #3467210: Update module to use CSS variables instead of adding inline CSS via Javascript., and possibly review that MR. Any changes here, will also need to be done there.

dieterholvoet changed the visibility of the branch 4.x to hidden.

trackleft2’s picture

Status: Needs work » Needs review

trackleft2 changed the visibility of the branch 3362940-improve-visibility-when-tugboat to hidden.

trackleft2’s picture

Status: Needs review » Fixed

This fix has been rolled into #3467210: Update module to use CSS variables instead of adding inline CSS via Javascript. which has been merged into the 4.x branch and is soon to be released as part of 4.1.0-alpha1 and this release plan #3468997: [META] Release Plan for Environment Indicator Minor (feature) Release 4.1.0.

I've updated !127 with the latest version of 4.x (4.x includes the improvements discussed here in this issue).

Additionally I've moved credit for this issue over to #3467210: Update module to use CSS variables instead of adding inline CSS via Javascript. and created a tugboat build on this issue for easier review. Tugboat builds expire after a few days.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.