Logo18.225.175.75 
  News  Recent  Stats  Forums  Discord  Contact
  Menu
 Username

 Password


   Register here

 Main menu
   BBCode test
 
 Content
   About OpenAmiga
   Guidelines
   Definitions
   SVN Access
   Licenses
   IRC channel
   Links
   ToDo List
   List Content
 
 Projects
   Suggested (1)
   Open (11)
   Assigned (27)
   Pending (0)
   Finished (7)
   Closed (5)
 
 Categories
   Cli (2)
   Datatype (9)
   Drivers (3)
   System (15)
   Workbench (16)
  View project
[View Updates][View Threads][View Files][SVN Log][SVN Submitters]
Title:Emblem icon plugin
Synopsis:
Create an icon plugin that uses default images and emblem composition.

Project members:
  chris  
Status:Open
Priority:High      As prioritized by the OS4 development team
Category:workbench/general
Description:The icon plugin shall be capable of using a default and selected image specified in the tool types. And it shall be capable of composing an emblem image on top of both images.

It shall be possible to specify the width/height and position for the emblem image for both normal and selected icon.

It shall be possible to omit the default image(s) and use he icon image(s) instead.

It shall be possible to specify in which way the emblem and icon image shall be rendered on top of the icon image.

It shall be possible to use the icon image(s) as the emblem while referring to a standard image for the icon.

SHADOW    - A +5,+5 soft alpha shadow is added below the emblem/icon
GLOW- An outer glow is added to the emblem/icon
GRAY- Emblem/Icon is rendered in black&white
DARK- Emblem/Icon is rendered 25% darker
BRIGHT- Emblem/Icon is rendered 25% brighter
NONE- Emblem/Icon is rendered as is

Not all of the above methods must be available in the first version

If rendering method is not specified then a global system preference setting shall be used. (Example: SHADOW)

Tool types: (suggested format)

IMAGE=DrawerNS,NONE
IMAGESELECTED=DrawerS,NONE
EMBLEM=Prefs,12,12,10,5,SHADOW
EMBLEMSELECTED=Prefs,12,12,9,6,SHADOW

Format for IMAGE/IMAGESELECTED:
    
Name,Method

If IMAGE is not specified, then the image inside the icon is used.
If IMAGESELECTED is not specified, then the image inside the icon is used.

If Method is not specified then a global system preference setting for the method shall be used.


Format for EMBLEM/EMBLEMSELECTED:
    
Name,Width,Height,X-position,Y-position,Method

If EMBLEM is not specified, the it's not rendered
If EMBLEMSELECTED is not specified, then it's not rendered

If emblem Method is not specified then a global system preference setting for the method shall be used.If emblem X/Y-position is not specified then it shall be defaulted to 0,0
If emblem Width/Height is not specified or are set to 0 then the height/width of the emblem image shall be used

If the emblem/emblemselected name is set to INTERNAL then the images contained in the icon is used as emblem. In this case Image and ImageSelected must be set.


If the specified image name can not be found in the image directory then that tool type directive is ignored.

Emblem rendering shall always be clipped to the physical size of the image it is rendered on. That is, the emblem and rendering method is not rendered outside the rectangle of the image it is rendered on top of.

All images, default images and emblems, are stored in envarc:sys/emblem as 24Bit+alpha capable image files.

Example images:
    
DrawerNS.png
DrawerS.png
PrefsNS.png
PrefsS.png
EmblemDevs.png
EmblemDocumentation.png
EmblemInternet.png
EmblemMUI.png
EmblemPrefs.png
EmblemStorage.png
EmblemSystem.png
EmblemUtilities.png
EmblemWBStartup.png
EmblemTrashcan.png
EmblemFont.png
EmblemAHI.png
etc...


Example tool types for Sys:Devs.info
    
IMAGE=DrawerNS
IMAGESELECTED=DrawerS
EMBLEM=EmblemDevs,12,12,10,5,SHADOW
EMBLEMSELECTED=EmblemDevs,12,12,9,6,SHADOW


Example tool types for Sys:Prefs/AHI.info
    
IMAGE=PrefsNS
IMAGESELECTED=PrefsS
EMBLEM=EmblemAHI,0,0,23,2,SHADOW
EMBLEMSELECTED=EmblemAHI,0,0,23,2,SHADOW


Example tool types for Sys:MUI/MUI.info
    
EMBLEM=EmblemPrefs,10,10,15,20,NONE
EMBLEMSELECTED=EmblemPrefs,10,10,15,20,GLOW


Example of using the icon as an emblem for a default icon. The selected image method uses the current system preference setting and the emblem is also rendered with teh current system preference setting.
    
IMAGE=Drawer
IMAGESELECTED=Drawer
EMBLEM=INTERNAL,10,10,15,20
EMBLEMSELECTED=INTERNAL,10,10,15,20
Created by:orgin
Created at:20081009 11:34
Deadline:Not set
Finished at:Not finished
Last update:20140402 19:10
Assigned to:Not assigned

  Task list for this project
ID  Title  Assigned  Progress  Updated  Created by  
11  Import Wet code which performs this task  chris  100%  20081018 23:12  chris
Open Amiga project website, Created in 2008 by Björn Hagström