diff --git a/src/Mod/Sketcher/Gui/Resources/icons/Constraint_Parallel.svg b/src/Mod/Sketcher/Gui/Resources/icons/Constraint_Parallel.svg index 66ba5d5a88..59dac40b03 100644 --- a/src/Mod/Sketcher/Gui/Resources/icons/Constraint_Parallel.svg +++ b/src/Mod/Sketcher/Gui/Resources/icons/Constraint_Parallel.svg @@ -1,98 +1,502 @@ - - - - - + + + + + + - - - - - - + + + + + + - - - - - + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - + + + + + + - - - - - - - - - - - - - + + + + + + + + + + - - + + - + - + image/svg+xml - - + + [wmayer] @@ -121,14 +525,57 @@ - - - - + + + + - - - + + + diff --git a/src/Mod/Sketcher/Gui/Resources/icons/small/Constraint_Parallel_sm.xpm b/src/Mod/Sketcher/Gui/Resources/icons/small/Constraint_Parallel_sm.xpm index e42715b1de..b61bb8acc6 100644 --- a/src/Mod/Sketcher/Gui/Resources/icons/small/Constraint_Parallel_sm.xpm +++ b/src/Mod/Sketcher/Gui/Resources/icons/small/Constraint_Parallel_sm.xpm @@ -1,44 +1,27 @@ /* XPM */ -static char * Constraint_Parallel_sm_xpm[] = { -"16 16 25 1", -" c None", -". c #760A0A", -"+ c #C01717", -"@ c #790A0A", -"# c #D81515", -"$ c #D60C0C", -"% c #A01212", -"& c #D91515", -"* c #D20606", -"= c #C61818", -"- c #C81818", -"; c #9E1111", -"> c #C31717", -", c #D70D0D", -"' c #C41717", -") c #D10707", -"! c #D71313", -"~ c #7B0B0B", -"{ c #D71414", -"] c #C71818", -"^ c #C51717", -"/ c #9F1212", -"( c #9F1111", -"_ c #D81414", -": c #7A0A0A", -" ", -" .+ ", -" @#$% ", -" .&*= ", -" .&*- ; ", -" .&*= >,+ ", -" .&*= ')!~ ", -" .&*= ')!~ ", -" .{*] ')!~ ", -" .{*] ^)!~ ", -" +,' ^)!~ ", -" / ^)!~ ", -" ^)&~ ", -" (,_: ", -" +@ ", -" "}; +static char *Constraint_Parallel_sm[] = { +/* columns rows colors chars-per-pixel */ +"16 16 5 1 ", +" c None", +". c #932F2F", +"+ c #AB2121", +"# c #CF0C0C", +"@ c #790A0A", +/* pixels */ +" . ", +" @## ", +" @##+ ", +" @##+ ", +" @##+ ", +" @##+ ", +" @##+ ++ ", +" @##+ +##@ ", +" @##+ +##@ ", +" @##+ +##@ ", +"@##+ +##@ ", +"@#+ +##@ ", +" . +##@ ", +" +#@ ", +" . ", +" " +}; diff --git a/src/Mod/Sketcher/Gui/Resources/icons/small/README.md b/src/Mod/Sketcher/Gui/Resources/icons/small/README.md new file mode 100644 index 0000000000..a28ecb977e --- /dev/null +++ b/src/Mod/Sketcher/Gui/Resources/icons/small/README.md @@ -0,0 +1,24 @@ +To create an XPM file from an SVG file, you need the ImageMagick libraries. +Then run +``` +convert file.svg -geometry 16x16 -colors 16 file_sm.xpm +``` + +The XPM icon is very small, 16x16 px in size, and you usually don't need +more than 16 colors. + +Edit the xpm file manually to do small retouches, for example, setting up +the transparency and reducing the number of colors exactly to the desired ones. + +The space character (empty) can be set to the color `None`, +to indicate transparency. + +``` +/* XPM */ +static char * file_sm_xpm[] = { +"16 16 7 1", +" c None", +". c #BB1616", +"+ c #DE1515", +"@ c #BE1616", +```