Add icons for the various file selector selection (resp. file) types.
authorib <ib@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 13 Apr 2018 12:43:04 +0000 (12:43 +0000)
committerib <ib@b3059339-0415-0410-9bf9-f77b7e298cf2>
Fri, 13 Apr 2018 12:43:04 +0000 (12:43 +0000)
Due to ancient GTK+ code these cannot be in Portable Network Graphics
format for the time being, but they have been carefully optimized by
hand.

Add fs_get_pixmap() which will return the icon appropriate to the
FILESELECT type or to the filter the file extension is in. Call it
for every file when building the file list.

git-svn-id: svn://git.mplayerhq.hu/mplayer/trunk@38089 b3059339-0415-0410-9bf9-f77b7e298cf2

gui/dialog/fileselect.c
gui/dialog/pixmaps/file_audio.xpm [new file with mode: 0644]
gui/dialog/pixmaps/file_audio_track.xpm [new file with mode: 0644]
gui/dialog/pixmaps/file_font.xpm [new file with mode: 0644]
gui/dialog/pixmaps/file_image.xpm [new file with mode: 0644]
gui/dialog/pixmaps/file_playlist.xpm [new file with mode: 0644]
gui/dialog/pixmaps/file_subtitle.xpm [new file with mode: 0644]
gui/dialog/pixmaps/file_video.xpm [new file with mode: 0644]

index 723b903..f18f0ea 100644 (file)
 #include "tools.h"
 #include "pixmaps/dir.xpm"
 #include "pixmaps/file.xpm"
+#include "pixmaps/file_audio.xpm"
+#include "pixmaps/file_audio_track.xpm"
+#include "pixmaps/file_font.xpm"
+#include "pixmaps/file_image.xpm"
+#include "pixmaps/file_playlist.xpm"
+#include "pixmaps/file_subtitle.xpm"
+#include "pixmaps/file_video.xpm"
 #include "gui/interface.h"
 #include "gui/app/app.h"
 #include "gui/app/cfg.h"
@@ -159,9 +166,7 @@ GtkWidget *fsFilterCombo;
 
 GtkStyle *style;
 GdkPixmap *dpixmap;
-GdkPixmap *fpixmap;
 GdkBitmap *dmask;
-GdkBitmap *fmask;
 
 static void fs_PersistantHistory(char *subject)
 {
@@ -235,8 +240,127 @@ static void clist_append_fname(GtkWidget *list, char *fname,
     g_free(str[1]);
 }
 
+static void fs_get_pixmap(const char *ext, GdkPixmap **pixmap, GdkBitmap **mask)
+{
+    static GdkPixmap *apixmap, *atpixmap, *avpixmap, *fpixmap, *ipixmap, *ppixmap, *spixmap, *vpixmap;
+    static GdkBitmap *amask, *atmask, *avmask, *fmask, *imask, *pmask, *smask, *vmask;
+    size_t len = 0;
+    char *p;
+    int i;
+
+    if (ext)
+        len = strlen(ext);
+
+    switch (fsType) {
+    case FILESELECT_SUBTITLE:
+        if (!spixmap)
+            spixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &smask, &style->bg[GTK_STATE_NORMAL], (gchar **)file_subtitle_xpm);
+        *pixmap = spixmap;
+        *mask   = smask;
+        break;
+
+    case FILESELECT_AUDIO:
+        if (!atpixmap)
+            atpixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &atmask, &style->bg[GTK_STATE_NORMAL], (gchar **)file_audio_track_xpm);
+        *pixmap = atpixmap;
+        *mask   = atmask;
+        break;
+
+    case FILESELECT_FONT:
+        if (!fpixmap)
+            fpixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &fmask, &style->bg[GTK_STATE_NORMAL], (gchar **)file_font_xpm);
+        *pixmap = fpixmap;
+        *mask   = fmask;
+        break;
+
+    case FILESELECT_IMAGE:
+        if (!ipixmap)
+            ipixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &imask, &style->bg[GTK_STATE_NORMAL], (gchar **)file_image_xpm);
+        *pixmap = ipixmap;
+        *mask   = imask;
+        break;
+
+    default:
+
+        *pixmap = NULL;
+
+        for (i = 0; ext && fsVideoAudioFilterNames[i][0]; i++) {
+            if (strcmp(MSGTR_GUI_FilterVideoAll, fsVideoAudioFilterNames[i][0]) == 0) {
+                if ((p = strstr(fsVideoAudioFilterNames[i][1], ext)) && (p[len] == ',' || p[len] == 0)) {
+                    if (!vpixmap)
+                        vpixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &vmask, &style->bg[GTK_STATE_NORMAL], (gchar **)file_video_xpm);
+                    *pixmap = vpixmap;
+                    *mask   = vmask;
+                    break;
+                }
+            }
+
+            if (strcmp(MSGTR_GUI_FilterAudioAll, fsVideoAudioFilterNames[i][0]) == 0) {
+                if ((p = strstr(fsVideoAudioFilterNames[i][1], ext)) && (p[len] == ',' || p[len] == 0)) {
+                    if (!apixmap)
+                        apixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &amask, &style->bg[GTK_STATE_NORMAL], (gchar **)file_audio_xpm);
+                    *pixmap = apixmap;
+                    *mask   = amask;
+                    break;
+                }
+            }
+
+            if (strcmp(MSGTR_GUI_FilterFilePlaylist, fsVideoAudioFilterNames[i][0]) == 0) {
+                if ((p = strstr(fsVideoAudioFilterNames[i][1], ext)) && (p[len] == ',' || p[len] == 0)) {
+                    if (!ppixmap)
+                        ppixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &pmask, &style->bg[GTK_STATE_NORMAL], (gchar **)file_playlist_xpm);
+                    *pixmap = ppixmap;
+                    *mask   = pmask;
+                    break;
+                }
+            }
+
+            if (strcmp(MSGTR_GUI_FilterImageCue, fsVideoAudioFilterNames[i][0]) == 0) {
+                if ((p = strstr(fsVideoAudioFilterNames[i][1], ext)) && (p[len] == ',' || p[len] == 0)) {
+                    if (!ipixmap)
+                        ipixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &imask, &style->bg[GTK_STATE_NORMAL], (gchar **)file_image_xpm);
+                    *pixmap = ipixmap;
+                    *mask   = imask;
+                    break;
+                }
+            }
+        }
+
+        for (i = 0; !*pixmap && ext && fsSubtitleFilterNames[i][0]; i++) {
+            if ((p = strstr(fsSubtitleFilterNames[i][1], ext)) && (p[len] == ',' || p[len] == 0)) {
+                if (!spixmap)
+                    spixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &smask, &style->bg[GTK_STATE_NORMAL], (gchar **)file_subtitle_xpm);
+                *pixmap = spixmap;
+                *mask   = smask;
+                break;
+            }
+        }
+
+        for (i = 0; !*pixmap && ext && fsImageFilterNames[i][0]; i++) {
+            if ((p = strstr(fsImageFilterNames[i][1], ext)) && (p[len] == ',' || p[len] == 0)) {
+                if (!ipixmap)
+                    ipixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &imask, &style->bg[GTK_STATE_NORMAL], (gchar **)file_image_xpm);
+                *pixmap = ipixmap;
+                *mask   = imask;
+                break;
+            }
+        }
+
+        if (!*pixmap) {
+            if (!avpixmap)
+                avpixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &avmask, &style->bg[GTK_STATE_NORMAL], (gchar **)file_xpm);
+            *pixmap = avpixmap;
+            *mask   = avmask;
+        }
+
+        break;
+    }
+}
+
 static void CheckDir(GtkWidget *list)
 {
+    GdkPixmap *fpixmap;
+    GdkBitmap *fmask;
     struct stat fs;
     unsigned int i, j, fn;
     glob_t gg;
@@ -289,6 +413,7 @@ static void CheckDir(GtkWidget *list)
             if (ext || !fext[0]) {
                 for (j = 0; j < fn; j++) {
                     if (fext[j] == NULL || strcasecmp(fext[j], ext) == 0) {
+                        fs_get_pixmap(ext, &fpixmap, &fmask);
                         clist_append_fname(list, gg.gl_pathv[i], fpixmap, fmask);
                         break;
                     }
@@ -302,6 +427,7 @@ static void CheckDir(GtkWidget *list)
     globfree(&gg);
 
     gtk_clist_set_column_width(GTK_CLIST(list), 0, 17);
+    gtk_clist_set_row_height(GTK_CLIST(list), 17);
     gtk_widget_show(list);
 }
 
@@ -641,7 +767,6 @@ static GtkWidget *CreateFileSelect(void)
 
     style   = gtk_widget_get_style(FileSelector);
     dpixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &dmask, &style->bg[GTK_STATE_NORMAL], (gchar **)dir_xpm);
-    fpixmap = gdk_pixmap_colormap_create_from_xpm_d(FileSelector->window, fsColorMap, &fmask, &style->bg[GTK_STATE_NORMAL], (gchar **)file_xpm);
 
     vbox4 = gtkAddVBox(gtkAddDialogFrame(FileSelector), 0);
     hbox4 = gtkAddHBox(vbox4, 1);
diff --git a/gui/dialog/pixmaps/file_audio.xpm b/gui/dialog/pixmaps/file_audio.xpm
new file mode 100644 (file)
index 0000000..5616d62
--- /dev/null
@@ -0,0 +1,84 @@
+/* XPM */
+static const char * const file_audio_xpm[] = {
+"16 16 64 1 0 0",
+"  c #587492",
+"! c #A0B0C1",
+"# c #4D6A87",
+"$ c #55718D",
+"% c #A9B8C7",
+"& c #55708C",
+"' c #ABBFD3",
+"( c #5B7692",
+") c #96B6D7",
+"* c #A2BBD5",
+"+ c #597390",
+", c #A6B6C5",
+"- c #4A6784",
+". c #7097C1",
+"/ c #7A9BBF",
+"0 c #84A2C2",
+"1 c #496684",
+"2 c #4A6887",
+"3 c #5D7691",
+"4 c #4B6786",
+"5 c #4C6A8A",
+"6 c #506C89",
+"7 c #637C97",
+"8 c #8499AF",
+"9 c #4B6785",
+": c #57718C",
+"; c #677E96",
+"< c #A3ADB7",
+"= c #8391A0",
+"> c #8190A1",
+"? c #99A5B4",
+"@ c #486583",
+"A c #8FA3B8",
+"B c #9FB1C5",
+"C c #566C84",
+"D c #6F859E",
+"E c #849AB4",
+"F c #7D95AE",
+"G c #7289A1",
+"H c #6886A8",
+"I c #5B738B",
+"J c #90A7BF",
+"K c #C1D5EA",
+"L c #BBD1E8",
+"M c #BAD0E8",
+"N c #BBD0E8",
+"O c #98B8DA",
+"P c #4A6684",
+"Q c #54708C",
+"R c #678EB8",
+"S c #79A4D1",
+"T c #75A1D0",
+"U c #7BA5D2",
+"V c #7AA1C8",
+"W c #4C6989",
+"X c #5D81A8",
+"Y c #6790BA",
+"Z c #6C93BD",
+"[ c #6589AF",
+"] c #4F6D8D",
+"^ c #8699AD",
+"_ c #58728E",
+"` c #6C849D",
+"a c None",
+"aaaaaaaaaaaaaaaa",
+"aaaaaaa !aaaaaaa",
+"aaaaaaa#$%aaaaaa",
+"aaaaaaa&'(%aaaaa",
+"aaaaaaa#)*+,aaaa",
+"aaaaaaa-./0#%aaa",
+"aaaaaaa123456%aa",
+"aaaaaaa11aa718aa",
+"aaaaaaa11aaa9:aa",
+"aaaaaaa11aaa;+aa",
+"aa!<=>?@1aaaABaa",
+"a!CDEFGH1aaa!aaa",
+"aIJKLMNOPaaaaaaa",
+"aQRSTTUV9aaaaaaa",
+"a!WXYZ[]^aaaaaaa",
+"aa!G_&`!aaaaaaaa"
+};
diff --git a/gui/dialog/pixmaps/file_audio_track.xpm b/gui/dialog/pixmaps/file_audio_track.xpm
new file mode 100644 (file)
index 0000000..6d6c554
--- /dev/null
@@ -0,0 +1,106 @@
+/* XPM */
+static const char * const file_audio_track_xpm[] = {
+"16 16 86 1 0 0",
+"  c #C2C5C1",
+"! c #B8BAB4",
+"# c #B6B8B2",
+"$ c #C3C5C0",
+"% c #B7BBB4",
+"& c #F2F2F1",
+"' c #FEFEFE",
+"( c #FEFEFD",
+") c #F2F2F2",
+"* c #BCBFB9",
+"+ c #BABCB7",
+", c #B9BCB4",
+"- c #F2F3F1",
+". c #F1F2EF",
+"/ c #EFF1EE",
+"0 c #EEEFEC",
+"1 c #ECEEEA",
+"2 c #EBECE9",
+"3 c #D9DBD9",
+"4 c #DBDBDB",
+"5 c #B9BCB5",
+"6 c #F4F5F3",
+"7 c #E0E4E4",
+"8 c #C5C6C3",
+"9 c #EDEDEC",
+": c #CCCDCA",
+"; c #F5F6F5",
+"< c #50719F",
+"= c #989FA3",
+"> c #9D9F9B",
+"? c #ABACA8",
+"@ c #B1B2AF",
+"A c #B5B8B1",
+"B c #F7F8F6",
+"C c #DEE3E5",
+"D c #3F6496",
+"E c #D3DADE",
+"F c #EAECE9",
+"G c #FDFDFD",
+"H c #FEFFFE",
+"I c #F8F9F8",
+"J c #F5F6F4",
+"K c #C3CCDA",
+"L c #849AB9",
+"M c #A2B3C7",
+"N c #7A92B3",
+"O c #FFFFFF",
+"P c #FAFAFA",
+"Q c #9DAFC8",
+"R c #EDF0F1",
+"S c #F2F4F3",
+"T c #4B6D9D",
+"U c #D5DBE2",
+"V c #E8EAEA",
+"W c #416597",
+"X c #FCFCFB",
+"Y c #2D558E",
+"Z c #C2CEDC",
+"[ c #849BBA",
+"] c #ACBACE",
+"^ c #3B5F95",
+"_ c #FDFEFD",
+"` c #5676A4",
+"a c #E1E6ED",
+"b c #6986AD",
+"c c #C3CDDB",
+"d c #F2F4F2",
+"e c #CED7E3",
+"f c #4E709F",
+"g c #F3F5F4",
+"h c #C4CFDB",
+"i c #617EA8",
+"j c #EEF1F3",
+"k c #E4E8EE",
+"l c #5C7AA5",
+"m c #BAC7D6",
+"n c #889EBD",
+"o c #708BB1",
+"p c #AFBFD3",
+"q c #F6F7F7",
+"r c #B8BCB4",
+"s c #F6F6F6",
+"t c #F3F3F1",
+"u c #C3C5C1",
+"v c #B7BBB3",
+"w c None",
+"w !!!!!!!#$wwwww",
+"w%&'''''()*+wwww",
+"w,'-./01234**www",
+"w5'6-./078945:ww",
+"w5';6-./<=>?@Aww",
+"w5'B;6-.CDEFG,ww",
+"w5HIBJKL.MN1G,ww",
+"w5OPQRSTUVW0G,ww",
+"w5OXYZB[]-^/_,ww",
+"w5OG`aIbcd^.(,ww",
+"w5OOGXefghi-',ww",
+"w5OOOGjkIlm6',ww",
+"w5OOOOGXnoBJ',ww",
+"w,OOOOOGpqIB'rww",
+"w%sOOOOOOOOOt%ww",
+"wuv!!!!!!!!!vuww"
+};
diff --git a/gui/dialog/pixmaps/file_font.xpm b/gui/dialog/pixmaps/file_font.xpm
new file mode 100644 (file)
index 0000000..1b54a61
--- /dev/null
@@ -0,0 +1,81 @@
+/* XPM */
+static const char * const file_font_xpm[] = {
+"16 16 61 1 0 0",
+"  c #C2C5C1",
+"! c #B8BAB4",
+"# c #B6B8B2",
+"$ c #C3C5C0",
+"% c #B7BBB4",
+"& c #F2F2F1",
+"' c #FEFEFE",
+"( c #FEFEFD",
+") c #F2F2F2",
+"* c #BCBFB9",
+"+ c #BABCB7",
+", c #B9BCB4",
+"- c #F2F3F1",
+". c #F1F2EF",
+"/ c #EFF1EE",
+"0 c #EEEFEC",
+"1 c #ECEEEA",
+"2 c #EBECE9",
+"3 c #D9DBD9",
+"4 c #DBDBDB",
+"5 c #B9BCB5",
+"6 c #F4F5F3",
+"7 c #C5C6C3",
+"8 c #EDEDEC",
+"9 c #CCCDCA",
+": c #F5F6F5",
+"; c #B1B3AF",
+"< c #9D9F9B",
+"= c #ABACA8",
+"> c #B1B2AF",
+"? c #B5B8B1",
+"@ c #F7F8F6",
+"A c #EAECE9",
+"B c #FDFDFD",
+"C c #FEFFFE",
+"D c #F8F9F8",
+"E c #F5F6F4",
+"F c #BDBEBC",
+"G c #555753",
+"H c #FFFFFF",
+"I c #FAFAFA",
+"J c #E9EAE8",
+"K c #676966",
+"L c #FCFCFB",
+"M c #8B8D89",
+"N c #ADAFAC",
+"O c #FDFEFD",
+"P c #C3C3C2",
+"Q c #7C7F7B",
+"R c #F6F7F5",
+"S c #F0F0F0",
+"T c #666864",
+"U c #8E8F8C",
+"V c #FBFCFB",
+"W c #FAFAF9",
+"X c #B8BCB4",
+"Y c #F6F6F6",
+"Z c #F3F3F1",
+"[ c #C3C5C1",
+"] c #B7BBB3",
+"^ c None",
+"^ !!!!!!!#$^^^^^",
+"^%&'''''()*+^^^^",
+"^,'-./01234**^^^",
+"^5'6-./0178459^^",
+"^5':6-./0;<=>?^^",
+"^5'@:6-./01AB,^^",
+"^5CD@E6FGG01B,^^",
+"^5HID@JKGG/0B,^^",
+"^5HLIDMNGG./O,^^",
+"^5HBLPQRGG-.(,^^",
+"^5HHSTGGGG6-',^^",
+"^5HHUPLIGGE6',^^",
+"^5HGGGBGGGGE',^^",
+"^,HHHHHBVWD@'X^^",
+"^%YHHHHHHHHHZ%^^",
+"^[]!!!!!!!!!][^^"
+};
diff --git a/gui/dialog/pixmaps/file_image.xpm b/gui/dialog/pixmaps/file_image.xpm
new file mode 100644 (file)
index 0000000..da465f1
--- /dev/null
@@ -0,0 +1,126 @@
+/* XPM */
+static const char * const file_image_xpm[] = {
+"16 16 106 2 0 0",
+"   c #C2C5C1",
+"!  c #B8BAB4",
+"#  c #B6B8B2",
+"$  c #C3C5C0",
+"%  c #B7BBB4",
+"&  c #F2F2F1",
+"'  c #FEFEFE",
+"(  c #FEFEFD",
+")  c #F2F2F2",
+"*  c #BCBFB9",
+"+  c #BABCB7",
+",  c #B9BCB4",
+"-  c #F2F3F1",
+".  c #F1F2EF",
+"/  c #EFF1EE",
+"0  c #EEEFEC",
+"1  c #ECEEEA",
+"2  c #EBECE9",
+"3  c #D9DBD9",
+"4  c #DBDBDB",
+"5  c #B9BCB5",
+"6  c #F4F5F3",
+"7  c #C5C6C3",
+"8  c #EDEDEC",
+"9  c #CCCDCA",
+":  c #F5F6F5",
+";  c #B1B3AF",
+"<  c #9D9F9B",
+"=  c #ABACA8",
+">  c #B1B2AF",
+"?  c #B5B8B1",
+"@  c #F7F8F6",
+"A  c #EAECE9",
+"B  c #FDFDFD",
+"C  c #B8BBB4",
+"D  c #787A76",
+"E  c #898A86",
+"F  c #ABADA9",
+"G  c #DEDFDC",
+"H  c #BDC0B9",
+"I  c #F4F4F4",
+"J  c #D2D3D1",
+"K  c #878985",
+"L  c #A8AAA7",
+"M  c #EFF0EE",
+"N  c #F7F8F7",
+"O  c #F5F6F4",
+"P  c #F8F9F8",
+"Q  c #FBFBFB",
+"R  c #B0B2B0",
+"S  c #939592",
+"T  c #FDFEFD",
+"U  c #F3F4F2",
+"V  c #F0F2EF",
+"W  c #EFF1ED",
+"X  c #FCFCFC",
+"Y  c #ADAFAD",
+"Z  c #A9ABA8",
+"[  c #F1F2F0",
+"]  c #EEF0ED",
+"^  c #E9EBE7",
+"_  c #EBEDEA",
+"`  c #F9F9F9",
+"a  c #848682",
+"b  c #DEE0DD",
+"c  c #F6F7F6",
+"d  c #EBEDE9",
+"e  c #E8EAE6",
+"f  c #E5E7E3",
+"g  c #C5C5C4",
+"h  c #ACAEAA",
+"i  c #BBBFB7",
+"j  c #8D8F8A",
+"k  c #8C8E88",
+"l  c #E7E8E7",
+"m  c #F4F5F4",
+"n  c #E6E8E4",
+"o  c #E4E6E1",
+"p  c #EAEAEA",
+"q  c #898B87",
+"r  c #CED0CC",
+"s  c #CFCFCC",
+"t  c #8C8E89",
+"u  c #FDFDFC",
+"v  c #E4E7E2",
+"w  c #E2E4DF",
+"x  c #E1E4DE",
+"y  c #797B77",
+"z  c #B8BCB4",
+"{  c #B6BAB3",
+"|  c #CCCCCA",
+"}  c #CCCECC",
+"~  c #E3E5E0",
+" ! c #E0E3DD",
+"!! c #DFE2DC",
+"#! c #F8F8F8",
+"$! c #FFFFFF",
+"%! c #F3F3F1",
+"&! c #C7C9C4",
+"'! c #B6BAB2",
+"(! c #B7B9B3",
+")! c #BDBFB9",
+"*! c #BEC0BA",
+"+! c #B7BBB3",
+",! c #C3C5C1",
+"-! c None",
+"-!  ! ! ! ! ! ! ! # $ -!-!-!-!-!",
+"-!% & ' ' ' ' ' ( ) * + -!-!-!-!",
+"-!, ' - . / 0 1 2 3 4 * * -!-!-!",
+"-!5 ' 6 - . / 0 1 7 8 4 5 9 -!-!",
+"-!5 ' : 6 - . / 0 ; < = > ? -!-!",
+"-!5 ' @ : 6 - . / 0 1 A B , -!-!",
+"-!C D D E F G - . / 0 1 B , -!-!",
+"-!H ' ' I J K L M . / 0 B , -!-!",
+"-!H N O O P Q R S M . / T , -!-!",
+"-!H O U V 0 W X Y Z - . ( , -!-!",
+"-!H 6 [ ] 1 ^ _ ` a b - ' , -!-!",
+"-!H ' ( c d e f U g h 6 ' , -!-!",
+"-!i j k l m n o e p q O ' , -!-!",
+"-!C r s t u v w x ` y @ ' z -!-!",
+"-!{ | } t u ~  !!!#!y $!%!% -!-!",
+"-!&!'!(!)!*!)!)!)!)!# ! +!,!-!-!"
+};
diff --git a/gui/dialog/pixmaps/file_playlist.xpm b/gui/dialog/pixmaps/file_playlist.xpm
new file mode 100644 (file)
index 0000000..932ea55
--- /dev/null
@@ -0,0 +1,35 @@
+/* XPM */
+static const char * const file_playlist_xpm[] = {
+"16 16 15 1 0 0",
+"  c #94B871",
+"! c #44800A",
+"# c #95B872",
+"$ c #2C548E",
+"% c #204A87",
+"& c #45800B",
+"' c #67BE12",
+"( c #46810C",
+") c #729FCF",
+"* c #95B873",
+"+ c #97B975",
+", c #95B972",
+"- c #97B974",
+". c #98BA77",
+"/ c None",
+"////////////////",
+"/ !#//$%%%%%%$//",
+"/&'(//%))))))%//",
+"/*(+//$%%%%%%$//",
+"////////////////",
+"////////////////",
+"/,!-//$%%%%%%$//",
+"/&'(//%))))))%//",
+"/*(.//$%%%%%%$//",
+"////////////////",
+"////////////////",
+"/ !#//$%%%%%%$//",
+"/&'(//%))))))%//",
+"/*(+//$%%%%%%$//",
+"////////////////",
+"////////////////"
+};
diff --git a/gui/dialog/pixmaps/file_subtitle.xpm b/gui/dialog/pixmaps/file_subtitle.xpm
new file mode 100644 (file)
index 0000000..a22d6d4
--- /dev/null
@@ -0,0 +1,83 @@
+/* XPM */
+static const char * const file_subtitle_xpm[] = {
+"16 16 63 1 0 0",
+"  c #C2C5C1",
+"! c #B8BAB4",
+"# c #B6B8B2",
+"$ c #C3C5C0",
+"% c #B7BBB4",
+"& c #F2F2F1",
+"' c #FEFEFE",
+"( c #FEFEFD",
+") c #F2F2F2",
+"* c #BCBFB9",
+"+ c #BABCB7",
+", c #B9BCB4",
+"- c #F2F3F1",
+". c #F1F2EF",
+"/ c #EFF1EE",
+"0 c #EEEFEC",
+"1 c #ECEEEA",
+"2 c #EBECE9",
+"3 c #D9DBD9",
+"4 c #DBDBDB",
+"5 c #B9BCB5",
+"6 c #F4F5F3",
+"7 c #C5C6C3",
+"8 c #EDEDEC",
+"9 c #CCCDCA",
+": c #F5F6F5",
+"; c #B1B3AF",
+"< c #9D9F9B",
+"= c #ABACA8",
+"> c #B1B2AF",
+"? c #B5B8B1",
+"@ c #F7F8F6",
+"A c #EAECE9",
+"B c #FDFDFD",
+"C c #FEFFFE",
+"D c #656764",
+"E c #525451",
+"F c #646663",
+"G c #FFFFFF",
+"H c #4D4F4D",
+"I c #C4C5C4",
+"J c #D3D3D3",
+"K c #C4C4C4",
+"L c #474A49",
+"M c #FDFEFD",
+"N c #414544",
+"O c #C3C4C3",
+"P c #C2C3C3",
+"Q c #3C4040",
+"R c #363B3C",
+"S c #C6C7C7",
+"T c #494E4F",
+"U c #313638",
+"V c #494D4F",
+"W c #FBFCFB",
+"X c #FAFAF9",
+"Y c #F8F9F8",
+"Z c #B8BCB4",
+"[ c #F6F6F6",
+"] c #F3F3F1",
+"^ c #C3C5C1",
+"_ c #B7BBB3",
+"` c None",
+"` !!!!!!!#$`````",
+"`%&'''''()*+````",
+"`,'-./01234**```",
+"`5'6-./0178459``",
+"`5':6-./0;<=>?``",
+"`5'@:6-./01AB,``",
+"`5CDEEEEEEEFB,``",
+"`5GHIJJJJJKHB,``",
+"`5GLLLLLLLLLM,``",
+"`5GNOJJJJJPN(,``",
+"`5GQQQQQQQQQ',``",
+"`5GRRSJJJSRR',``",
+"`5GTUUUUUUUV',``",
+"`,GGGGGBWXY@'Z``",
+"`%[GGGGGGGGG]%``",
+"`^_!!!!!!!!!_^``"
+};
diff --git a/gui/dialog/pixmaps/file_video.xpm b/gui/dialog/pixmaps/file_video.xpm
new file mode 100644 (file)
index 0000000..6cf806a
--- /dev/null
@@ -0,0 +1,24 @@
+/* XPM */
+static const char * const file_video_xpm[] = {
+"16 16 4 1 0 0",
+"  c #000000",
+"! c #F3F3F2",
+"# c #EEEEEC",
+"$ c None",
+"$              $",
+"$ $$ !!!!!! $$ $",
+"$ $$ ###### $$ $",
+"$    ######    $",
+"$ $$ ###### $$ $",
+"$ $$ ###### $$ $",
+"$    ######    $",
+"$ $$ ###### $$ $",
+"$ $$        $$ $",
+"$    !!!!!!    $",
+"$ $$ ###### $$ $",
+"$ $$ ###### $$ $",
+"$    ######    $",
+"$ $$ ###### $$ $",
+"$ $$ ###### $$ $",
+"$              $"
+};