mirror of
https://github.com/tealdeer-rs/tealdeer.git
synced 2026-08-09 09:49:10 +02:00
Change default styling
Make it a bit more colorful, like the previous style
This commit is contained in:
parent
8771db1e73
commit
7621bb107e
4 changed files with 22 additions and 24 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
[32mOpen an SVG file in the Inkscape GUI:[0m
|
||||
|
||||
[31minkscape[0m [4mfilename.svg[0m
|
||||
[36minkscape [4mfilename.svg[0m[36m[0m
|
||||
|
||||
Export an SVG file into a bitmap with the default format (PNG) and the default resolution (90 DPI):
|
||||
[32mExport an SVG file into a bitmap with the default format (PNG) and the default resolution (90 DPI):[0m
|
||||
|
||||
[31minkscape[0m [4mfilename.svg[0m -e [4mfilename.png[0m
|
||||
[36minkscape [4mfilename.svg[0m[36m -e [4mfilename.png[0m[36m[0m
|
||||
|
||||
Export an SVG file into a bitmap of 600x400 pixels (aspect ratio distortion may occur):
|
||||
[32mExport an SVG file into a bitmap of 600x400 pixels (aspect ratio distortion may occur):[0m
|
||||
|
||||
[31minkscape[0m [4mfilename.svg[0m -e [4mfilename.png[0m -w [4m600[0m -h [4m400[0m
|
||||
[36minkscape [4mfilename.svg[0m[36m -e [4mfilename.png[0m[36m -w [4m600[0m[36m -h [4m400[0m[36m[0m
|
||||
|
||||
Export a single object, given its ID, into a bitmap:
|
||||
[32mExport a single object, given its ID, into a bitmap:[0m
|
||||
|
||||
[31minkscape[0m [4mfilename.svg[0m -i [4mid[0m -e [4mobject.png[0m
|
||||
[36minkscape [4mfilename.svg[0m[36m -i [4mid[0m[36m -e [4mobject.png[0m[36m[0m
|
||||
|
||||
Export an SVG document to PDF, converting all texts to paths:
|
||||
[32mExport an SVG document to PDF, converting all texts to paths:[0m
|
||||
|
||||
[31minkscape[0m [4mfilename.svg[0m | [31minkscape[0m | [31minkscape[0m --export-pdf=[4minkscape.pdf[0m | [31minkscape[0m | [31minkscape[0m --export-text-to-path
|
||||
[36minkscape [4mfilename.svg[0m[36m | inkscape | inkscape --export-pdf=[4minkscape.pdf[0m[36m | inkscape | inkscape --export-text-to-path[0m
|
||||
|
||||
Duplicate the object with id="path123", rotate the duplicate 90 degrees, save the file, and quit Inkscape:
|
||||
[32mDuplicate the object with id="path123", rotate the duplicate 90 degrees, save the file, and quit Inkscape:[0m
|
||||
|
||||
[31minkscape[0m [4mfilename.svg[0m --select=path123 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileQuit
|
||||
[36minkscape [4mfilename.svg[0m[36m --select=path123 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileQuit[0m
|
||||
|
||||
|
|
|
|||
|
|
@ -4,25 +4,25 @@
|
|||
|
||||
[44;30mOpen an SVG file in the Inkscape GUI:[0m
|
||||
|
||||
[32minkscape[0m [4mfilename.svg[0m
|
||||
inkscape [4mfilename.svg[0m
|
||||
|
||||
[44;30mExport an SVG file into a bitmap with the default format (PNG) and the default resolution (90 DPI):[0m
|
||||
|
||||
[32minkscape[0m [4mfilename.svg[0m -e [4mfilename.png[0m
|
||||
inkscape [4mfilename.svg[0m -e [4mfilename.png[0m
|
||||
|
||||
[44;30mExport an SVG file into a bitmap of 600x400 pixels (aspect ratio distortion may occur):[0m
|
||||
|
||||
[32minkscape[0m [4mfilename.svg[0m -e [4mfilename.png[0m -w [4m600[0m -h [4m400[0m
|
||||
inkscape [4mfilename.svg[0m -e [4mfilename.png[0m -w [4m600[0m -h [4m400[0m
|
||||
|
||||
[44;30mExport a single object, given its ID, into a bitmap:[0m
|
||||
|
||||
[32minkscape[0m [4mfilename.svg[0m -i [4mid[0m -e [4mobject.png[0m
|
||||
inkscape [4mfilename.svg[0m -i [4mid[0m -e [4mobject.png[0m
|
||||
|
||||
[44;30mExport an SVG document to PDF, converting all texts to paths:[0m
|
||||
|
||||
[32minkscape[0m [4mfilename.svg[0m | [32minkscape[0m | [32minkscape[0m --export-pdf=[4minkscape.pdf[0m | [32minkscape[0m | [32minkscape[0m --export-text-to-path
|
||||
inkscape [4mfilename.svg[0m | inkscape | inkscape --export-pdf=[4minkscape.pdf[0m | inkscape | inkscape --export-text-to-path
|
||||
|
||||
[44;30mDuplicate the object with id="path123", rotate the duplicate 90 degrees, save the file, and quit Inkscape:[0m
|
||||
|
||||
[32minkscape[0m [4mfilename.svg[0m --select=path123 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileQuit
|
||||
inkscape [4mfilename.svg[0m --select=path123 --verb=EditDuplicate --verb=ObjectRotate90 --verb=FileSave --verb=FileQuit
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue