主权项 |
1. A method for browser side colorizing of a user interface (UI) component image, the method comprising:
providing, by a processor, a base64-encoded image string having a header part and an encoded image,
the header part contains a color palette for a user interface (UI) component,the encoded image is image data for the UI component, in a color indexed image format which indexes colors into the color palette in the header part; providing, by the processor, for the header part, plural different color palettes corresponding respectively to plural different colored versions of the UI component; and controlling, by the processor, the color of the UI component by switching content of the color palette in the header part of the base64-encoded image string to one of the plural different color palettes which corresponds to a different colored version of the UI component. |