@@ -176,9 +176,11 @@ namespace Pebbles {
176176 // Make buttons on the left
177177 all_clear_button = new StyledButton (" AC" , _(" All Clear" ), {" Delete" });
178178 all_clear_button. get_style_context (). add_class (Gtk . STYLE_CLASS_DESTRUCTIVE_ACTION );
179+ all_clear_button. get_style_context (). add_class (" pebbles_button_font_size" );
179180 del_button = new Gtk .Button .from_icon_name (" edit-clear-symbolic" , Gtk . IconSize . BUTTON );
180181 del_button. set_tooltip_text (_(" Backspace" ));
181182 del_button. get_style_context (). remove_class (" image-button" );
183+ del_button. get_style_context (). add_class (" pebbles_button_font_size" );
182184 if (display_unit. input_entry. get_text () == " 0" || display_unit. input_entry. get_text () == " " ) {
183185 del_button. sensitive = false ;
184186 } else {
@@ -191,27 +193,41 @@ namespace Pebbles {
191193 del_button. sensitive = true ;
192194 });
193195 variable_button = new StyledButton (" 𝑥" , _(" Variable for linear expressions" ), {" X" });
196+ variable_button. get_style_context (). add_class (" pebbles_button_font_size" );
194197 divide_button = new StyledButton (" \x C3\x B7" , _(" Divide" ));
195- divide_button. get_style_context (). add_class (" h3 " );
198+ divide_button. get_style_context (). add_class (" pebbles_button_font_size_h3 " );
196199 seven_button = new StyledButton (" 7" );
200+ seven_button. get_style_context (). add_class (" pebbles_button_font_size" );
197201 eight_button = new StyledButton (" 8" );
202+ eight_button. get_style_context (). add_class (" pebbles_button_font_size" );
198203 nine_button = new StyledButton (" 9" );
204+ nine_button. get_style_context (). add_class (" pebbles_button_font_size" );
199205 multiply_button = new StyledButton (" \x C3\x 97" , _(" Multiply" ));
200- multiply_button. get_style_context (). add_class (" h3 " );
206+ multiply_button. get_style_context (). add_class (" pebbles_button_font_size_h3 " );
201207 four_button = new StyledButton (" 4" );
208+ four_button. get_style_context (). add_class (" pebbles_button_font_size" );
202209 five_button = new StyledButton (" 5" );
210+ five_button. get_style_context (). add_class (" pebbles_button_font_size" );
203211 six_button = new StyledButton (" 6" );
212+ six_button. get_style_context (). add_class (" pebbles_button_font_size" );
204213 subtract_button = new StyledButton (" \x E2\x 88\x 92" , _(" Subtract" ));
205- subtract_button. get_style_context (). add_class (" h3 " );
214+ subtract_button. get_style_context (). add_class (" pebbles_button_font_size_h3 " );
206215 one_button = new StyledButton (" 1" );
216+ one_button. get_style_context (). add_class (" pebbles_button_font_size" );
207217 two_button = new StyledButton (" 2" );
218+ two_button. get_style_context (). add_class (" pebbles_button_font_size" );
208219 three_button = new StyledButton (" 3" );
220+ three_button. get_style_context (). add_class (" pebbles_button_font_size" );
209221 plus_button = new StyledButton (" +" , _(" Add" ));
210- plus_button. get_style_context (). add_class (" h3 " );
222+ plus_button. get_style_context (). add_class (" pebbles_button_font_size_h3 " );
211223 zero_button = new StyledButton (" 0" );
224+ zero_button. get_style_context (). add_class (" pebbles_button_font_size" );
212225 decimal_button = new StyledButton (Utils . get_local_radix_symbol ());
226+ decimal_button. get_style_context (). add_class (" pebbles_button_font_size" );
213227 left_parenthesis_button = new StyledButton (" (" );
228+ left_parenthesis_button. get_style_context (). add_class (" pebbles_button_font_size" );
214229 right_parenthesis_button = new StyledButton (" )" );
230+ right_parenthesis_button. get_style_context (). add_class (" pebbles_button_font_size" );
215231
216232 button_container_left. attach (all_clear_button, 0 , 0 , 1 , 1 );
217233 button_container_left. attach (del_button, 1 , 0 , 1 , 1 );
@@ -240,37 +256,53 @@ namespace Pebbles {
240256 // Make buttons on the right
241257 pow_root_button = new StyledButton (" x<sup>y</sup>" , _(" x raised to the power y" ), {" Z" });
242258 pow_root_button. get_style_context (). add_class (" Pebbles_Buttons_Function" );
259+ pow_root_button. get_style_context (). add_class (" pebbles_button_font_size" );
243260 memory_plus_button = new StyledButton (" M+" , _(" Add it to the value in Memory" ), {" F3" });
244261 memory_plus_button. get_style_context (). add_class (" Pebbles_Buttons_Memory" );
262+ memory_plus_button. get_style_context (). add_class (" pebbles_button_font_size" );
245263 sin_button = new StyledButton (" sin" , _(" Sine" ), {" S" });
246264 sin_button. get_style_context (). add_class (" Pebbles_Buttons_Function" );
265+ sin_button. get_style_context (). add_class (" pebbles_button_font_size" );
247266 sinh_button = new StyledButton (" sinh" , _(" Hyperbolic Sine" ), {" H" });
248267 sinh_button. get_style_context (). add_class (" Pebbles_Buttons_Function" );
268+ sinh_button. get_style_context (). add_class (" pebbles_button_font_size" );
249269 memory_minus_button = new StyledButton (" M\x E2\x 88\x 92" , _(" Subtract it from the value in Memory" ), {" F4" });
250270 memory_minus_button. get_style_context (). add_class (" Pebbles_Buttons_Memory" );
271+ memory_minus_button. get_style_context (). add_class (" pebbles_button_font_size" );
251272 cos_button = new StyledButton (" cos" , _(" Cosine" ), {" C" });
252273 cos_button. get_style_context (). add_class (" Pebbles_Buttons_Function" );
274+ cos_button. get_style_context (). add_class (" pebbles_button_font_size" );
253275 cosh_button = new StyledButton (" cosh" , _(" Hyperbolic Cosine" ), {" O" });
254276 cosh_button. get_style_context (). add_class (" Pebbles_Buttons_Function" );
277+ cosh_button. get_style_context (). add_class (" pebbles_button_font_size" );
255278 log_mod_button = new StyledButton (" Mod" , _(" Modulus" ), {" M" });
256279 log_mod_button. get_style_context (). add_class (" Pebbles_Buttons_Function" );
280+ log_mod_button. get_style_context (). add_class (" pebbles_button_font_size" );
257281 memory_recall_button = new StyledButton (" MR" , _(" Recall value from Memory" ), {" F5" });
258282 memory_recall_button. get_style_context (). add_class (" Pebbles_Buttons_Memory" );
283+ memory_recall_button. get_style_context (). add_class (" pebbles_button_font_size" );
259284 tan_button = new StyledButton (" tan" , _(" Tangent" ), {" T" });
260285 tan_button. get_style_context (). add_class (" Pebbles_Buttons_Function" );
286+ tan_button. get_style_context (). add_class (" pebbles_button_font_size" );
261287 tanh_button = new StyledButton (" tanh" , _(" Hyperbolic Tangent" ), {" A" });
262288 tanh_button. get_style_context (). add_class (" Pebbles_Buttons_Function" );
289+ tanh_button. get_style_context (). add_class (" pebbles_button_font_size" );
263290 perm_comb_button = new StyledButton (" <sup>n</sup>P\x E1\x B5\x A3" , _(" Permutations" ), {" P" });
264291 perm_comb_button. get_style_context (). add_class (" Pebbles_Buttons_Function" );
292+ perm_comb_button. get_style_context (). add_class (" pebbles_button_font_size" );
265293 memory_clear_button = new StyledButton (" MC" , _(" Memory Clear" ), {" F6" });
266294 memory_clear_button. get_style_context (). add_class (" Pebbles_Buttons_Memory" );
295+ memory_clear_button. get_style_context (). add_class (" pebbles_button_font_size" );
267296 fact_button = new StyledButton (" !" , _(" Factorial" ), {" F" });
268297 fact_button. get_style_context (). add_class (" Pebbles_Buttons_Function" );
298+ fact_button. get_style_context (). add_class (" pebbles_button_font_size" );
269299 constant_button = new StyledButton (constant_label_1, constant_desc_1, {" R" });
270300 constant_button. get_style_context (). add_class (" Pebbles_Buttons_Function" );
301+ constant_button. get_style_context (). add_class (" pebbles_button_font_size" );
271302 last_answer_button = new StyledButton (" Ans" , _(" Last answer" ), {" F7" });
272303 last_answer_button. sensitive = false ;
273304 last_answer_button. get_style_context (). add_class (" Pebbles_Buttons_Function" );
305+ last_answer_button. get_style_context (). add_class (" pebbles_button_font_size" );
274306
275307 // Make integration section
276308 var integration_grid = new Gtk .Grid ();
@@ -280,6 +312,7 @@ namespace Pebbles {
280312 integration_button = new StyledButton (" \x E2\x 88\x AB" , _(" Definite Integral (Upper limit 'u' and Lower limit 'l')" ), {" I" });
281313 integration_button. get_style_context (). add_class (Gtk . STYLE_CLASS_SUGGESTED_ACTION );
282314 integration_button. get_style_context (). add_class (" suggested-override" );
315+ integration_button. get_style_context (). add_class (" pebbles_button_font_size" );
283316 integration_button. margin_top = 5 ;
284317 integration_button. margin_start = 2 ;
285318
@@ -341,6 +374,7 @@ namespace Pebbles {
341374 derivation_button = new StyledButton (" dy/dx" , _(" Derivative (at a point x)" ), {" D" });
342375 derivation_button. get_style_context (). add_class (Gtk . STYLE_CLASS_SUGGESTED_ACTION );
343376 derivation_button. get_style_context (). add_class (" suggested-override" );
377+ derivation_button. get_style_context (). add_class (" pebbles_button_font_size" );
344378 derivation_button. margin_top = 5 ;
345379 derivation_button. margin_start = 2 ;
346380
0 commit comments