From 25f22062053e726467a0d3b01958f59883773a04 Mon Sep 17 00:00:00 2001 From: "james.k.crook@gmail.com" Date: Sun, 25 Aug 2013 11:35:01 +0000 Subject: [PATCH] Fix for small arrow on wxMac. This is done blind, based on a guess that wxWin resizes the icons and wxMac does not. --- images/Arrow.xpm | 131 ++++++++++++++++++++++------------ src/effects/VST/VSTEffect.cpp | 2 +- 2 files changed, 88 insertions(+), 45 deletions(-) diff --git a/images/Arrow.xpm b/images/Arrow.xpm index c873cb5b0..993346ccf 100644 --- a/images/Arrow.xpm +++ b/images/Arrow.xpm @@ -1,47 +1,90 @@ -/* XPM */ -static const char * arrow_xpm[] = { -"9 16 3 1", -"# c #000000", -"+ c #808080", -". c #FFFFFF", -".........", -".........", -".........", -".........", -"....#....", -"....##...", -"....###..", -"########.", -"#########", -"########+", -"++++###+.", -"....##+..", -"....#+...", -"....+....", -".........", -"........."}; - -static const char * empty_9x16_xpm[] = { -"9 16 2 1", -"# c #000000", -". c #FFFFFF", -".........", -".........", -".........", -".........", -".........", -".........", -".........", -".........", -".........", -".........", -".........", -".........", -".........", -".........", -".........", -"........."}; - +/* XPM */ +static const char * arrow_xpm[] = { +"9 16 3 1", +"# c #000000", +"+ c #808080", +". c #FFFFFF", +".........", +".........", +".........", +".........", +"....#....", +"....##...", +"....###..", +"########.", +"#########", +"########+", +"++++###+.", +"....##+..", +"....#+...", +"....+....", +".........", +"........."}; + +static const char * empty_9x16_xpm[] = { +"9 16 2 1", +"# c #000000", +". c #FFFFFF", +".........", +".........", +".........", +".........", +".........", +".........", +".........", +".........", +".........", +".........", +".........", +".........", +".........", +".........", +".........", +"........."}; + +/* XPM */ +static char * arrow15x15_xpm[] = { +"15 15 24 1", +" c None", +". c #FFFFFF", +"+ c #929292", +"@ c #000000", +"# c #9F9F9F", +"$ c #262626", +"% c #D8D8D8", +"& c #5F5F5F", +"* c #FEFEFE", +"= c #4F4F4F", +"- c #888888", +"; c #808080", +"> c #828282", +", c #2A2A2A", +"' c #7F7F7F", +") c #D5D5D5", +"! c #111111", +"~ c #646464", +"{ c #B8B8B8", +"] c #989898", +"^ c #3A3A3A", +"/ c #9B9B9B", +"( c #EDEDED", +"_ c #C9C9C9", +"...............", +"...............", +"...............", +"......+@+......", +"......#@@$%....", +"......#@@@@&*..", +"@@@@@@@@@@@@@#.", +"@@@@@@@@@@@@@@@", +"@@@@@@@@@@@@@=-", +";;;;>-=@@@@,').", +"......#@@!~{*..", +"......]@^/(....", +"......_;_......", +"...............", +"..............."}; + /* XPM */ static char * unchecked_xpm[] = { "15 15 56 1", diff --git a/src/effects/VST/VSTEffect.cpp b/src/effects/VST/VSTEffect.cpp index e28cc9ff2..290235c0b 100644 --- a/src/effects/VST/VSTEffect.cpp +++ b/src/effects/VST/VSTEffect.cpp @@ -182,7 +182,7 @@ void PluginRegistrationDialog::PopulateOrExchange(ShuttleGui &S) pImageList->Add(wxIcon(unchecked_xpm)); pImageList->Add(wxIcon(checked_xpm)); - pImageList->Add(wxIcon(arrow_xpm)); + pImageList->Add(wxIcon(arrow15x15_xpm)); S.StartVerticalLay(true); {