Addresses #97 by increasing the floor and decreasing the ceiling for the offset value used for brightening darker colors in dark mode and darkening brighter colors in light mode. This tones down aggressiveness and doesn't brighten colors as much at lower transparency.base values, while also increasing effectiveness at values closer to opaque where before it would set the offset to 0 when the bar was set to opaque.
Not extensively tested, especially not light mode color schemes. It still heavily alters the colors but from my testing this alteration is definitely necessary for readability and general aesthetics. There's an argument to be made to possibly disable/alter the offset calculation based on if a preset is selected/automatic scheme generation is turned on. Let me know your thoughts after testing.
If you want to test what happens when you disable this method without breaking the whole shell, you can edit the method like this:
functionalterColor(c:color,a:real,layer:int):color{constinitLuminance=getLuminance(c);constluminance=Math.max(initLuminance,0.001);constoffset=(!light||layer==1?1:-layer/2)*(light?0.2:0.3)*(0.2+0.3*(1-transparency.base))*(1+wallLuminance*(light?(layer==1?3:1):2.5));// const r = Math.max(0, Math.min(1, c.r * scale));
// const g = Math.max(0, Math.min(1, c.g * scale));
// const b = Math.max(0, Math.min(1, c.b * scale));
constr=c.r;constg=c.g;constb=c.b;returnQt.rgba(r,g,b,a);}
You'll find that generally surface containers are darker than surface layers. This is obviously subjective, but IMO containers should be brighter and have an "elevated" look.
Addresses #97 by increasing the floor and decreasing the ceiling for the offset value used for brightening darker colors in dark mode and darkening brighter colors in light mode. This tones down aggressiveness and doesn't brighten colors as much at lower `transparency.base` values, while also increasing effectiveness at values closer to opaque where before it would set the offset to 0 when the bar was set to opaque.
Not extensively tested, especially not light mode color schemes. It still heavily alters the colors but from my testing this alteration is definitely necessary for readability and general aesthetics. There's an argument to be made to possibly disable/alter the offset calculation based on if a preset is selected/automatic scheme generation is turned on. Let me know your thoughts after testing.
If you want to test what happens when you disable this method without breaking the whole shell, you can edit the method like this:
```qml
function alterColor(c: color, a: real, layer: int): color {
const initLuminance = getLuminance(c);
const luminance = Math.max(initLuminance, 0.001);
const offset = (!light || layer == 1 ? 1 : -layer / 2) * (light ? 0.2 : 0.3) * (0.2 + 0.3 * (1 - transparency.base)) * (1 + wallLuminance * (light ? (layer == 1 ? 3 : 1) : 2.5));
// const r = Math.max(0, Math.min(1, c.r * scale));
// const g = Math.max(0, Math.min(1, c.g * scale));
// const b = Math.max(0, Math.min(1, c.b * scale));
const r = c.r;
const g = c.g;
const b = c.b;
return Qt.rgba(r, g, b, a);
}
```
You'll find that generally surface containers are darker than surface layers. This is obviously subjective, but IMO **containers** should be brighter and have an "elevated" look.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Addresses #97 by increasing the floor and decreasing the ceiling for the offset value used for brightening darker colors in dark mode and darkening brighter colors in light mode. This tones down aggressiveness and doesn't brighten colors as much at lower
transparency.basevalues, while also increasing effectiveness at values closer to opaque where before it would set the offset to 0 when the bar was set to opaque.Not extensively tested, especially not light mode color schemes. It still heavily alters the colors but from my testing this alteration is definitely necessary for readability and general aesthetics. There's an argument to be made to possibly disable/alter the offset calculation based on if a preset is selected/automatic scheme generation is turned on. Let me know your thoughts after testing.
If you want to test what happens when you disable this method without breaking the whole shell, you can edit the method like this:
You'll find that generally surface containers are darker than surface layers. This is obviously subjective, but IMO containers should be brighter and have an "elevated" look.
Resolved in my book. Inspected the difference as well.