Skip to content

Commit 342060d

Browse files
committed
Prep new release
1 parent 87ddd97 commit 342060d

File tree

3 files changed

+22
-12
lines changed

3 files changed

+22
-12
lines changed

data/Application.css

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,17 @@ window.huge textview {font-size: 2.2em;}
149149
window.huge editablelabel {font-size: 2.08em;}
150150
window.huge editablelabel.editing {font-size: 2.00em;}
151151

152+
window.superhuge textview {font-size: 2.4em;}
153+
window.superhuge editablelabel {font-size: 2.28em;}
154+
window.superhuge editablelabel.editing {font-size: 2.20em;}
155+
156+
window.megahuge textview {font-size: 2.6em;}
157+
window.megahuge editablelabel {font-size: 2.48em;}
158+
window.megahuge editablelabel.editing {font-size: 2.40em;}
159+
160+
window.ultrahuge textview {font-size: 2.8em;}
161+
window.ultrahuge editablelabel {font-size: 2.68em;}
162+
window.ultrahuge editablelabel.editing {font-size: 2.60em;}
152163

153164

154165
/* ALL the colorpills */

src/Services/Utils.vala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ namespace jorts.Utils {
4545
case 160: return "muchbigger";
4646
case 180: return "muchmuchbigger";
4747
case 200: return "huge";
48+
case 220: return "superhuge";
49+
case 240: return "megahuge";
50+
case 260: return "ultrahuge";
4851
default: return "normal_zoom";
4952
}
5053
}

src/Widgets/StickyView.vala

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ public class jorts.StickyView : Granite.HyperTextView {
8383

8484
this.actions = this.create_formatting_actions ();
8585
this.register_action_accelerators ();
86-
this.add_formatting_options_to_text_view_context_menu (this);
87-
86+
87+
//Menu menu = this.create_formatting_menu ();
88+
//this.set_extra_menu (menu);
8889
}
8990

9091

@@ -107,7 +108,7 @@ public class jorts.StickyView : Granite.HyperTextView {
107108
);
108109
}
109110
}
110-
111+
111112
private SimpleActionGroup create_formatting_actions () {
112113
var actions_to_return = new SimpleActionGroup ();
113114

@@ -134,11 +135,6 @@ public class jorts.StickyView : Granite.HyperTextView {
134135
}
135136

136137

137-
// Adapted from GTK 4 Widget Factory Demo: https://gitlab.gnome.org/GNOME/gtk/-/tree/main/demos/widget-factory
138-
private void add_formatting_options_to_text_view_context_menu (Gtk.TextView text_view) {
139-
Menu menu = this.create_formatting_menu ();
140-
this.set_extra_menu (menu);
141-
}
142138

143139
private void handle_text_buffer_inserted_text (ref Gtk.TextIter iter, string new_text, int new_text_length) {
144140
Gtk.TextTagTable text_buffer_tags = this.buffer.get_tag_table ();
@@ -322,17 +318,17 @@ public class jorts.StickyView : Granite.HyperTextView {
322318
}
323319

324320
private void toggle_format (SimpleAction action, Variant value) {
325-
Gtk.TextIter start_iterator, end_itrator;
321+
Gtk.TextIter start_iterator, end_iterator;
326322
string name = action.get_name ();
327323

328324
action.set_state (value);
329325

330-
this.buffer.get_selection_bounds (out start_iterator, out end_itrator);
326+
this.buffer.get_selection_bounds (out start_iterator, out end_iterator);
331327

332328
if (value.get_boolean ()) {
333-
this.buffer.apply_tag_by_name (name, start_iterator, end_itrator);
329+
this.buffer.apply_tag_by_name (name, start_iterator, end_iterator);
334330
} else {
335-
this.buffer.remove_tag_by_name (name, start_iterator, end_itrator);
331+
this.buffer.remove_tag_by_name (name, start_iterator, end_iterator);
336332
}
337333
}
338334

0 commit comments

Comments
 (0)