System and method for automated color scheme transformation
Embodiments of the present invention provide a system, computer-readable medium and a method for transforming a color scheme. A processor is configured to retrieve from storage data including content elements defining a user interface screen in response to a user selection of a source color and a replacement color. For each content element of the user interface screen, a color of the content element is compared the source color. Based on the comparison, if the color of the content element falls within a predetermined threshold distance of the source color along a color palette, the color of the content element can be converting to the replacement color. After the processing of the content elements, the user interface is displayed on a display device, including the converted color element(s).
1. A user interface conversion method, comprising:
responsive to a user selection of a source color and a replacement color, retrieving from storage data including content elements defining a user interface screen;
for each content element of the user interface screen, comparing a color of the content element to the source color;
if the color of the content element falls within a predetermined threshold distance of the source color along a color palette, converting the color of the content element to the replacement color;
following processing of the content elements, displaying the user interface on a display device, including the converted color element(s);
storing a converted user interface to storage; and
prior to the comparing, determining whether the user interface has been processed by a prior iteration of the method,
wherein, on a second iteration of the method, the processing of content elements is not repeated.
2. A user interface conversion method, comprising:
responsive to a user selection of a source color and a replacement color, retrieving from storage data including content elements defining a user interface screen;
for each content element of the user interface screen, comparing a color of the content element to the source color;
if the color of the content element falls within a predetermined threshold distance of the source color along a color palette, converting the color of the content element to the replacement color;
following processing of the content elements, displaying the user interface on a display device, including the converted color element(s);
comparing attributes of each retrieved content element to a look-up table of attributes of content elements that are not permitted to be converted; and
if attributes of the retrieved content elements are found in the look-up table, skipping the conversion of the retrieved content element, and comparing the attributes of the next content element retrieved from the data storage.
3. A user interface conversion method, comprising:
responsive to a user selection of a source color and a replacement color, retrieving from storage data defining a user interface screen;
for each content element of the user interface, comparing a color of the content element to the source color;
if the color of the content element falls within a predetermined threshold distance of the source color along a color palette, converting the color of the content element to the replacement color;
determining a distance vector separating the content element's color from the source color along the color palette;
converting the color of the content element to a new color based on the replacement color and distance vector;
following processing of the content elements, displaying the user interface on a display device, including the converted color element(s);
storing a converted user interface to storage; and
prior to the comparing, determining whether the user interface has been processed by a prior iteration of the method, wherein, on a second iteration of the method, the processing of content elements is not repeated.
4. A user interface conversion method, comprising:
responsive to a user selection of a source color and a replacement color, retrieving from storage data defining a user interface screen;
for each content element of the user interface, comparing a color of the content element to the source color;
if the color of the content element falls within a predetermined threshold distance of the source color along a color palette, converting the color of the content element to the replacement color;
determining a distance vector separating the content element's color from the source color along the color palette;
converting the color of the content element to a new color based on the replacement color and distance vector;
following processing of the content elements, displaying the user interface on a display device, including the converted color element(s);
comparing attributes of each retrieved content element to a look-up table of attributes of content elements that are not permitted to be converted; and
if attributes of the retrieved content elements are found in the look-up table, skipping the conversion of the retrieved content element, and comparing the attributes of the next content element retrieved from the data storage;
otherwise, performing the comparing of a color of the content element to the source color.
5. A system for transforming a color scheme of a user interface, comprising:
a server that provides a user interface screen to the client computer, wherein the user interface screen is defined by content elements;
a client computer including a display device and an input device connected to the client computer, the client computer comprising a processor configured to:
in response to a user selection of a source color and a replacement color, retrieve from storage data including content elements defining a user interface screen,
for each content element of the user interface screen, compare a color of the content element to the source color,
if the color of the content element falls within a predetermined threshold distance of the source color along a color palette, convert the color of the content element to the replacement color,
following processing of the content elements, display the user interface on a display device, including the converted color element(s), and
prior to the comparing, determine whether the user interface has been processed by a prior iteration,
wherein, on a second iteration, the processing of content elements is not repeated; and
a data storage device that stores a converted user interface.
6. A system for transforming a color scheme of a user interface, comprising:
a server that provides a user interface screen to the client computer, wherein the user interface screen is defined by content elements;
a client computer including a display device and an input device connected to the client computer, the client computer comprising a processor configured to:
in response to a user selection of a source color and a replacement color, retrieve from storage data including content elements defining a user interface screen,
for each content element of the user interface screen, compare a color of the content element to the source color,
if the color of the content element falls within a predetermined threshold distance of the source color along a color palette, convert the color of the content element to the replacement color,
following processing of the content elements, display the user interface on a display device, including the converted color element(s),
compare attributes of each retrieved content element to a look-up table of attributes of content elements that are not permitted to be converted, and
if attributes of the retrieved content elements are found in the look-up table, skip the conversion of the retrieved content element, and compare the attributes of the next content element retrieved from the data storage;
otherwise, perform the comparing of a color of the content element to the source color.
7. A non-transitory machine-readable medium embodied with program instructions for causing a processor to execute the program instructions, the program instructions for transforming a color scheme of a user interface, comprising:
responsive to a user selection of a source color and a replacement color, retrieving from storage data including content elements defining a user interface screen;
for each content element of the user interface screen, comparing a color of the content element to the source color;
if the color of the content element falls within a predetermined threshold distance of the source color along a color palette, converting the color of the content element to the replacement color;
following processing of the content elements, displaying the user interface on a display device, including the converted color element(s);
storing a converted user interface to storage; and
prior to the comparing, determining whether the user interface has been processed by a prior iteration, wherein, on a second iteration, the processing of content elements is not repeated.
8. A non-transitory machine-readable medium embodied with program instructions for causing a processor to execute the program instructions, the program instructions for transforming a color scheme of a user interface, comprising:
responsive to a user selection of a source color and a replacement color, retrieving from storage data including content elements defining a user interface screen;
for each content element of the user interface screen, comparing a color of the content element to the source color;
if the color of the content element falls within a predetermined threshold distance of the source color along a color palette, converting the color of the content element to the replacement color;
following processing of the content elements, displaying the user interface on a display device, including the converted color element(s);
comparing attributes of each retrieved content element to a look-up table of attributes of content elements that are not permitted to be converted; and
if attributes of the retrieved content elements are found in the look-up table, skipping the conversion of the retrieved content element, and comparing the attributes of the next content element retrieved from the data storage.