aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/icon-1.svg.in13
-rw-r--r--data/icon.svg.in12
-rw-r--r--data/main.vala14
3 files changed, 9 insertions, 30 deletions
diff --git a/data/icon-1.svg.in b/data/icon-1.svg.in
index 5bda1548..1ff8f4a2 100644
--- a/data/icon-1.svg.in
+++ b/data/icon-1.svg.in
@@ -1,12 +1 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<svg version="1.1" width="@WIDTH@" height="@HEIGHT@">
- <defs>
- <mask id="m">
- <rect x="0" y="0" width="@WIDTH@" height="@HEIGHT@" style="fill:white" />
- <text x="@LAYOUT_X@" y="@LAYOUT_Y@" style="@LAYOUT_FONT@;fill:black">@LAYOUT@</text>
- <text x="@SUBSCRIPT_X@" y="@SUBSCRIPT_Y@" style="@SUBSCRIPT_FONT@;fill:black">@SUBSCRIPT@</text>
- </mask>
- </defs>
- <rect x="0" y="0" width="@WIDTH@" height="@HEIGHT@" rx="@RADIUS@" mask="url(#m)" style="fill:@COLOUR@" />
-</svg>
+<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" width="@WIDTH@" height="@HEIGHT@"><defs><mask id="m"><rect x="0" y="0" width="@WIDTH@" height="@HEIGHT@" style="fill:white"/><text x="@LAYOUT_X@" y="@LAYOUT_Y@" style="@LAYOUT_FONT@;fill:black">@LAYOUT@</text><text x="@SUBSCRIPT_X@" y="@SUBSCRIPT_Y@" style="@SUBSCRIPT_FONT@;fill:black">@SUBSCRIPT@</text></mask></defs><rect x="0" y="0" width="@WIDTH@" height="@HEIGHT@" rx="@RADIUS@" mask="url(#m)" style="fill:@COLOUR@"/></svg>
diff --git a/data/icon.svg.in b/data/icon.svg.in
index 672cd131..1f80e510 100644
--- a/data/icon.svg.in
+++ b/data/icon.svg.in
@@ -1,11 +1 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<svg version="1.1" width="@WIDTH@" height="@HEIGHT@">
- <defs>
- <mask id="m">
- <rect x="0" y="0" width="@WIDTH@" height="@HEIGHT@" style="fill:white" />
- <text x="@LAYOUT_X@" y="@LAYOUT_Y@" style="@LAYOUT_FONT@;fill:black">@LAYOUT@</text>
- </mask>
- </defs>
- <rect x="0" y="0" width="@WIDTH@" height="@HEIGHT@" rx="@RADIUS@" mask="url(#m)" style="fill:@COLOUR@" />
-</svg>
+<?xml version="1.0" encoding="UTF-8"?><svg version="1.1" width="@WIDTH@" height="@HEIGHT@"><defs><mask id="m"><rect x="0" y="0" width="@WIDTH@" height="@HEIGHT@" style="fill:white"/><text x="@LAYOUT_X@" y="@LAYOUT_Y@" style="@LAYOUT_FONT@;fill:black">@LAYOUT@</text></mask></defs><rect x="0" y="0" width="@WIDTH@" height="@HEIGHT@" rx="@RADIUS@" mask="url(#m)" style="fill:@COLOUR@"/></svg>
diff --git a/data/main.vala b/data/main.vala
index f942a591..b34dac01 100644
--- a/data/main.vala
+++ b/data/main.vala
@@ -1,13 +1,13 @@
int main (string[] args) {
var force = false;
- var width = 220.0;
- var height = 220.0;
- var radius = 40.0;
- var colour = "grey";
+ var width = 22.0;
+ var height = 22.0;
+ var radius = 4.0;
+ var colour = "white";
var font = "Ubuntu";
var weight = 500;
- var layout_size = 120;
- var subscript_size = 80;
+ var layout_size = 12;
+ var subscript_size = 8;
string output_path = null;
string no_subscript_path = null;
string with_subscript_path = null;
@@ -18,7 +18,7 @@ int main (string[] args) {
options[2] = { "height", 'h', 0, OptionArg.DOUBLE, ref height, "Icon height", "DOUBLE" };
options[3] = { "radius", 'r', 0, OptionArg.DOUBLE, ref radius, "Icon radius", "DOUBLE" };
options[4] = { "colour", 'c', 0, OptionArg.STRING, ref colour, "Icon colour", "COLOUR" };
- options[5] = { "font", 'f', 0, OptionArg.STRING, ref font, "Font family", "NAME" };
+ options[5] = { "font", 'F', 0, OptionArg.STRING, ref font, "Font family", "NAME" };
options[6] = { "weight", 'W', 0, OptionArg.INT, ref weight, "Font weight (100 to 1000)", "INT" };
options[7] = { "layout-size", 's', 0, OptionArg.INT, ref layout_size, "Layout font size", "INT" };
options[8] = { "subscript-size", 'S', 0, OptionArg.INT, ref subscript_size, "Subscript font size", "INT" };