forked from mia/Aegisub
Don't embolden spell check suggestions
Setting the font to bold also changes the font size, which results in the suggestions looking worse than the default appearance is. Originally committed to SVN as r6269.
This commit is contained in:
parent
ce01b39248
commit
4726402abd
1 changed files with 1 additions and 11 deletions
|
@ -727,9 +727,6 @@ void SubsTextEditCtrl::OnContextMenu(wxContextMenuEvent &event) {
|
||||||
if (spellchecker.get() && currentWord.Length()) {
|
if (spellchecker.get() && currentWord.Length()) {
|
||||||
bool rightSpelling = spellchecker->CheckWord(currentWord);
|
bool rightSpelling = spellchecker->CheckWord(currentWord);
|
||||||
|
|
||||||
wxFont font;
|
|
||||||
font.SetWeight(wxFONTWEIGHT_BOLD);
|
|
||||||
|
|
||||||
sugs.Clear();
|
sugs.Clear();
|
||||||
sugs = spellchecker->GetSuggestions(currentWord);
|
sugs = spellchecker->GetSuggestions(currentWord);
|
||||||
int nSugs = sugs.Count();
|
int nSugs = sugs.Count();
|
||||||
|
@ -740,11 +737,7 @@ void SubsTextEditCtrl::OnContextMenu(wxContextMenuEvent &event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i=0;i<nSugs;i++) {
|
for (int i=0;i<nSugs;i++) {
|
||||||
wxMenuItem *itm = new wxMenuItem(&menu, EDIT_MENU_SUGGESTIONS+i, sugs[i]);
|
menu.Append(EDIT_MENU_SUGGESTIONS+i, sugs[i]);
|
||||||
#ifdef __WINDOWS__
|
|
||||||
itm->SetFont(font);
|
|
||||||
#endif
|
|
||||||
menu.Append(itm);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Append "add word"
|
// Append "add word"
|
||||||
|
@ -808,9 +801,6 @@ void SubsTextEditCtrl::OnContextMenu(wxContextMenuEvent &event) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (result.size()) {
|
if (result.size()) {
|
||||||
wxFont font;
|
|
||||||
font.SetStyle(wxFONTSTYLE_ITALIC);
|
|
||||||
|
|
||||||
// Create thesaurus menu
|
// Create thesaurus menu
|
||||||
wxMenu *thesMenu = new wxMenu();
|
wxMenu *thesMenu = new wxMenu();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue