[gnome-builder] markedview: tweak markdown sizing
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] markedview: tweak markdown sizing
- Date: Wed, 8 Dec 2021 00:37:28 +0000 (UTC)
commit 8a5276e3f938f492a6d7e7e4f9c1efec6ffaae1e
Author: Christian Hergert <chergert redhat com>
Date: Tue Dec 7 16:37:21 2021 -0800
markedview: tweak markdown sizing
The built ins are a bit too large for our popover.
src/libide/gui/ide-marked-view.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/src/libide/gui/ide-marked-view.c b/src/libide/gui/ide-marked-view.c
index 2dbdfc6bc..9a6fb7e61 100644
--- a/src/libide/gui/ide-marked-view.c
+++ b/src/libide/gui/ide-marked-view.c
@@ -162,33 +162,33 @@ render_node(GString *out,
switch (cmark_node_get_heading_level (node))
{
case 1:
- level = "xx-large";
+ level = "14pt";
break;
case 2:
- level = "x-large";
+ level = "13pt";
break;
case 3:
- level = "large";
+ level = "12pt";
break;
case 4:
- level = "medium";
+ level = "11pt";
break;
case 5:
- level = "small";
+ level = "10pt";
break;
case 6:
- level = "x-small";
+ level = "9pt";
break;
default:
g_return_val_if_reached(FALSE);
+ }
- }
g_string_append_printf (out, "<span size=\"%s\">", level);
}
if (!entering || node_is_leaf (node))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]