diff --git a/aegisub/dialog_colorpicker.cpp b/aegisub/dialog_colorpicker.cpp index 948a01d10..45a56d2f2 100644 --- a/aegisub/dialog_colorpicker.cpp +++ b/aegisub/dialog_colorpicker.cpp @@ -48,6 +48,7 @@ #include "colorspace.h" #include "ass_style.h" #include "options.h" +#include "help_button.h" #ifdef WIN32 @@ -560,7 +561,11 @@ DialogColorPicker::DialogColorPicker(wxWindow *parent, wxColour initial_color) picker_sizer->Add(recent_box, 0, wxALIGN_CENTER); picker_sizer->AddStretchSpacer(); - wxSizer *button_sizer = CreateStdDialogButtonSizer(wxOK|wxCANCEL); + wxStdDialogButtonSizer *button_sizer = new wxStdDialogButtonSizer(); + button_sizer->AddButton(new wxButton(this,wxID_OK)); + button_sizer->AddButton(new wxButton(this,wxID_CANCEL)); + button_sizer->AddButton(new HelpButton(this,_T("Colour Picker"))); + button_sizer->Realize(); wxSizer *input_sizer = new wxBoxSizer(wxVERTICAL); input_sizer->Add(rgb_box, 0, wxALIGN_CENTER|wxEXPAND); diff --git a/aegisub/help_button.cpp b/aegisub/help_button.cpp index 42d8bf4d7..9f039d668 100644 --- a/aegisub/help_button.cpp +++ b/aegisub/help_button.cpp @@ -95,6 +95,7 @@ void HelpButton::InitStatic() { if (!pages) { pages = new std::map; std::map &page = *pages; + page[_T("Colour Picker")] = _T("Colour_Picker"); page[_T("Kanji Timer")] = _T("Kanji_Timer"); page[_T("Main")] = _T(""); page[_T("Options")] = _T("Options"); diff --git a/aegisub/options.cpp b/aegisub/options.cpp index 67d08f462..0a00d6d62 100644 --- a/aegisub/options.cpp +++ b/aegisub/options.cpp @@ -359,7 +359,7 @@ void OptionsManager::LoadDefaults(bool onlyDefaults) { SetBool(_T("Select Match comments"),false); SetText(_T("Color Picker Recent"), _T("&H000000& &H0000FF& &H00FFFF& &H00FF00& &HFFFF00& &HFF0000& &HFF00FF& &HFFFFFF&")); - SetInt(_T("Color Picker Mode"), 3); + SetInt(_T("Color Picker Mode"), 4); SetText(_T("Last open subtitles path"),_T("")); SetText(_T("Last open video path"),_T(""));