diplomat.wx_gui.iconsΒΆ

Package stores all toolbar icons, and contains methods to convert them to bitmaps for rendering to the screen.

Icon Storage Format: All stored as raw uint8 grayscale image data, meant to represent the transparency channel. Icons are loaded in as RGBA wx.Bitmap objects where all pixels are of the selected foreground color, and the icon data simply controls how transparent each location is. This means icons can match the foreground and highlight colors of your system. Data is then compressed with zlib and encoded in base64 so icons can be directly stored as short multi-line byte strings in the source code.

Functions

svg_to_wx_bitmap(svg_bytes[, desired_size, ...])

Converts a svg based icon in this module to a wx.Bitmap for rendering in wxWidget UIs.

to_wx_bitmap(icon_bytes, icon_size, fg_color)

Converts an icon in this module into a wx.Bitmap for rendering in wxWidget's UIs.