Optimize (for size) the cross_xpm used for the X button in wxMiniFrame. We use only 2 colors, so don't declare 16 of
them. Also swap the characters used to make the X visible in source code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@37303 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -248,29 +248,15 @@ static void gtk_button_clicked_callback( GtkWidget *WXUNUSED(widget), wxMiniFram
|
|||||||
|
|
||||||
static const char *cross_xpm[] = {
|
static const char *cross_xpm[] = {
|
||||||
/* columns rows colors chars-per-pixel */
|
/* columns rows colors chars-per-pixel */
|
||||||
"5 5 16 1",
|
"5 5 2 1",
|
||||||
" c Gray0",
|
"# c Gray0",
|
||||||
". c #bf0000",
|
" c None",
|
||||||
"X c #00bf00",
|
|
||||||
"o c #bfbf00",
|
|
||||||
"O c #0000bf",
|
|
||||||
"+ c #bf00bf",
|
|
||||||
"@ c #00bfbf",
|
|
||||||
"# c None",
|
|
||||||
"$ c #808080",
|
|
||||||
"% c Red",
|
|
||||||
"& c Green",
|
|
||||||
"* c Yellow",
|
|
||||||
"= c Blue",
|
|
||||||
"- c Magenta",
|
|
||||||
"; c Cyan",
|
|
||||||
": c Gray100",
|
|
||||||
/* pixels */
|
/* pixels */
|
||||||
" ### ",
|
"# #",
|
||||||
"# # #",
|
" # # ",
|
||||||
"## ##",
|
" # ",
|
||||||
"# # #",
|
" # # ",
|
||||||
" ### ",
|
"# #",
|
||||||
};
|
};
|
||||||
|
|
||||||
IMPLEMENT_DYNAMIC_CLASS(wxMiniFrame,wxFrame)
|
IMPLEMENT_DYNAMIC_CLASS(wxMiniFrame,wxFrame)
|
||||||
|
Reference in New Issue
Block a user