From 7621bb107ee78586c1816b28abc5582c18d52475 Mon Sep 17 00:00:00 2001 From: Danilo Bargen Date: Sat, 15 Sep 2018 23:46:42 +0200 Subject: [PATCH] Change default styling Make it a bit more colorful, like the previous style --- src/config.rs | 5 ++++- tests/config.toml | 5 ----- tests/inkscape-default.expected | 24 ++++++++++++------------ tests/inkscape-with-config.expected | 12 ++++++------ 4 files changed, 22 insertions(+), 24 deletions(-) diff --git a/src/config.rs b/src/config.rs index 3d63a2d..72f953f 100644 --- a/src/config.rs +++ b/src/config.rs @@ -102,7 +102,10 @@ impl RawConfig { let mut raw_config = RawConfig::default(); // Set default config - raw_config.style.command_name.foreground = Some(RawColor::Red); + raw_config.style.example_text.foreground = Some(RawColor::Green); + raw_config.style.command_name.foreground = Some(RawColor::Cyan); + raw_config.style.example_code.foreground = Some(RawColor::Cyan); + raw_config.style.example_variable.foreground = Some(RawColor::Cyan); raw_config.style.example_variable.underline = true; raw_config diff --git a/tests/config.toml b/tests/config.toml index 5eaae22..7440a82 100644 --- a/tests/config.toml +++ b/tests/config.toml @@ -11,11 +11,6 @@ bold = false foreground = "black" background = "blue" underline = false -bold = false - -[style.example_code] -underline = false -bold = false [style.example_variable] underline = true diff --git a/tests/inkscape-default.expected b/tests/inkscape-default.expected index 3c8146d..c7061b3 100644 --- a/tests/inkscape-default.expected +++ b/tests/inkscape-default.expected @@ -2,27 +2,27 @@ An SVG (Scalable Vector Graphics) editing program. Use -z to not open the GUI and only process files in the console. - Open an SVG file in the Inkscape GUI: + Open an SVG file in the Inkscape GUI: - inkscape filename.svg + inkscape filename.svg - Export an SVG file into a bitmap with the default format (PNG) and the default resolution (90 DPI): + Export an SVG file into a bitmap with the default format (PNG) and the default resolution (90 DPI): - inkscape filename.svg -e filename.png + inkscape filename.svg -e filename.png - Export an SVG file into a bitmap of 600x400 pixels (aspect ratio distortion may occur): + Export an SVG file into a bitmap of 600x400 pixels (aspect ratio distortion may occur): - inkscape filename.svg -e filename.png -w 600 -h 400 + inkscape filename.svg -e filename.png -w 600 -h 400 - Export a single object, given its ID, into a bitmap: + Export a single object, given its ID, into a bitmap: - inkscape filename.svg -i id -e object.png + inkscape filename.svg -i id -e object.png - Export an SVG document to PDF, converting all texts to paths: + Export an SVG document to PDF, converting all texts to paths: - inkscape filename.svg | inkscape | inkscape --export-pdf=inkscape.pdf | inkscape | inkscape --export-text-to-path + inkscape filename.svg | inkscape | inkscape --export-pdf=inkscape.pdf | inkscape | inkscape --export-text-to-path - Duplicate the object with id="path123", rotate the duplicate 90 degrees, save the file, and quit Inkscape: + Duplicate the object with id="path123", rotate the duplicate 90 degrees, save the file, and quit Inkscape: - inkscape filename.svg --select=path123 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileQuit + inkscape filename.svg --select=path123 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileQuit diff --git a/tests/inkscape-with-config.expected b/tests/inkscape-with-config.expected index fcd9271..313e140 100644 --- a/tests/inkscape-with-config.expected +++ b/tests/inkscape-with-config.expected @@ -4,25 +4,25 @@ Open an SVG file in the Inkscape GUI: - inkscape filename.svg + inkscape filename.svg Export an SVG file into a bitmap with the default format (PNG) and the default resolution (90 DPI): - inkscape filename.svg -e filename.png + inkscape filename.svg -e filename.png Export an SVG file into a bitmap of 600x400 pixels (aspect ratio distortion may occur): - inkscape filename.svg -e filename.png -w 600 -h 400 + inkscape filename.svg -e filename.png -w 600 -h 400 Export a single object, given its ID, into a bitmap: - inkscape filename.svg -i id -e object.png + inkscape filename.svg -i id -e object.png Export an SVG document to PDF, converting all texts to paths: - inkscape filename.svg | inkscape | inkscape --export-pdf=inkscape.pdf | inkscape | inkscape --export-text-to-path + inkscape filename.svg | inkscape | inkscape --export-pdf=inkscape.pdf | inkscape | inkscape --export-text-to-path Duplicate the object with id="path123", rotate the duplicate 90 degrees, save the file, and quit Inkscape: - inkscape filename.svg --select=path123 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileQuit + inkscape filename.svg --select=path123 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileQuit