| 178 | } |
| 179 | |
| 180 | AButton* SelectionBar::MakeSetupButton() |
| 181 | { |
| 182 | wxImage up = theTheme.Image(bmpRecoloredUpSmall); |
| 183 | up.Rescale(23, 23, wxIMAGE_QUALITY_HIGH); |
| 184 | wxImage down = theTheme.Image(bmpRecoloredDownSmall); |
| 185 | down.Rescale(23, 23, wxIMAGE_QUALITY_HIGH); |
| 186 | wxImage hiliteUp = theTheme.Image(bmpRecoloredUpHiliteSmall); |
| 187 | hiliteUp.Rescale(23, 23, wxIMAGE_QUALITY_HIGH); |
| 188 | wxImage hiliteDown = theTheme.Image(bmpRecoloredHiliteSmall); |
| 189 | hiliteDown.Rescale(23, 23, wxIMAGE_QUALITY_HIGH); |
| 190 | |
| 191 | auto btn = safenew AButton( |
| 192 | this, wxID_ANY, wxDefaultPosition, wxSize { 23, 23 }, up, hiliteUp, down, |
| 193 | hiliteDown, up, false); |
| 194 | |
| 195 | btn->SetButtonType(AButton::FrameButton); |
| 196 | btn->SetIcon(theTheme.Image(bmpCogwheel)); |
| 197 | btn->SetLabel({}); |
| 198 | btn->SetName(XO("Selection Toolbar Setup").Translation()); |
| 199 | |
| 200 | return btn; |
| 201 | } |
| 202 | |
| 203 | void SelectionBar::AddTitle( |
| 204 | const TranslatableString & Title, wxSizer * pSizer ){ |
nothing calls this directly
no test coverage detected