]> Dogcows Code - chaz/openbox/commitdiff
scale the shadows up, they were /100 before, now they are /255
authorDana Jansens <danakj@orodu.net>
Mon, 5 Mar 2007 16:32:50 +0000 (16:32 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 5 Mar 2007 16:32:50 +0000 (16:32 +0000)
tools/themetoxml/themetoxml.c

index 62625a52fe086ee0c1f8a7f81fa45d692717848e..52645972e087cdc19166ddfa59e390629f40900b 100644 (file)
@@ -477,7 +477,7 @@ int main(int argc, char **argv)
         {
             i = parse_inline_number(p + strlen("shadowtint="));
             j = (i > 0 ? 0 : 255);
-            i = ABS(i);
+            i = ABS(i*255/100);
             COLOR6("window","active","label","text","shadow","primary",
                    j,j,j,i);
         }
@@ -499,7 +499,7 @@ int main(int argc, char **argv)
         {
             i = parse_inline_number(p + strlen("shadowtint="));
             j = (i > 0 ? 0 : 255);
-            i = ABS(i);
+            i = ABS(i*255/100);
             COLOR6("window","inactive","label","text","shadow","primary",
                    j,j,j,i);
         }
@@ -519,7 +519,7 @@ int main(int argc, char **argv)
         {
             i = parse_inline_number(p + strlen("shadowtint="));
             j = (i > 0 ? 0 : 255);
-            i = ABS(i);
+            i = ABS(i*255/100);
             COLOR5("menu","title","text","shadow","primary",j,j,j,i);
         }
     }
@@ -542,7 +542,7 @@ int main(int argc, char **argv)
         {
             i = parse_inline_number(p + strlen("shadowtint="));
             j = (i > 0 ? 0 : 255);
-            i = ABS(i);
+            i = ABS(i*255/100);
             COLOR4("menu","inactive","shadow","primary",j,j,j,i);
             COLOR5("menu","active","text","shadow","primary",j,j,j,i);
             COLOR4("menu","disabled","shadow","primary",j,j,j,i);
This page took 0.027415 seconds and 4 git commands to generate.