dbeck121 / CPI-Helper-Chrome-Extension

53 stars 18 forks source link

Color Issue Fix #179

Closed DevGregor closed 3 months ago

DevGregor commented 3 months ago

image

DevGregor commented 3 months ago

changed the default button background to this (same color as in the gray tenant color option): image

DevGregor commented 3 months ago

Made fixed text color for the outerFrame in the message sidebar (fixes issues e.g. when SAP Dark CPI Addon overwrites it): image image

DevGregor commented 3 months ago

Hello @incpi I have almost no issues when using both CPI Helper and SAP Dark anymore with this PR but there is one thing that still needs to be fixed...

CPI Helper sets the background color (in default tenant color white) and SAP Dark sets the text color (evening horizon) of the tool header. Becuase both colors are very bright it looks like this: image

SAP Dark seems to set the background color before CPI Helper does it, thus, CPI Helper will overwrite the background color of SAP Dark resulting in what you can see on the screenshot above.

How should we go about this? I guess in CPI Helper we need to set the text color to black by default?

dbeck121 commented 3 months ago

@DevGregor I would go with setting black as default.

I pull to have this in the new 3.13.0 version.

incpi commented 3 months ago

Hello @DevGregor / @dbeck121,

We might need to revert this

This Fix has bugs as you mentioned, additionally I don't think this a good way to fix it. it is totally work around not a proper solution.

      if(color == "#ffffff"){
        root.style.setProperty('--button-active-color', "#767676");
      }else{
        root.style.setProperty('--button-active-color', color);
      }

here let's say i am doing a #fffffe then?

<div id="outerFrame" style="color: black;"> // see below mention issues..

issues

We can't directly go with black here. Hold till these fixes are done. Thanks Omkar

DevGregor commented 3 months ago

Hello @DevGregor / @dbeck121,

We might need to revert this

This Fix has bugs as you mentioned, additionally I don't think this a good way to fix it. it is totally work around not a proper solution.

     if(color == "#ffffff"){
       root.style.setProperty('--button-active-color', "#767676");
     }else{
       root.style.setProperty('--button-active-color', color);
     }

here let's say i am doing a #fffffe then?

<div id="outerFrame" style="color: black;"> // see below mention issues..

issues

  • Dark mode (with header color as black) image image image

We can't directly go with black here. Hold till these fixes are done. Thanks Omkar

Hello @incpi But we removed the black tenant color option? At least in the current DEV it is already removed.

incpi commented 3 months ago

we can set via option by selection right...

DevGregor commented 3 months ago

Here the color options by version: 1.12.1 (current) image 1.13.0 image