@@ -89,11 +89,11 @@ std::optional<std::string> SaveScreenshot(std::vector<uint8> data, int width, in
89
89
if (SaveScreenshotToClipboard (image))
90
90
{
91
91
if (!save_screenshot)
92
- return " Screenshot saved to clipboard" ;
92
+ return _tr ( " Screenshot saved to clipboard" ) ;
93
93
}
94
94
else
95
95
{
96
- return " Failed to open clipboard" ;
96
+ return _tr ( " Failed to open clipboard" ) ;
97
97
}
98
98
}
99
99
if (save_screenshot)
@@ -102,11 +102,11 @@ std::optional<std::string> SaveScreenshot(std::vector<uint8> data, int width, in
102
102
if (imagePath.has_value () && SaveScreenshotToFile (imagePath.value (), image))
103
103
{
104
104
if (mainWindow)
105
- return " Screenshot saved" ;
105
+ return _tr ( " Screenshot saved" ) ;
106
106
}
107
107
else
108
108
{
109
- return " Failed to save screenshot to file" ;
109
+ return _tr ( " Failed to save screenshot to file" ) ;
110
110
}
111
111
}
112
112
return std::nullopt ;
@@ -140,7 +140,7 @@ HotkeySettings::HotkeySettings(wxWindow* parent)
140
140
m_sizer->AddGrowableCol (1 );
141
141
m_sizer->AddGrowableCol (2 );
142
142
143
- m_panel = new wxPanel (this , wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_SIMPLE );
143
+ m_panel = new wxPanel (this , wxID_ANY, wxDefaultPosition, wxDefaultSize, wxBORDER_THEME );
144
144
m_panel->SetSizer (m_sizer);
145
145
146
146
Center ();
@@ -150,13 +150,13 @@ HotkeySettings::HotkeySettings(wxWindow* parent)
150
150
CreateColumnHeaders ();
151
151
152
152
/* global modifier */
153
- CreateHotkeyRow (" Hotkey modifier" , s_cfgHotkeys.modifiers );
153
+ CreateHotkeyRow (_tr ( " Hotkey modifier" ) , s_cfgHotkeys.modifiers );
154
154
m_hotkeys.at (0 ).keyInput ->Hide ();
155
155
156
156
/* hotkeys */
157
- CreateHotkeyRow (" Toggle fullscreen" , s_cfgHotkeys.toggleFullscreen );
158
- CreateHotkeyRow (" Take screenshot" , s_cfgHotkeys.takeScreenshot );
159
- CreateHotkeyRow (" Toggle fast-forward" , s_cfgHotkeys.toggleFastForward );
157
+ CreateHotkeyRow (_tr ( " Toggle fullscreen" ) , s_cfgHotkeys.toggleFullscreen );
158
+ CreateHotkeyRow (_tr ( " Take screenshot" ) , s_cfgHotkeys.takeScreenshot );
159
+ CreateHotkeyRow (_tr ( " Toggle fast-forward" ) , s_cfgHotkeys.toggleFastForward );
160
160
161
161
m_controllerTimer = new wxTimer (this );
162
162
Bind (wxEVT_TIMER, &HotkeySettings::OnControllerTimer, this );
@@ -214,13 +214,15 @@ void HotkeySettings::Init(MainWindow* mainWindowFrame)
214
214
void HotkeySettings::CreateColumnHeaders (void )
215
215
{
216
216
auto * emptySpace = new wxStaticText (m_panel, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL);
217
- auto * keyboard = new wxStaticText (m_panel, wxID_ANY, " Keyboard" , wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL);
218
- auto * controller = new wxStaticText (m_panel, wxID_ANY, " Controller" , wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL);
217
+ auto * keyboard = new wxStaticText (m_panel, wxID_ANY, _tr (" Keyboard" ), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL);
218
+ auto * controller = new wxStaticText (m_panel, wxID_ANY, _tr (" Controller" ), wxDefaultPosition, wxDefaultSize, wxALIGN_CENTER_HORIZONTAL);
219
+ keyboard->SetFont (keyboard->GetFont ().Bold ().Larger ());
220
+ controller->SetFont (controller->GetFont ().Bold ().Larger ());
219
221
220
222
keyboard->SetMinSize (m_minButtonSize);
221
223
controller->SetMinSize (m_minButtonSize);
222
224
223
- auto flags = wxSizerFlags ().Expand ();
225
+ auto flags = wxSizerFlags ().Expand (). Border (wxTOP, 10 ) ;
224
226
m_sizer->Add (emptySpace, flags);
225
227
m_sizer->Add (keyboard, flags);
226
228
m_sizer->Add (controller, flags);
0 commit comments