| 
	|||||||
![]()  | 
            
        
    
| 
             | 
        Thread Tools | Search this Thread | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 Plugin developer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 108 
				Karma: 24394 
				Join Date: Feb 2012 
				Location: Lithuania 
				
				
				Device: Kindle 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Mimetypes icons should be plugin-based (for new input/output plugins, e.g.)
			 
			
			
			Hi there, 
		
	
		
		
		
		
		
		
		
		
		
		
	
	I have started to develop DOCX input plugin and done quite a lot (already enough for my own needs, tables and colors left). But DOCX icon is the "unknown" one, with a question mark. After digging around I've found out that all mimetypes are registered in FileIconProvider and I couldn't find any possibility to extend it with my own icon in the plugin init (e.g. via get_resources). I suppose it would be a nice feature to have an extension mechanizm and to have certain plugin type or just another "hackaround" how to add an icon to specific format without putting it into images/mimetyps directory. So is my statement correct or do I simply don't know how to do that via plugin?  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			You cant do it with a plugin, nut just post your icon here and I'll add it to calibre for you.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Plugin developer 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 108 
				Karma: 24394 
				Join Date: Feb 2012 
				Location: Lithuania 
				
				
				Device: Kindle 
				
				
				 | 
	
	
	
		
		
			
			 
				
				mimetype/docx
			 
			
			
			Hi Kovid, thank you in advance.
		 
		
	
		
		
			 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 creator of calibre 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,609 
				Karma: 28549044 
				Join Date: Oct 2006 
				Location: Mumbai, India 
				
				
				Device: Various 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Added.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Member 
			
			![]() Posts: 21 
				Karma: 10 
				Join Date: Mar 2008 
				Location: Yucca Valley, California 
				
				
				Device: Kindle Keyboard (K3) 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Add an icon for azw3?
			 
			
			
			Kovid, 
		
	
		
		
		
		
		
		
		
		
		
		
	
	For my Kindle Keyboard, at least, the azw3 or KF8 format also appears as unknown. Can you add the mobi icon for it? Or, if there is another dedicated icon in existence, use that? I know, pretty nitpicky.  
		 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#6 | 
| 
			
			
			
			 BLAM! 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506 
				Karma: 26047202 
				Join Date: Jun 2010 
				Location: Paris, France 
				
				
				Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			@pmorris: AZW3 files will have a dedicated icon in Calibre's next release (along with Topaz & Kindlet files).
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
![]()  | 
            
        
    
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| How do I change Plugin Images/Icons? | Steppa | Plugins | 8 | 01-22-2013 07:37 PM | 
| Plugin not customizable: Plugin: HTML Output does not need customization | flyingfoxlee | Conversion | 2 | 02-24-2012 03:24 AM | 
| CBZ plugin interaction with FB2/DjVu plugins - First try at pinpointing | MrWarper | iRex | 2 | 12-11-2011 06:46 AM | 
| Plugin which uses net as input and output | medve | Development | 0 | 12-04-2011 04:20 PM | 
| Icons for mimetypes | Halo | Development | 1 | 08-05-2011 04:23 AM |