Fri, 05 Jan 2018 19:40:00 -0300
+
com.github.lainsce.quilter (1.4.3) xenial; urgency=low
* Added the option to show line numbers.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-1.4.3/meson.build new/quilter-1.4.4/meson.build
--- old/quilter-1.4.3/meson.build 2017-11-15 20:20:20.000000000 +0100
+++ new/quilter-1.4.4/meson.build 2017-12-25 18:01:53.000000000 +0100
@@ -1,6 +1,6 @@
# Name our project
project('com.github.lainsce.quilter', ['vala', 'c'],
- version: '1.4.3'
+ version: '1.4.4'
)
# Import main lib files
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-1.4.3/src/MainWindow.vala new/quilter-1.4.4/src/MainWindow.vala
--- old/quilter-1.4.3/src/MainWindow.vala 2017-11-15 20:20:20.000000000 +0100
+++ new/quilter-1.4.4/src/MainWindow.vala 2017-12-25 18:01:53.000000000 +0100
@@ -43,9 +43,9 @@
private bool timer_scheduled = false;
/*
- * 200ms equals two keypresses per beat. The average typing speed.
+ * 100ms equals one keypress per beat. Speedy.
*/
- private const int TIME_TO_REFRESH = 200;
+ private const int TIME_TO_REFRESH = 100;
public bool is_fullscreen {
get {
@@ -159,7 +159,7 @@
toolbar.subtitle = "New Document";
}
- var header_context = toolbar.get_style_context ();
+ var header_context = toolbar.get_style_context ();
header_context.add_class (Gtk.STYLE_CLASS_FLAT);
header_context.add_class ("quilter-toolbar");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-1.4.3/src/Services/FileManager.vala new/quilter-1.4.4/src/Services/FileManager.vala
--- old/quilter-1.4.3/src/Services/FileManager.vala 2017-11-15 20:20:20.000000000 +0100
+++ new/quilter-1.4.4/src/Services/FileManager.vala 2017-12-25 18:01:53.000000000 +0100
@@ -141,6 +141,7 @@
debug ("Save button pressed.");
var settings = AppSettings.get_default ();
var file = File.new_for_path (settings.last_file);
+ settings.subtitle = file.get_basename ();
if (file.query_exists ()) {
try {
@@ -170,6 +171,7 @@
var settings = AppSettings.get_default ();
var file = Services.DialogUtils.display_save_dialog ();
settings.last_file = file.get_path ();
+ settings.subtitle = file.get_basename ();
try {
debug ("Saving file...");
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-1.4.3/src/Styles/quilter.vala new/quilter-1.4.4/src/Styles/quilter.vala
--- old/quilter-1.4.3/src/Styles/quilter.vala 2017-11-15 20:20:20.000000000 +0100
+++ new/quilter-1.4.4/src/Styles/quilter.vala 2017-12-25 18:01:53.000000000 +0100
@@ -130,12 +130,11 @@
color: #3daee9;
}
- pre {
+ code {
font-family: 'PT Mono', monospace;
- background-color: #F0F0F0;
- color: #4d4d4d;
- padding: 1rem;
text-align: left;
+ padding: 1rem !important;
+ border-radius: 5px;
}
blockquote {
@@ -153,4 +152,4 @@
color: #4d4d4d;
}
""";
-}
\ No newline at end of file
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-1.4.3/src/Styles/quilterdark.vala new/quilter-1.4.4/src/Styles/quilterdark.vala
--- old/quilter-1.4.3/src/Styles/quilterdark.vala 2017-11-15 20:20:20.000000000 +0100
+++ new/quilter-1.4.4/src/Styles/quilterdark.vala 2017-12-25 18:01:53.000000000 +0100
@@ -129,12 +129,11 @@
color: #1d99f3;
}
- pre {
+ code {
font-family: 'PT Mono', monospace;
- background-color: #17191b;
- color: #7E8087;
- padding: 1rem;
text-align: left;
+ padding: 1rem !important;
+ border-radius: 5px;
}
blockquote {
@@ -152,4 +151,4 @@
color: #7E8087;
}
""";
-}
\ No newline at end of file
+}
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-1.4.3/src/Widgets/Cheatsheet.vala new/quilter-1.4.4/src/Widgets/Cheatsheet.vala
--- old/quilter-1.4.3/src/Widgets/Cheatsheet.vala 2017-11-15 20:20:20.000000000 +0100
+++ new/quilter-1.4.4/src/Widgets/Cheatsheet.vala 2017-12-25 18:01:53.000000000 +0100
@@ -23,6 +23,7 @@
public Cheatsheet (Gtk.Window? parent) {
Object (
+ border_width: 6,
deletable: false,
resizable: false,
title: _("Cheatsheet"),
@@ -58,7 +59,6 @@
main_grid.attach (this.main_stack, 0, 1, 1, 1);
((Gtk.Container) get_content_area ()).add (main_grid);
- get_action_area ().margin = 6;
this.key_press_event.connect ((e) => {
uint keycode = e.hardware_keycode;
@@ -76,14 +76,14 @@
textstyle_grid.row_spacing = 6;
textstyle_grid.column_spacing = 12;
- var header_header = new Header (_("Header"));
+ var header_header = new Granite.HeaderLabel (_("Header"));
var header_one_label = new Label (_("# Header 1"));
var header_two_label = new Label (_("## Header 2"));
var header_three_label = new Label (_("### Header 3"));
var header_four_label = new Label (_("#### Header 4"));
var header_five_label = new Label (_("##### Header 5"));
var header_six_label = new Label (_("###### Header 6"));
- var font_header = new Header (_("Special Text"));
+ var font_header = new Granite.HeaderLabel (_("Special Text"));
var bold_font_label = new Label (_("** Bold text **"));
var emph_font_label = new Label (_("* Emphasized text *"));
var code_font_label = new Label (_("` Code text `"));
@@ -112,10 +112,10 @@
links_grid.row_spacing = 6;
links_grid.column_spacing = 12;
- var link_header = new Header (_("Links"));
+ var link_header = new Granite.HeaderLabel (_("Links"));
var link_label = new Label (_("[Link Label](http://link.url.here.com)"));
var image_label = new Label (_(""));
- var special_header = new Header (_("Special"));
+ var special_header = new Granite.HeaderLabel (_("Special"));
var codeblocks_label = new Label (_("```This is a code block```"));
var hr_label = new Label (_("--- ← This creates an horizontal rule"));
@@ -134,7 +134,7 @@
tables_grid.row_spacing = 6;
tables_grid.column_spacing = 12;
- var table_header = new Header (_("Tables"));
+ var table_header = new Granite.HeaderLabel (_("Tables"));
var table_label = new Label ("|\tA\t|\tB\t|\n|\t---\t|\t---\t|\n|\t1\t|\t2\t|");
var table_explain_label = new Text (_("To make a column's content go to the left, change --- to :--- ."));
var table_explain_label2 = new Text (_("To make a column's content centered, change --- to :---: ."));
@@ -149,23 +149,6 @@
return tables_grid;
}
- private class TitleHeader : Gtk.Label {
- public TitleHeader (string text) {
- label = text;
- this.margin_bottom = 6;
- get_style_context ().add_class ("h3");
- halign = Gtk.Align.START;
- }
- }
-
- private class Header : Gtk.Label {
- public Header (string text) {
- label = text;
- get_style_context ().add_class ("h4");
- halign = Gtk.Align.START;
- }
- }
-
private class Label : Gtk.Label {
public Label (string text) {
label = text;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-1.4.3/src/Widgets/Preferences.vala new/quilter-1.4.4/src/Widgets/Preferences.vala
--- old/quilter-1.4.3/src/Widgets/Preferences.vala 2017-11-15 20:20:20.000000000 +0100
+++ new/quilter-1.4.4/src/Widgets/Preferences.vala 2017-12-25 18:01:53.000000000 +0100
@@ -23,7 +23,7 @@
public Preferences (Gtk.Window? parent) {
Object (
- border_width: 0,
+ border_width: 6,
deletable: false,
resizable: false,
title: _("Preferences"),
@@ -56,7 +56,6 @@
main_grid.attach (this.main_stack, 0, 1, 1, 1);
((Gtk.Container) get_content_area ()).add (main_grid);
- get_action_area ().margin = 6;
}
private Gtk.Widget get_editor_grid () {
@@ -203,7 +202,7 @@
interface_grid.attach (ui_header, 0, 1, 3, 1);
interface_grid.attach (save_button_label, 0, 2, 1, 1);
interface_grid.attach (save_button, 1, 2, 1, 1);
-
+
interface_grid.attach (mode_header, 0, 4, 3, 1);
interface_grid.attach (focus_mode_label, 0, 5, 1, 1);
interface_grid.attach (focus_mode, 1, 5, 1, 1);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/quilter-1.4.3/src/Widgets/WebView.vala new/quilter-1.4.4/src/Widgets/WebView.vala
--- old/quilter-1.4.3/src/Widgets/WebView.vala 2017-11-15 20:20:20.000000000 +0100
+++ new/quilter-1.4.4/src/Widgets/WebView.vala 2017-12-25 18:01:53.000000000 +0100
@@ -60,6 +60,15 @@
}
}
+ private string set_highlight_stylesheet () {
+ var settings = AppSettings.get_default ();
+ if (settings.dark_mode) {
+ return Build.PKGDATADIR + "/highlight.js/styles/dark.min.css";
+ } else {
+ return Build.PKGDATADIR + "/highlight.js/styles/default.min.css";
+ }
+ }
+
private void connect_signals () {
create.connect ((navigation_action) => {
launch_browser (navigation_action.get_request().get_uri ());
@@ -163,9 +172,8 @@
string text = Widgets.SourceView.buffer.text;
string processed_mk;
process_frontmatter (text, out processed_mk);
- // These codes mean, in order: Extra Footnote + Autolink + ``` code + Extra def lists + keep style
- var mkd = new Markdown.Document (processed_mk.data, 0x00200000 + 0x00004000 + 0x02000000 + 0x01000000 + 0x00400000);
- mkd.compile (0x00200000 + 0x00004000 + 0x02000000 + 0x01000000 + 0x00400000);
+ var mkd = new Markdown.Document (processed_mk.data, 0x00200000 + 0x00004000 + 0x02000000 + 0x01000000 + 0x00400000 + 0x40000000);
+ mkd.compile (0x00200000 + 0x00004000 + 0x02000000 + 0x01000000 + 0x00400000 + 0x40000000);
string result;
mkd.get_document (out result);
@@ -175,6 +183,9 @@
public void update_html_view () {
string html = "";
+ html += "";
+ html += "";
+ html += "";
html += "";
html += "";
html += process ();
@@ -182,4 +193,4 @@
this.load_html (html, "file:///");
}
}
-}
\ No newline at end of file
+}