Skip to content

Commit

Permalink
Adjust Spell Check button positions (#1245)
Browse files Browse the repository at this point in the history
Adjust button positions to more closely match what people are
used to, particularly the commonly used, Change, Skip and Skip All.

(After user feedback.)
  • Loading branch information
windymilla authored Sep 4, 2023
1 parent a43f99c commit 69d62a0
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions src/lib/Guiguts/SpellCheck.pm
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ sub spellchecker {
::unbusy();
},
-text => 'Change',
-width => 14,
-width => 22,
)->pack(
-side => 'left',
-pady => 2,
Expand All @@ -572,31 +572,43 @@ sub spellchecker {
-padx => 3,
-anchor => 'nw'
);
my $ignoreallbutton = $spf2->Button(
my $dictmyaddbutton = $spf2->Button(
-command => sub {
::busy();
spellmyaddword( $::lglobal{misspelledentry}->get );
spellignoreall();
spellchecknext();
::unbusy();
},
-text => 'Skip All <Ctrl+i>',
-width => 14,
-text => 'Add To Project Dic. <Ctrl+p>',
-width => 22,
)->pack(
-side => 'left',
-pady => 2,
-padx => 3,
-anchor => 'nw'
);
my $dictmyaddbutton = $spf3->Button(
my $dictmybutton = $spf3->Button(
-command => sub {
spelladdgoodwords();
},
-text => 'Add Goodwords To Proj. Dic.',
-width => 22,
)->pack(
-side => 'left',
-pady => 2,
-padx => 3,
-anchor => 'nw'
);
my $ignoreallbutton = $spf3->Button(
-command => sub {
::busy();
spellmyaddword( $::lglobal{misspelledentry}->get );
spellignoreall();
spellchecknext();
::unbusy();
},
-text => 'Add To Project Dic. <Ctrl+p>',
-width => 22,
-text => 'Skip All <Ctrl+i>',
-width => 14,
)->pack(
-side => 'left',
-pady => 2,
Expand Down Expand Up @@ -650,18 +662,6 @@ sub spellchecker {
-padx => 3,
-anchor => 'nw'
);
my $dictmybutton = $spf5->Button(
-command => sub {
spelladdgoodwords();
},
-text => 'Add Goodwords To Proj. Dic.',
-width => 24,
)->pack(
-side => 'left',
-pady => 2,
-padx => 3,
-anchor => 'nw'
);
my $spelloptionsbutton = $spf5->Button(
-command => sub { spelloptions() },
-text => 'Options',
Expand Down

0 comments on commit 69d62a0

Please sign in to comment.