![]() |
Class Set Definition File Syntax |
color <color>
colour <color>
Specifies the color that iDefrag should use to display extents of files that match the class in question. Note that this statement only specifies a default color; the user can override the color by editing it in the iDefrag GUI, in which case the override will apply to any class of the same name in any class set (user overrides are not saved back into the class set definition file).
Note also that if two adjacent extents are of the same class, iDefrag will darken the color of one of them slightly so that the ends of the extents are visible to the user.
Color specifications may be given in any of the following forms:
#rgb The color with red, green and blue values given by the hexadecimal values r, g and b (e.g. #333 would be a dark grey, whilst #ff0 is bright yellow) #rrggbb The color with red, green and blue values given by the hexadecimal values rr, gg, and bb (e.g., #e0ffff would be a pale cyan, whilst #00ff00 is bright green) "#rgb" Same as #rgb. "#rrggbb" Same as #rrggbb. "0xrgb" Same as #rgb. "0xrrggbb" Same as #rrggbb. "colorlist:colorname" The color colorname from the system color list colorlist (e.g., "Crayons:Cantaloupe")
// Match the kernel image
class "Kernel" {
match files where name = "/mach_kernel"
color "#00ff00"
}
// Match the swap file(s)
class "Swapfile" {
match files where name ~= "^swapfile[0-9]+" and file is within "/private/var/vm"
color "Crayons:Blueberry"
}