| 103 | ; |
| 104 | |
| 105 | AButton* MakeControlToolBarButton(wxWindow* parent, |
| 106 | wxWindowID id, |
| 107 | const TranslatableString& label, |
| 108 | const wxImage& iconUp, |
| 109 | const wxImage& iconDown, |
| 110 | const wxImage& iconDisabled) |
| 111 | { |
| 112 | auto button = safenew AButton(parent, id); |
| 113 | button->SetButtonType(AButton::FrameButton); |
| 114 | button->SetImages( |
| 115 | theTheme.Image(bmpRecoloredUpLarge), |
| 116 | theTheme.Image(bmpRecoloredUpHiliteLarge), |
| 117 | theTheme.Image(bmpRecoloredDownLarge), |
| 118 | theTheme.Image(bmpRecoloredHiliteLarge), |
| 119 | theTheme.Image(bmpRecoloredUpLarge)); |
| 120 | button->SetIcons(iconUp, iconDown, iconDisabled); |
| 121 | button->SetLabel(label); |
| 122 | button->SetMinSize(wxSize { 52, 52 }); |
| 123 | button->SetFrameMid(2); |
| 124 | return button; |
| 125 | } |
| 126 | |
| 127 | } |
| 128 |
no test coverage detected