File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -226,16 +226,16 @@ public class WriteAs.MainWindow : Gtk.ApplicationWindow {
226226 Gtk . StyleContext . remove_provider_for_screen(Gdk . Screen . get_default(), cur_styles);
227227
228228 var padding = canvas. get_allocated_width()* 0.10 ;
229- var css = (" textview {font-family: %s ; font-size: %dpx ; padding: 20px;" +
230- " padding-left: %ipx ; padding-right: %ipx ;" +
231- " caret-color: #5ac4ee;}" ). printf(font, font_size,
232- (int ) padding, (int ) padding);
229+ var css = (" textview {font-family: %s ; font-size: %dpx ; padding: 20px 0;" +
230+ " caret-color: #5ac4ee;}" ). printf(font, font_size);
233231 cur_styles = new Gtk .CssProvider ();
234232 cur_styles. load_from_data(css);
235233
236234 Gtk . StyleContext . add_provider_for_screen(Gdk . Screen . get_default(),
237235 cur_styles, Gtk . STYLE_PROVIDER_PRIORITY_APPLICATION );
238236
237+ canvas. left_margin = canvas. right_margin = (int ) padding;
238+
239239 if (save_theme) theme_save();
240240 } catch (Error e) {
241241 warning(e. message);
You can’t perform that action at this time.
0 commit comments