A method and system for creating deformable icons
By structurally designing the icon library and defining trigger conditions, and combining CSS and JavaScript to achieve adaptive deformation of deformable icons, the problem of users having difficulty understanding the differences in icon states is solved, thereby improving user experience and design efficiency.
Patent Information
- Application Number
- CN202310954451.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-07-31
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-07-31
AI Technical Summary
Existing deformable icon designs struggle to reduce design complexity while providing adaptive deformation and an efficient, consistent user experience. Users find it difficult to understand the differences between different states, and the changes are too frequent and complex.
Import the icon library by obtaining an icon library license, perform structural design, define trigger conditions and transformation rules, listen for icon state changes, use CSS and JavaScript to implement icon state switching, and create traceable data files to improve management standardization.
It realizes the design of deformable icons that adapt to user needs and scenarios, reduces design costs, improves user experience and deformation response efficiency, and ensures smooth and consistent icon state switching.
Smart Images

Figure CN116860136B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of deformable icon creation technology, and in particular to a method and system for creating deformable icons. Background Technology
[0002] With the development of computer technology and people's continuous pursuit of user experience, shape-shifting icons are becoming increasingly widely used in operating systems, mobile applications, and games. Shape-shifting icons are icons that can dynamically change to represent different functional states of software or applications. These icons help users understand the different functions of software or applications more intuitively, improving the user experience.
[0003] The design of variable icons requires consideration of different icon states, corresponding functional changes in user interaction, and the resulting visual style changes. Implementing deformable icons necessitates programmatically implementing state switching and graphic transformations. However, some users struggle to understand the differences between the various states of a variable icon, thus failing to grasp its meaning. Furthermore, overly frequent or complex changes in deformable icons can also confuse users. Therefore, a crucial research direction in the field of variable icons is how to fully consider various factors during design and implementation to provide a reasonable and feasible design solution that improves the user experience.
[0004] Therefore, how to reduce the difficulty of designing deformable icons while providing an icon that adapts to user needs and offers an efficient, consistent, and smooth user experience in different scenarios has become an urgent technical problem to be solved. Summary of the Invention
[0005] In view of this, in order to overcome the shortcomings of the prior art, the present invention aims to provide a method and system for creating deformable icons.
[0006] According to a first aspect of the present invention, a method for creating deformable icons is provided, comprising:
[0007] Import the icon library by obtaining its license and authorization, and then design the structure of the icons in the imported icon library.
[0008] Define the state of the icon based on the trigger conditions, and define the corresponding transformation rules for the state of each icon;
[0009] Define the style corresponding to the state of each icon, listen for changes in the style corresponding to the state of the icon, update the state of the icon according to the defined transformation rules, and obtain deformable icons.
[0010] Preferably, the deformable icon creation method of the present invention performs structural design on the icons in the imported icon library, including: classifying the icons according to themes, functions and interaction logic, storing the classified icons in the corresponding icon folder structure, and setting the corresponding icon format for the icons in the icon folder structure.
[0011] Preferably, the deformable icon creation method of the present invention defines the state of the icon based on trigger conditions, including: defining the normal state, hover state, and selected state of the icon based on trigger conditions, wherein the trigger conditions include user operation and application context.
[0012] Preferably, in the deformable icon creation method of the present invention, the deformation rules include: icon color modification rules, icon shape modification rules, icon transparency modification rules, and icon animation effect modification rules.
[0013] Preferably, the deformable icon creation method of the present invention defines the style corresponding to the state of each icon, listens for changes in the style corresponding to the state of the icon, and updates the state of the icon according to the defined deformation rules, including: defining the style corresponding to the state of the icon as the corresponding CSS class in HTML through a CSS class selector, adding an initial CSS class to the icon corresponding to the default state of the icon, listening for events that trigger changes in the state of the icon, and adding and / or removing the corresponding CSS class according to the listened-to trigger events.
[0014] Preferably, the deformable icon creation method of the present invention defines a style corresponding to the state of each icon, listens for changes in the style corresponding to the state of the icon, and updates the state of the icon according to the defined deformation rules, including: defining a style for the state of the icon in HTML through inline style attributes, adding an inline style to the icon corresponding to the default state of the icon, listening for events that trigger changes in the state of the icon, and changing the inline style attribute of the icon according to the listened-to trigger events.
[0015] Preferably, the deformable icon creation method of the present invention defines the style corresponding to the state of each icon, listens for changes in the style corresponding to the state of the icon, and updates the state of the icon according to the defined deformation rules. It also includes: defining the animation frames or keyframes of the transition between the states of the icon as corresponding CSS classes in the HTML through CSS class selectors, adding an initial CSS class to the icon corresponding to the default state of the icon, listening for events that trigger changes in the state of the icon, adding and / or removing corresponding CSS classes according to the listened-in events, and running the animations related to the defined animation frames or keyframes during the process of adding and / or removing corresponding CSS classes.
[0016] Preferably, the method for creating deformable icons according to the present invention further includes: creating a traceable data file for an icon library storing deformable icons, wherein the traceable data file includes a naming convention file for icon files, a version change record file for the icon library, a usage guide for icons, and a style guide.
[0017] Preferably, the method for creating deformable icons according to the present invention further includes: performing responsiveness and compatibility tests on the obtained deformable icons, and adjusting the icon's state style and deformation rules based on the test results.
[0018] According to a second aspect of the present invention, a deformable icon creation system is provided. The system includes an icon creation server, configured to import an icon library by obtaining permission and authorization from the icon library, perform structural design on the icons in the imported icon library; define the state of the icon based on trigger conditions, define corresponding deformation rules for each state of the icon; define the style corresponding to each state of the icon, listen for changes in the style corresponding to the state of the icon, update the state of the icon according to the defined deformation rules, and obtain a deformable icon.
[0019] According to a third aspect of the present invention, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the method described in the first aspect of the present invention.
[0020] The method and system for creating deformable icons of the present invention have the following beneficial technical effects:
[0021] 1. By obtaining permission and authorization from the icon library, import the icon library, perform structural design on the icons in the imported icon library, define the state of the icon based on trigger conditions, and define corresponding deformation rules for each state of the icon. This allows for customized and precise design of the trigger conditions and deformation rules of deformable icons according to the specific needs of users and the application scenarios of the icons, reducing the design cost of deformable icons and improving the user experience of deformable icons.
[0022] 2. By defining the style corresponding to the state of each icon, listening to changes in the style corresponding to the icon state, and updating the state of the icon according to the defined deformation rules, deformable icons are obtained, improving the deformation response efficiency of deformable icons and realizing the adaptive deformation of icons to follow the application scenario.
[0023] 3. By defining different animation frames or keyframes and applying them to the icons, you can achieve smoother and more consistent icon state transitions through CSS animations.
[0024] 4. Improve the standardization of deformable icon management by creating traceable data files for the icon library that stores deformable icons. Attached Figure Description
[0025] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0026] Figure 1 This is a schematic diagram of a system for creating deformable icons applicable to embodiments of this application;
[0027] Figure 2 This is a flowchart illustrating the steps of a method for creating a deformable icon according to an embodiment of the present invention.
[0028] Figure 3 This is a schematic diagram of the structure of the device provided by the present invention. Detailed Implementation
[0029] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings.
[0030] It should be noted that, in the absence of conflict, the following embodiments and features can be combined with each other; and, based on the embodiments of this disclosure, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this disclosure.
[0031] It should be noted that various aspects of embodiments within the scope of the appended claims are described below. It will be apparent that the aspects described herein can be embodied in a wide variety of forms, and any particular structure and / or function described herein is merely illustrative. Based on this disclosure, those skilled in the art will understand that one aspect described herein can be implemented independently of any other aspect, and two or more of these aspects can be combined in various ways. For example, any number of aspects set forth herein can be used to implement the device and / or practice the method. Additionally, this device and / or method can be implemented using structures and / or functionalities other than one or more of the aspects set forth herein.
[0032] Figure 1 An exemplary system for creating deformable icons applicable to embodiments of this application is shown. For example... Figure 1 As shown, the system may include an icon creation server 101, a communication network 102, and / or one or more icon creation clients 103. Figure 1 The example in the text is client 103, which creates multiple icons.
[0033] The icon creation server 101 can be any suitable server used to store information, data, programs, and / or any other suitable type of content. In some embodiments, the icon creation server 101 can perform appropriate functions. For example, in some embodiments, the icon creation server 101 can be used to provide a method for creating deformable icons. As an optional example, in some embodiments, the icon creation server 101 can be used to implement deformable icon creation by defining, monitoring, and changing the style of icon states. For example, the icon creation server 101 can be used to import an icon library by obtaining a license and authorization from the icon library, perform structural design on the icons in the imported icon library; define the state of the icons based on trigger conditions, define corresponding deformation rules for each state of the icons; define the style corresponding to each state of the icons, monitor changes in the style corresponding to the state of the icons, update the state of the icons according to the defined deformation rules, and obtain deformable icons.
[0034] As another example, in some embodiments, the icon creation server 101 may send the deformable icon creation method to the icon creation client 103 for user use, based on a request from the icon creation client 103.
[0035] As an optional example, in some embodiments, the icon creation client 103 is used to provide a visual icon creation interface, which is used to receive a user's selection input operation for creating deformable icons, and to obtain and display the icon creation interface corresponding to the option selected by the selection input operation from the icon creation server 101 in response to the selection input operation. The icon creation interface displays at least information on creating deformable icons and operation options for the information on creating deformable icons.
[0036] In some embodiments, communication network 102 can be any suitable combination of one or more wired and / or wireless networks. For example, communication network 102 can include any one or more of the following: the Internet, intranet, wide area network (WAN), local area network (LAN), wireless network, digital subscriber line (DSL) network, frame relay network, asynchronous transfer mode (ATM) network, virtual private network (VPN), and / or any other suitable communication network. Icon creation client 103 can be connected to communication network 102 via one or more communication links (e.g., communication link 104), which can be linked to icon creation server 101 via one or more communication links (e.g., communication link 105). Communication links can be any communication link suitable for transmitting data between icon creation client 103 and icon creation server 101, such as network links, dial-up links, wireless links, hardwired links, any other suitable communication links, or any suitable combination of such links.
[0037] The icon creation client 103 may include any one or more clients that present an interface related to creating deformable icons in a suitable form for user use and operation. In some embodiments, the icon creation client 103 may include any suitable type of device. For example, in some embodiments, the icon creation client 103 may include a mobile device, tablet computer, laptop computer, desktop computer, and / or any other suitable type of client device.
[0038] Although the icon creation server 101 is illustrated as a single device, in some embodiments, any suitable number of devices may be used to perform the functions performed by the icon creation server 101. For example, in some embodiments, multiple devices may be used to implement the functions performed by the icon creation server 101. Alternatively, cloud services may be used to implement the functions of the icon creation server 101.
[0039] Based on the above system, this application provides a method for creating deformable icons, which is illustrated through the following embodiments.
[0040] Reference Figure 2 The diagram illustrates a flowchart of the steps in a method for creating a deformable icon according to an embodiment of this application.
[0041] The deformable icon creation method of this embodiment can be executed on a deformable icon creation system, and the deformable icon creation method includes the following steps:
[0042] Step S201: Import the icon library by obtaining the icon library's license and authorization, and perform structural design on the icons in the imported icon library.
[0043] The icon library in this embodiment can be selected by those skilled in the art based on the actual application scenario of the icons, including but not limited to the Arcodesign icon library. For example, before importing and retrieving icon library files from the Arcodesign icon library, it is necessary to obtain a license and authorization from the Arcodesign icon library. The icon library in this embodiment has clear classifications for commonly used icons, such as edit, button, and tooltip; it has clear name definitions, such as IconCheckCircle and IconExclamationCircle; and it provides both linear and planar forms of icons, suitable for menu bar icons to reference and select.
[0044] To improve the efficiency of users in calling and retrieving icons, this embodiment needs to perform structural design on the icons in the imported icon library after importing them. First, the icons are classified according to the theme, function and interaction logic, and the classified icons are stored in the corresponding icon folder structure. Second, the corresponding icon format is set for the icons in the icon folder structure, such as SVG format icons, PNG format icons or font format icons, etc.
[0045] Step S202: Define the state of the icon based on the trigger condition, and define the corresponding transformation rules for the state of each icon.
[0046] The triggering conditions in this embodiment include, but are not limited to, user operations and application context. Those skilled in the art can define and select the triggering conditions according to the specific application scenario of the icon. In this embodiment, the state of the icon can be defined based on the above triggering conditions. The state of the icon includes, but is not limited to, normal state, hover state, and selected state.
[0047] After defining the state of the icon based on the trigger conditions, this embodiment also needs to define corresponding transformation rules for each icon's state. The transformation rules in this embodiment include, but are not limited to: icon color modification rules, icon shape modification rules, icon transparency modification rules, and icon animation effect modification rules. Those skilled in the art can use CSS or JavaScript to implement the above transformation rules. CSS (Cascading Style Sheets) is a computer language used to style HTML (an application of Standard Generalized Markup Language) or XML (a subset of Standard Generalized Markup Language) documents. CSS can not only statically format web pages, but also dynamically format various elements of a web page in conjunction with various scripting languages. It can also precisely control the layout of elements on a web page at the pixel level, supports almost all font sizes and styles, and has the ability to edit the styles of web page objects and models. JavaScript (JS) is a lightweight, interpreted or just-in-time (JIT) programming language with a function-first approach. It is known as a scripting language for developing web pages and is also used in many non-browser environments. JavaScript is a prototype-based, multi-paradigm dynamic scripting language that supports object-oriented, imperative, declarative, and functional programming paradigms.
[0048] Step S203: Define the style corresponding to the state of each icon, listen for changes in the style corresponding to the state of the icon, update the state of the icon according to the defined deformation rules, and obtain deformable icons.
[0049] As an example, this embodiment defines a style corresponding to the state of each icon, listens for changes in the style corresponding to the icon state, updates the icon state according to the defined deformation rules, and obtains a deformable icon, implemented in the following way:
[0050] In HTML, CSS class selectors are used to define the styles corresponding to the icon's states as appropriate CSS classes. An initial CSS class corresponding to the icon's default state is added. Events that trigger changes in the icon's state, such as mouse hover or click events, are listened for. Based on the detected events, corresponding CSS classes are added and / or removed using CSS class selectors. It should be noted that in this example, JavaScript is used to listen for events that trigger changes in the icon's state. Those skilled in the art can use other methods to listen for events that trigger changes in the icon's state; this embodiment does not impose any limitations on this approach.
[0051] Using CSS classes to switch states offers greater flexibility. Styles can be defined flexibly within CSS, and states can be switched by adding or removing CSS classes. This approach is suitable for complex state changes and style definitions, as well as situations requiring flexible control over multiple icon states.
[0052] As another example, this embodiment defines the style corresponding to the state of each icon, listens for changes in the style corresponding to the icon state, updates the icon state according to the defined deformation rules, and obtains deformable icons, which is implemented in the following way:
[0053] In HTML, inline style attributes are used to define styles for the icon's state. An inline style corresponding to the icon's default state is added to the icon. Events that trigger changes in the icon's state, such as mouse hover or click events, are listened for, and the inline style attributes of the icon are changed based on the detected events. It should be noted that in this example, JavaScript is used to listen for events that trigger changes in the icon's state. Those skilled in the art can use other methods to listen for events that trigger changes in the icon's state; this embodiment does not impose any limitations on this approach.
[0054] Using inline styles to switch states is a simple and direct method. By changing the inline style properties, the state can be switched. This method is suitable for simple state changes and situations where only a single icon needs to have its state switched and style defined.
[0055] As another example, to make the icon state transitions smoother and more seamless, this embodiment defines different animation frames or keyframes and applies them to the icons to achieve icon state switching through CSS animation. Specifically, in the HTML, CSS class selectors are used to define the animation frames or keyframes that transition between icon states as corresponding CSS classes. An initial CSS class corresponding to the icon's default state is added to the icon. JavaScript is used to listen for events that trigger changes in the icon state. Based on the detected events, corresponding CSS classes are added and / or removed. During the process of adding and / or removing the corresponding CSS classes, the animations related to the defined animation frames or keyframes are run.
[0056] To improve the standardization of deformable icons management, this embodiment also creates a traceable data file for the icon library storing deformable icons. This traceable data file includes a naming convention file for icon files, enabling developers to efficiently identify and reference icon files during development; a version change log file for the icon library, which can be managed using a version control system (such as Git), facilitating collaborative development and change tracking; and a usage guide and style guide for the icons. The usage guide records how the icon library is used and recommended best practices, while the style guide records variable style rules, thereby helping to ensure the consistency and usability of icon deformation.
[0057] To further improve the user experience during icon application, this embodiment, after completing the code-level implementation, conducts responsiveness and compatibility tests on the obtained deformable icons on different devices and browsers, and adjusts the icon's state style and deformation rules based on the test results.
[0058] like Figure 3 As shown, the present invention also provides a device including a processor 310, a communication interface 320, a memory 330 for storing processor-executable computer programs, and a communication bus 340. The processor 310, communication interface 320, and memory 330 communicate with each other via the communication bus 340. The processor 310 implements the aforementioned method for creating deformable icons by running the executable computer program.
[0059] The computer program in memory 330, when implemented as a software functional unit and sold or used as an independent product, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0060] The system embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected based on actual needs to achieve the purpose of this embodiment. Those skilled in the art can understand and implement this without any creative effort.
[0061] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., including several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or some parts of embodiments.
[0062] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A method for creating deformable icons, characterized in that, The method includes: Import the icon library by obtaining its license and authorization, and then design the structure of the icons in the imported icon library. Define the state of the icon based on the trigger conditions, and define the corresponding transformation rules for the state of each icon; Define the style corresponding to the state of each icon, listen for changes in the style corresponding to the state of the icon, update the state of the icon according to the defined deformation rules, and obtain deformable icons. The imported icon library is structured, including: classifying icons according to theme, function and interaction logic, storing the classified icons in the corresponding icon folder structure, and setting the corresponding icon format for the icons in the icon folder structure. The state of an icon is defined based on trigger conditions, including: defining the normal state, hover state, and selected state of the icon based on trigger conditions, wherein the trigger conditions include user operation and application context; The transformation rules include: icon color modification rules, icon shape modification rules, icon transparency modification rules, and icon animation effect modification rules.
2. The method for creating deformable icons according to claim 1, characterized in that, Define the style corresponding to each icon's state, listen for changes in the style corresponding to the icon's state, and update the icon's state according to the defined transformation rules. This includes: defining the style corresponding to the icon's state as the corresponding CSS class in the HTML using a CSS class selector, adding an initial CSS class to the icon that corresponds to the icon's default state, listening for events that trigger changes in the icon's state, and adding and / or removing corresponding CSS classes based on the detected events.
3. The method for creating deformable icons according to claim 1, characterized in that, Define the style corresponding to each icon's state, listen for changes in the style corresponding to the icon's state, and update the icon's state according to the defined transformation rules. This includes: defining the style for the icon's state in HTML using inline style attributes, adding an inline style to the icon that corresponds to the icon's default state, listening for events that trigger changes in the icon's state, and changing the icon's inline style attributes according to the triggered events.
4. The method for creating deformable icons according to claim 1, characterized in that, Define the style corresponding to each icon's state, listen for changes in the style corresponding to the icon's state, update the icon's state according to the defined transformation rules, and also include: defining the animation frames or keyframes for the transition between icon states as corresponding CSS classes in HTML using CSS class selectors, adding an initial CSS class to the icon corresponding to the icon's default state, listening for events that trigger changes in the icon's state, adding and / or removing corresponding CSS classes according to the listened-upon events, and running the animations related to the defined animation frames or keyframes during the process of adding and / or removing the corresponding CSS classes.
5. The method for creating deformable icons according to claim 1, characterized in that, The method further includes: creating a traceable data file for the icon library storing deformable icons, the traceable data file including a naming convention file for icon files, a version change log file for the icon library, a usage guide for the icons, and a style guide.
6. The method for creating deformable icons according to claim 1, characterized in that, The method further includes: performing responsiveness and compatibility tests on the obtained deformable icons, and adjusting the icon's state style and deformation rules based on the actual test results.
7. A system for creating deformable icons, characterized in that, The system includes an icon creation server, which is used to import an icon library by obtaining permission and authorization from the icon library, and to perform structural design on the icons in the imported icon library; Define the state of the icon based on the trigger conditions, define the corresponding transformation rules for each state of the icon, define the style corresponding to each state of the icon, listen for changes in the style corresponding to the state of the icon, update the state of the icon according to the defined transformation rules, and obtain a deformable icon. The imported icon library is structured, including: classifying icons according to theme, function, and interaction logic; storing the classified icons in corresponding icon folder structures; and setting corresponding icon formats for the icons in the icon folder structures. Icon states are defined based on trigger conditions, including: defining the normal state, hover state, and selected state of the icon based on trigger conditions, such as user operation and application context. The transformation rules include: icon color modification rules, icon shape modification rules, icon transparency modification rules, and icon animation effect modification rules.
Citation Information
Patent Citations
Method and device for implementing icon deformation
CN102163129A
Method for realizing power system graph visual transformation based on user-defined transformation rule
CN110209390A
