Skip to content

Commit

Permalink
fixing flat background
Browse files Browse the repository at this point in the history
  • Loading branch information
kikipoulet committed Jul 9, 2024
1 parent fba9d13 commit e9488cf
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions SukiUI/Content/Shaders/Background/flat.sksl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
vec4 main(vec2 fragCoord) {

if(iDark == 1)
return vec4(iBase * 0.7, iAlpha);

return vec4(iBase, iAlpha);
}
4 changes: 2 additions & 2 deletions SukiUI/Content/Shaders/Background/gradient.sksl
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,14 @@ vec4 main(vec2 fragCoord) {

float iPrimaryOpacity = 1; // Exemple de nouvelle opacité pour iPrimary
if (iDark == 1) {
iPrimaryOpacity = 0.26;
iPrimaryOpacity = 0.28;
}
vec3 iPrimaryWithOpacity = iPrimary * iPrimaryOpacity;


float iAccentOpacity = 0.8;
if (iDark == 1) {
iAccentOpacity = 0.3;
iAccentOpacity = 0.34;
}
vec3 iAccentWithOpacity = iAccent * iAccentOpacity;

Expand Down

0 comments on commit e9488cf

Please sign in to comment.