The present application relates to customizable user interfaces and, in particular, to the selection of colors within a user interface theme by means of a palette.
A graphical user interface on a mobile electronic device may be rendered on a display screen in accordance with a theme, which specifies the visual attributes associated with fields in the user interface. In some themes, different visual attributes may be associated with specific fields. Visual attributes may include things such as colours, fonts, font-size, font-weight, background images, etc. Accordingly, the theme governs the look-and-feel of the user interface. Different themes may be applied to change the look-and-feel of a user interface without affecting the substantive functioning of the interface.
When creating themes, it is common to assign the same color to multiple regions. However, it can then be quite laborious for a designer to subsequently adjust the colors of the multiple regions. Similarly, making a new theme that is similar to an existing theme but with different colors can be quite laborious as well.
It would be advantageous to provide for a method or device in which the colors associated with a theme could be adjusted or varied with relative ease.
Embodiments of the present disclosure will now be described, by way of example only, with reference to the attached Figures, wherein:
Like reference numerals are used throughout the Figures to denote similar elements and features.
The present application describes methods, devices, and computer program products that enable the customization of colors in a user interface by using a palette to define colors. The palette includes strings that have color values assigned to them. The strings are referred to in style sheets where color attributes are specified, such that colors can be redefined in the palette rather than in the style sheet.
In accordance with one aspect of the present disclosure, there is provided a method of defining a user interface theme of a graphical user interface of an electronic device, comprising: generating the graphical user interface in accordance with a first theme defined by a first theme file which defines one or more visual attributes of one or more interface elements of the graphical user interface, wherein the first theme file comprises a first color palette which defines one or more color values and a first style sheet which defines one or more colors attributes of one or more interface elements of the graphical user interface by reference to the one or more color values of the first color palette; receiving selection input to change the user interface theme to a second theme; and re-generating, in response to the selection input, the graphical user interface in accordance with the second theme, wherein the second theme is defined by a second theme file which defines one or more visual attributes of one or more interface elements of the graphical user interface, wherein the second theme file comprises a second color palette which defines one or more color values and a reference to the first theme file so as to inherit color attributes of one or more interface elements of the graphical user interface from the first theme file which are not defined by the second theme file.
In accordance with another aspect of the present disclosure, there is provided an electronic device, comprising: a processor; a display screen coupled to the processor for displaying a graphical user interface of the electronic device; a memory coupled to the processor having stored thereon: (i) a first theme file which defines one or more visual attributes of one or more interface elements of the graphical user interface, wherein the first theme file comprises a first color palette which defines one or more color values and a first style sheet which defines one or more colors attributes of one or more interface elements of the graphical user interface by reference to the one or more color values of the first color palette; and (ii) a second theme file which defines one or more visual attributes of one or more interface elements of the graphical user interface, wherein the second theme file comprises a second color palette which defines one or more color values and a reference to the first theme file so as to inherit color attributes of one or more interface elements of the graphical user interface from the first theme file which are not defined by the second theme file; wherein the processor is configured for: generating the graphical user interface on the display screen in accordance with a first theme defined by the first theme file; receiving selection input to change the user interface theme to a second theme defined by the second theme file; and re-generating, in response to the selection input, the graphical
In accordance with a further aspect of the present disclosure, there is provided a method of defining a user interface theme of a graphical user interface of an electronic device, comprising: generating the graphical user interface in accordance with a first theme defined by a first theme file which defines one or more visual attributes of one or more interface elements of the graphical user interface, wherein the first theme file comprises a first color palette which defines one or more color values and a first style sheet which defines one or more colors attributes of one or more interface elements of the graphical user interface by reference to the one or more color values of the first color palette, wherein the first color palette includes a plurality of variable strings each of which has an assigned color value, and wherein at least one of the color attributes defined by the first style sheet is specified by reference to a variable string in the first color palette.
In accordance with yet a further aspect of the present disclosure, there is provided an electronic device, comprising: a processor; a display screen coupled to the processor for displaying a graphical user interface of the electronic device; a memory coupled to the processor having stored thereon: (i) a first theme file which defines one or more visual attributes of one or more interface elements of the graphical user interface, wherein the first theme file comprises a first color palette which defines one or more color values and a first style sheet which defines one or more colors attributes of one or more interface elements of the graphical user interface by reference to the one or more color values of the first color palette, wherein the first color palette includes a plurality of variable strings each of which has an assigned color value, and wherein at least one of the color attributes defined by the first style sheet is specified by reference to a variable string in the first color palette; wherein the processor is configured for: generating the graphical user interface on the display screen in accordance with a first theme defined by the first theme file.
In accordance with yet a further aspect of the present disclosure, there is provided a method of generating a user interface theme to customize a user interface theme of an electronic device, comprising: generating a first theme file which sets one or more visual attributes of one or more interface elements of a graphical user interface of the electronic device, the first theme file comprising an instruction set, a color palette which and a reference to another theme file so as to inherit color attributes of the other theme file not set by the first theme file; and sending the first theme file to the electronic device, wherein the first theme file self-executes upon being downloaded onto the electronic device.
In accordance with yet a further aspect of the present disclosure, there is provided a server, comprising: a processor; wherein the processor is configured for: generating a first theme file which sets one or more visual attributes of one or more interface elements of a graphical user interface of the electronic device, the first theme file comprising an instruction set, a color palette which and a reference to another theme file so as to inherit color attributes of the other theme file not set by the first theme file; and sending the first theme file to the electronic device, wherein the first theme file self-executes upon being downloaded onto the electronic device.
In accordance with yet a further aspect of the present disclosure, there is provided a method for defining colors for a graphical user interface having a plurality of interface elements each having visual attributes. The method includes: providing a color palette list that includes a plurality of variable strings each of which has assigned thereto a color value; providing a style sheet specifying color attributes of at least some of the interface elements, at least one of the color attributes of at least one of the interface elements being specified by reference to one of the variable strings; and generating the user interface with the at least some interface elements having colors in accordance with the specified color attributes.
In accordance with yet a further aspect of the present disclosure, there is provided a mobile electronic device that includes a display screen for displaying a user interface with a plurality of display elements having color attributes, a storage, and a processor connected to the storage and to the display screen for controlling operation of the display screen. A color palette list is stored on the storage that includes a plurality of string variables that each have assigned thereto a color. An instruction set stored on the storage specifies color attributes of at least some of the display elements, at least some of the color attributes in the instruction set being specified by reference to the string variables. A theme manager is associated with the processor for setting the color attributes of the display elements to correspond to the specified color attributes.
In accordance with yet a further aspect of the present disclosure, there is provided a method of generating a user interface customization file for use by a device to customize the user interface of the device, the method including generating an instruction file that includes a color palette list that includes a plurality of strings each of which has assigned thereto a color value and a style sheet that specifies color attributes of at least some of the displayed elements, at least some of the color attributes being specified by reference to strings of the palette list.
In accordance with yet a further aspects of the present disclosure, there is provided a computer-readable medium tangibly embodying computer executable instructions for performing the methods described herein on a mobile electronic device or server.
Referring to
The wireless network gateway 115 provides an interface between the wireless network 110 in which the devices 10 operate, and the WAN 120 in which the UI data provider system 125 is configured to operate. The WAN 120 can in various embodiments include the Internet, a direct connection, a local area network (LAN), a wireless communication link, and any combinations thereof. In some embodiments, data generated by the UI data provider system 125 may be provided to devices 10 through a direct link or through a data transfer means other than through WAN 120, gateway 115 and wireless network 110.
The UI data provider system 125 provides the data and/or instructions for customizing user interface presentation on the mobile electronic devices 10. More particularly, the UI data provider system provides information to mobile electronic devices 10 that can be used by such mobile electronic devices to customize or change the theme of the user interface that is presented by the device to a user. Theme refers to attributes of the visual components or elements of the user interface that affect the look, but not the underlying meaning or semantic content, of the visual components such as colors, fonts, icon look and size, background images, and logos, among other things. Theme-able attributes are those attributes of visual elements of the user interface that can be changed or customized based on information provided to the mobile electronic device 10 in a UI theme file 130.
In the embodiment of
The device 10 includes a communication subsystem 11, including a receiver 12, a transmitter 14, and associated components such as one or more antenna elements 16 and 18, and a processing module such as a digital signal processor (DSP) 20. In some embodiments, the communication subsystem includes local oscillator(s) (LO) 13, and in some embodiments the communication subsystem and microprocessor 38 share an oscillator. As will be apparent to those skilled in the field of communications, the particular design of the communication subsystem 11 will be dependent upon the communication network in which the device is intended to operate.
Signals received by the antenna 16 through a wireless communication network 110 are input to the receiver 12, which may perform such common receiver functions as signal amplification, frequency down conversion, filtering, channel selection and the like, and in some embodiments, analog to digital conversion. In a similar manner, signals to be transmitted are processed, including modulation and encoding for example, by the DSP 20 and input to the transmitter 14 for digital to analog conversion, frequency up conversion, filtering, amplification and transmission over the communications network 110 via the antenna 18.
The device 10 includes a microprocessor 38 that controls the overall operation of the device. The microprocessor 38 interacts with communications subsystem 11 and also interacts with further device subsystems such as the display 22, flash memory 24, random access memory (RAM) 26, auxiliary input/output (I/O) subsystems 28 (which may include a thumb-wheel, for example), serial port 30, keyboard or keypad 32, speaker 34, microphone 36, a short-range communications subsystem 40, and any other device subsystems generally designated as 42.
Some of the subsystems shown in
Operating system software 54 and various software applications 58 used by the microprocessor 38 are, in one example embodiment, stored in a persistent store such as flash memory 24 or similar storage element. Those skilled in the art will appreciate that the operating system 54, specific device applications 58, or parts thereof, may be temporarily loaded into a volatile store such as RAM 26. It is contemplated that received communication signals may also be stored to RAM 26.
The microprocessor 38, in addition to its operating system functions, in example embodiments also enables execution of software applications 58 on the device. A predetermined set of applications 58 which control basic device operations, including at least data and voice communication applications for example, will normally be installed on the device 10 during manufacture. Further applications may also be loaded onto the device 10 through the network 110, an auxiliary I/O subsystem 28, serial port 30, short-range communications subsystem 40 or any other suitable subsystem 42, and installed by a user in the RAM 26 or a non-volatile store for execution by the microprocessor 38. Such flexibility in application installation increases the functionality of the device and may provide enhanced on-device functions, communication-related functions, or both. For example, secure communication applications may enable electronic commerce functions and other such financial transactions to be performed using the device 10.
In a data communication mode, a received signal such as a text message or web page download will be processed by the communication subsystem 11 and input to the microprocessor 38, which will preferably further process the received signal for output to the display 22, or alternatively to an auxiliary I/O device 28. A user of device 10 may also compose data items such as email messages for example, using the keyboard 32 in conjunction with the display 22 and possibly an auxiliary I/O device 28. Such composed items may then be transmitted over a communication network through the communication subsystem 11.
The serial port 30, which may be a USB port, in
A short-range communications subsystem 40 is a further component which may provide for communication between the device 10 and different systems or devices, which need not necessarily be similar devices. For example, the subsystem 40 may include an infrared device and associated circuits and components or a Bluetooth™ communication module to provide for communication with similarly enabled systems and devices.
Wireless mobile network 110 is, in an example embodiment, a wireless packet data network, (e.g. Mobitex™ or DataTAC™), which provides radio coverage to mobile electronic devices 10, although it could be any other types of wireless networks.
With reference to
As shown in
The client section 66 displays elements that include a number of selectable application and folder icons 68 that are presented on a background. The icons 68 can be “focused” or selected with a caret 74 (or other type of pointer) that moves around the client section 66 in response to user manipulation of navigation keys 92 and/or scrolling of thumb scroll wheel 94, and/or other predetermined user input. The application icons 68 may include, among other things, a mail messages icon, a phone application icon, an address book icon, a calendar icon, and a browser icon. Once an application icon 68 or a folder icon is focused with caret 74 it can be launched or opened by the user taking a predetermined action such as, for example, pressing a predetermined control key or pressing thumb scroll wheel 94. Such activity will typically result in a different graphic user interface being presented to the user on display 22. In the example shown in
According to an example embodiment of the present disclosure, theme-able attributes of the user interface 50 can be customized. The presently described embodiment is particularly directed towards customizing colors in the user interface 50, including for example, foreground and background colors of elements.
The theme-able attributes of user interface 50, including color, can be specified and customized based on user interface files 130 downloaded by the mobile electronic device 10 from UI data provider system 125. With reference to
UI theme file 130 contains information required by the mobile electronic device 10 to implement a particular user interface theme. For example, the UI theme file 130 may include information required to customize the user interface 50 to a color, logo and icon scheme preferred by the carrier that operates the home wireless network 110 of mobile electronic device 10. In some embodiments, the UI theme file 130 may be purchasable file that includes information required to customize the user interface 50 to a color, logo and icon scheme associated with an organization such as a favoured team.
In various embodiments, one or more UI files 130 are provided to mobile electronic device 10 in response to requests for specific UI files 130 from the mobile electronic device. For example, the user of a mobile electronic device 10 may decide to download the UI theme file 130 associated with a specific theme—for example, a theme related to a favourite sports team. In other embodiments, one or more UI files 130 may be pre-loaded onto the device 10 prior to shipping of the device 10. In some embodiments, UI files 130 may be periodically pushed over wireless network 110 to selected devices 10 as part of system updating or maintenance performed by the wireless network carrier.
In some example embodiments, graphic image files 134 are bit mapped graphic files such as .gif (Graphics Interchange Format) or .png (portable network graphics). The bit mapped graphic image files define custom binary images associated with the theme defined by the UI file—for example, any custom logos, application icons, folder icons, or status images. The SVG files 138 define in an SVG format the layout of some of the elements of the user interface theme, for example, a custom banner layout for the user interface. The SVG files 138 may not include all functions and features supported by SVG, but rather a sub-set of such functions and features. The bit-mapped graphic image files 134 and the SVG files 138 may be stored at the UI data provider system, or in other storage that is accessible to UI theme compiler 132. Other forms of graphic files may be used in other embodiments, for example .jpg. In some embodiments, the SVG files are compressed and in some embodiments they are not compressed.
The XML theme file 136 includes instructions for creating the UI theme file 130 required by the mobile electronic device 10 to implement an associated user interface theme. Thus, the XML theme file 136 is created by a graphic designer to define the unique visual attributes that specify or make up a user interface theme. With reference to
The header 142 identifies the user interface theme that is defined by the XML theme file 136. The file list 144 of XML theme file 136 includes a list of all custom graphic image files 134 and SVG files 138 that are required to support the specified user interface theme. The UI Theme compiler 123 uses the file list 144 to identify what graphic image files 134 and SVG files 138 have to be included in the UI theme file 130 to support the associated theme. For example, the file list 144 may include a list of png, .gif and SVG or compressed SVG files, each of which defines custom graphic images required for implementing the associated user interface theme. The font definitions list 146 of XML theme file 136 includes definitions for custom fonts used in the user interface 50. The application hierarchy list 148 defines what application and folder icons 68 and 72 are displayed in a user interface and the relative order of such icons.
A novel aspect of example embodiments is a palette 210 in the theme file 136. A palette allows a designer to assign specific color value to a predetermined variable string. Thus, the color that is referenced by a string can be defined in the palette 210, which includes a list of predetermined strings, each string being mapped to an associated RGB triplet. By way of example,
The style sheet 150 of the XML theme file 136 defines the screen format, layout and foreground and background colors associated with the specified theme. In an example embodiment, the style sheet 150 has a hierarchical parent-child relationship, which is illustrated in a representative manner in
With reference to
In some embodiments, the XML theme file 136 may also be subjected to a converter function 178 to put it into a format suitable for use by mobile electronic device 10. In one embodiment, the XML theme file 136 is XSLT (XML Style Language Transform) transformed to a theme JAVA file by converter function 178. In another example embodiment, the XML file is converted to a compressed CXML theme file by converter function 178. The converted file, which will include the same substantive style sheet and palette information as the unconverted file, is then subjected to a UI file assembly function 182. In some example embodiments, converter function 178 is omitted and the XML theme file 136 is not converted or transformed, or is subjected to only minor processing, prior to being passed to UI file assembly function.
The UI theme compiler 132 includes a collect bit image files function 174 for retrieving from a source of binary graphic image files 134 the binary image files that are included in the file list 144 of XML theme file 136, The UI theme compiler 132 also includes a collect and compress SVG image files function 176 for retrieving from a source the SVG files that are included in the file list 144 of XML theme file 136, and, in at least some embodiments, compressing such SVG files. In at least one example embodiment, the retrieved graphic image files 134 are provided to an auto-scaling function 180. Auto-scaling function is configured to create scaled versions of graphics images as required by XML theme file 136.
The UI file assembly function 182 receives the theme file from converter 178, as well as the compressed graphic binary image files and compressed SVG image files, and packages such information into UI theme file 130 for loading onto mobile electronic device 10. The UI theme file 130 includes theme instructions 184 for the mobile electronic device, either in the form of a Theme.java file or a CXML file or a XML file, and graphics files 186, representing graphic image files 134 and SVG files 138, in a form suitable for rendering by mobile electronic device 10. It will be appreciated that in various embodiments, the UI theme file 130 includes the information required to, among other things specify custom attributes such as color, background color, foreground color, background images and font used in various user interface elements. The UI theme file 130, in various embodiments, includes the information for generating various custom applications and folder icons, including varying sizes of the custom icons (for example, small, regular and large versions), and for generating normal, focused and selected states of such icons. In various embodiments, UI theme file 130 includes the information for generating other custom images such as check boxes, radio buttons, navigation images such as scroll arrows, and status icons.
Processing of UI theme file 130 by mobile electronic device 10 will now be discussed in greater detail. Referring again to
In one example embodiment, the mobile electronic device 10 is provided with an initially installed set of default user interface attributes. The UI theme manager 73 is configured to use such attributes unless instructed otherwise. The UI theme manager 73 maintains a list or register of selectable themes for which the corresponding UI theme files 130 have been loaded on the device.
The mobile electronic device 10 may be configured to automatically download, on device activation or at predetermined intervals or upon prompting, over wireless network 110 and WAN 120 from a specified Web address one or more specified UI theme files 130. Alternatively, the downloading of a UI theme file 130 could be user initiated, with the user downloading, perhaps upon payment of a monetary amount, a UI theme file 130 associated with a theme desired by the user.
The UI theme manager 73 is made aware of the presence of a new UI theme file 130 once it is downloaded, and as indicated in Step 204, the new theme is added to a list or register of selectable UI themes. Such register may include one or more selectable themes. In an embodiment where the UI theme file 130 includes instructions in the form of a theme.java file, the file self-executes upon downloading and advises the theme manager 73 of its presence. In an embodiment where the instructions are in the form of a CXML or XML file, a file download manager may be configured to detect the presence of the theme file and advise the theme manager. The graphics files and instructions, including palette 210 and style sheet 150 associated with the UI theme file 130 are stored in data store 75.
As indicated in step 206, the UI theme manager is configured to set a current user interface theme. In one embodiment, the user can specify a current theme from among the themes included in the theme register. In other embodiments, the current theme may be automatically or default selected.
As indicated in step 208, once a theme has been selected as a current theme, the UI theme manager 73 maintains in memory an icon/graphic image collection specified by the instructions associated with the current theme, as well as the current visual user interface attributes associated with the theme. Elements that are displayed on the screen have the visual attributes specified by the current theme applied to them. Icons and other graphic images that are displayed are selected from the theme icon/graphic image collection.
A theme file 130 may specifically reference another theme file from which attributes not specifically set in the newly selected theme file are to be inherited, or may by default inherit attributes from the previously selected theme file. Thus, the style sheet 150 in a theme file could be quite short, and in some cases a theme file 130 may substantially include only a header, a new palette 210, and a reference to another theme file already stored on device 10, in which case the effect of selecting the new theme file would substantially be to replace the colors specified by string variable in the referenced theme file with the new color values set in the palette 210 of the new theme file. Accordingly, the palettes 210 of the above-described embodiment allow colors of an existing user interface theme to be modified with relative ease.
In some embodiments gradient areas can be created by taking a greyscale representation, negate it, then using it as the alpha channel to a solid color indicated by one of the palette entries. This has the effect that black becomes the fully saturated color, white remains white, and intermediate greys become intermediate blends of white and the palette color. Clearly, white can be replaced with any background color. This technique would support irregular gradient areas. Regular gradient areas could also be implemented by this technique, as long as only 2 colors are blended. Contrarily, regular gradients, for example a linear gradient or radial gradient, could be generated programmatically using techniques available in the art with possibly one or more of the reference points specified from the palette.
The above-described embodiments of the present disclosure are intended to be examples only. Alterations, modifications and variations may be effected to the particular embodiments by those skilled in the art without departing from the scope of the present disclosure, which is defined by the claims appended hereto.
This application is a continuation of U.S. patent application Ser. No. 10/940,672, filed Sep. 15, 2004, the content of which is incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 10940672 | Sep 2004 | US |
Child | 13922692 | US |