diff --git a/src/AdornedRulerPanel.cpp b/src/AdornedRulerPanel.cpp index 9e7afd569..cba26a3fb 100644 --- a/src/AdornedRulerPanel.cpp +++ b/src/AdornedRulerPanel.cpp @@ -991,6 +991,7 @@ void AdornedRulerPanel::ReCreateButtons() // Get rid of any children we may have // DestroyChildren(); + ToolBar::MakeButtonBackgroundsSmall(); SetBackgroundColour(theTheme.Colour( clrMedium )); for (auto & button : mButtons) { diff --git a/src/toolbars/ToolBar.h b/src/toolbars/ToolBar.h index 4af8c8ef0..15f7909cf 100644 --- a/src/toolbars/ToolBar.h +++ b/src/toolbars/ToolBar.h @@ -171,13 +171,14 @@ class ToolBar /* not final */ // parenthesized, after the translated name. const TranslatedInternalString commands[], size_t nCommands); + static void MakeButtonBackgroundsSmall(); + static void MakeButtonBackgroundsLarge(); + protected: void SetButton(bool down, AButton *button); - void MakeMacRecoloredImage(teBmps eBmpOut, teBmps eBmpIn); - void MakeRecoloredImage(teBmps eBmpOut, teBmps eBmpIn); - void MakeButtonBackgroundsLarge(); - void MakeButtonBackgroundsSmall(); + static void MakeMacRecoloredImage(teBmps eBmpOut, teBmps eBmpIn); + static void MakeRecoloredImage(teBmps eBmpOut, teBmps eBmpIn); wxBoxSizer *GetSizer();