From 994e0467c9c5e8024348af24ac7004057e314b87 Mon Sep 17 00:00:00 2001 From: mike kowalski Date: Thu, 17 Nov 2022 21:09:26 -0800 Subject: [PATCH] Add syntax coloring to the XML Dialog Co-authored-by: Rafael Siejakowski Use GTKSourceView4 to implement syntax highlighting in the XML Dialog for CSS editing (both the contents of the + + + True + True + 1 + + + + + True + False + + + 1 + True + False + start + center + True + True + + + + True + True + 0 + + + + + False + True + 2 + end + 2 + + + + + True + False + False + + + True + False + N + True + + + + + True + False + N.N + True + + + + + True + False + N.NN + True + + + + + True + False + N.NNN + True + + + + + True + False + N.NNNN + True + + + + + True + False + N.NNNNN + True + + + + + False + tree-view + bottom + + + True + False + vertical + + + True + True + 3 + 3 + 3 + 4 + True + True + + + + + + + False + True + 0 + + + + + True + False + 5 + 5 + 4 + 6 + + + True + False + 5 + + + True + True + True + Round selected numbers to N digits + image1 + True + + + False + True + 0 + + + + + True + True + False + True + 2 + none + menu1 + + + True + False + + + True + False + N.NNNNN + + + False + True + 0 + + + + + True + False + pan-down-symbolic + + + False + True + 1 + + + + + + + + False + True + 1 + + + + + False + True + 9 + + + + + True + False + Shift+Return to close + center + True + 2 + 0.5 + + + False + True + 0 + + + + + OK + True + True + True + True + + + False + True + end + 1 + + + + + Cancel + True + True + True + True + + + False + True + end + 2 + + + + + + False + True + 1 + + + + + + + + + + + + + + + + + + + + + + diff --git a/share/ui/inline-css.lang b/share/ui/inline-css.lang new file mode 100644 index 0000000000..29a04df247 --- /dev/null +++ b/share/ui/inline-css.lang @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/share/ui/style.css b/share/ui/style.css index b19b8078b8..45c04cab7d 100644 --- a/share/ui/style.css +++ b/share/ui/style.css @@ -168,9 +168,8 @@ notebook.blink > header > tabs > tab:checked { color: inherit; } -/* attribute dialog popup size */ -.attrpop textview { - font-size: 13px; +.mono-font { + /* note: monospaced font is set by ThemeContext::adjust_global_font_scale() */ } /* @@ -225,12 +224,12 @@ iconview *:hover { } .menu-category { - font-size: small; + font-size: smaller; font-weight: bold; } .small-heading { - font-size: small; + font-size: smaller; font-weight: bold; opacity: 0.5; } @@ -250,7 +249,7 @@ iconview *:hover { } -/* Selector and XML dialog */ +/* Selector dialog */ #SelectorsAndStyleDialog button { padding: 4px; min-height: 16px; @@ -266,14 +265,12 @@ iconview *:hover { padding-bottom: 0; } -#XMLAndAttributesDialog .radio.image-button, #SelectorsAndStyleDialog .radio.image-button { margin: 0; padding: 0px; border-radius: 2px 0 0 2px; } -#XMLAndAttributesDialog .radio.image-button:last-child, #SelectorsAndStyleDialog .radio.image-button:last-child { border-radius: 0 2px 2px 0; border-left-width: 0; @@ -455,7 +452,7 @@ SPCanvas { #Objects .search { padding: 2px 4px; min-height: 16px; - font-size: small; + font-size: smaller; } #SimpleFilterModifier #InkSpinScale { @@ -595,7 +592,7 @@ scale.tight-slider { /* add .small-marks class to Gtk::Scale to have smaller font used, since markup didn't work there */ scale.small-marks.marks-after { - font-size: small; + font-size: smaller; } /* Square toolbar buttons: request square buttons for all toolbars. */ @@ -617,7 +614,7 @@ button.square-button image { } #StyleSwatch label { - font-size: small; + font-size: smaller; } #DocumentProperties #NotebookPage { @@ -646,7 +643,7 @@ button.square-button image { } .small-font { - font-size: small; + font-size: smaller; } .toolbar-separator { diff --git a/share/ui/svgd.lang b/share/ui/svgd.lang new file mode 100644 index 0000000000..0c86bd8b66 --- /dev/null +++ b/share/ui/svgd.lang @@ -0,0 +1,229 @@ + + + + +