Skip to content

Commit

Permalink
allow to override font
Browse files Browse the repository at this point in the history
  • Loading branch information
dk committed Nov 12, 2024
1 parent feaed21 commit 6720b32
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Prima/MsgBox.pm
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ sub message_box
scaleChildren => 1,
visible => 0,
text => $title,
font => $::application-> get_message_font,
font => $extras-> {font} || $::application-> get_message_font,
owner => $extras-> {owner} || $::main_window || $::application,
onExecute => sub {
Prima::Utils::beep( $options) if $options && !$nosound;
Expand Down Expand Up @@ -395,6 +395,11 @@ Selects the default button in the dialog, i.e. the button that reacts on the
return key. Its value must be to an C<mb::> constant of the desired button. If
this option is not set, the leftmost button is selected as the default.
=item font FONT
The message boxes use C<Application.get_message_font>, but the C<font> option
can override that.
=item helpTopic TOPIC
Selects the help TOPIC invoked in the help viewer window if the C<mb::Help>
Expand Down

0 comments on commit 6720b32

Please sign in to comment.