@@ -24,7 +24,7 @@ public class WriteAs.MainWindow : Gtk.ApplicationWindow {
2424 private static string data_dir = " .writeas" ;
2525 private static string version = " 1.0.0" ;
2626
27- private int font_size = 12 ;
27+ private int font_size = 16 ;
2828 private bool dark_mode = false ;
2929 private string font = " Lora, 'Palatino Linotype',"
3030 + " 'Book Antiqua', 'New York', 'DejaVu serif', serif" ;
@@ -83,7 +83,7 @@ public class WriteAs.MainWindow : Gtk.ApplicationWindow {
8383 init_folder();
8484 try {
8585 open_file(draft_file());
86- } catch (Error err) {canvas . buffer . text = err . message; }
86+ } catch (Error err) {}
8787 restore_styles();
8888
8989 set_default_size(800 , 600 );
@@ -190,7 +190,7 @@ public class WriteAs.MainWindow : Gtk.ApplicationWindow {
190190 var styles = option. get_style_context();
191191 var provider = new Gtk .CssProvider ();
192192 try {
193- provider. load_from_data(" * {font: %s ;}" . printf(families));
193+ provider. load_from_data(" * {font-family : %s ;}" . printf(families));
194194 styles. add_provider(provider, Gtk . STYLE_PROVIDER_PRIORITY_APPLICATION );
195195 } catch (Error e) {
196196 warning(e. message);
@@ -230,9 +230,9 @@ public class WriteAs.MainWindow : Gtk.ApplicationWindow {
230230 Gtk . StyleContext . remove_provider_for_screen(Gdk . Screen . get_default(), cur_styles);
231231
232232 var padding = canvas. get_allocated_width()* 0.10 ;
233- var css = (" GtkTextView {font: %s ; font-size: %dpx ; padding: 20px;" +
233+ var css = (" textview {font-family : %s ; font-size: %dpx ; padding: 20px;" +
234234 " padding-left: %ipx ; padding-right: %ipx ;" +
235- " -GtkWidget-cursor -color: #5ac4ee;}" ). printf(font, font_size,
235+ " caret -color: #5ac4ee;}" ). printf(font, font_size,
236236 (int ) padding, (int ) padding);
237237 cur_styles = new Gtk .CssProvider ();
238238 cur_styles. load_from_data(css);
0 commit comments