Dynamic theme switching method and device based on Kwan operating system

By presetting multiple theme templates in the Hongmeng operating system, obtaining user preference data and matching target theme templates, and dynamically updating interface elements, the problem of users being unable to automatically switch topics is solved, and the user experience and personalization level is improved.

CN119697313AInactive Publication Date: 2025-03-25TAIJI COMPUTER CORPORATION LIMITED +1

Patent Information

Application Number
CN202411447456.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-16
Publication Date
2025-03-25
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, users are unable to automatically switch the theme interface of the electronic device based on time, weather, mood or special events, resulting in poor user experience, troublesome operation, and insufficient personalization.

Method used

Based on the Hongmeng operating system, users' preference data is obtained by presetting multiple types of theme templates, including time, weather, geographical location and specific event information, matching the corresponding target theme templates, switching atomic services, and dynamically updating interface elements.

Benefits of technology

It realizes dynamic switching of topics based on user preference data, meets user personalized needs, improves user experience, and simplifies operational processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119697313A_ABST
    Figure CN119697313A_ABST
Patent Text Reader

Abstract

The invention provides a dynamic theme switching method based on a swan-gap operating system, and relates to the technical field of computers, a personalized theme template set by an ArkUI framework user based on the swan-gap operating system, a default theme template preset by an application program and a specific event theme template are set, each theme template comprises a plurality of interface elements, and the interface elements are connected with the interface elements. Packaging into an atomization service through a Gawan operating system; obtaining user preference data, wherein the user preference data comprises current time, weather and geographical location information of a user, behavior habit information of the user and specific event information which are obtained through a sensor; matching corresponding target theme templates according to the user preference data and the multiple types of theme templates; and switching the atomization service to dynamically update the interface element of the application program on the electronic equipment into the target theme template. Therefore, the dynamic switching of the multiple types of theme templates is realized according to the user preference data and the Nan Mongolian operating system, the personalized requirements of the user are met, and the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and in particular to a dynamic theme switching method and device based on Hongmeng operating system. Background Art

[0002] As mobile Internet technology matures, people attach more and more importance to the personalized experience of electronic devices, hoping to customize the theme interface of electronic devices according to their own preferences. The operating system of electronic devices itself provides a theme function, allowing users to select different themes to change the appearance of electronic devices. In related technologies, users need to manually select themes, and cannot automatically switch themes according to time, weather, mood or special events. The operation is cumbersome, and users can only choose from a limited number of themes preset by the system. There is also a lack of theme support for special events, resulting in poor user experience, inconvenient use, and insufficient personalization. Summary of the invention

[0003] The present invention aims to solve one of the technical problems in the related art at least to a certain extent.

[0004] To this end, the first purpose of the present invention is to propose a dynamic theme switching method based on the Hongmeng operating system, which realizes dynamic switching of multiple types of theme templates according to user preference data and the Hongmeng operating system, meets user personalized needs, and improves user experience.

[0005] The second objective of the present invention is to propose a dynamic theme switching device based on the Hongmeng operating system.

[0006] A third objective of the present invention is to provide an electronic device.

[0007] A fourth object of the present invention is to provide a non-transitory computer-readable storage medium storing computer instructions.

[0008] A fifth object of the present invention is to provide a computer program product.

[0009] To achieve the above-mentioned purpose, the first aspect of the present invention proposes a dynamic theme switching method based on the Hongmeng operating system, and the dynamic theme switching method based on the Hongmeng system runs on an electronic device equipped with the Hongmeng operating system. The method includes:

[0010] Multiple types of theme templates are preset, including personalized theme templates set by users of the ArkUI framework based on the Hongmeng operating system, default theme templates preset by applications, and specific event theme templates. Each personalized theme template, default theme template, and event theme template contains multiple interface elements, and each interface element is encapsulated into an atomic service through the Hongmeng operating system, where the interface elements include color, font, icon, layout, brand logo, and navigation bar style;

[0011] Acquire user preference data, wherein the user preference data includes user's current time, weather, geographic location information, user's behavior habit information and specific event information acquired through sensors;

[0012] According to the user preference data, matching a corresponding target theme template from the personalized theme template, the default theme template and the event theme template;

[0013] According to the target theme template, the atomic service is switched to dynamically update the interface elements of the application on the electronic device to the target color, target font, target icon, target layout, target brand logo, and target navigation bar style corresponding to the target theme template.

[0014] To achieve the above-mentioned purpose, the second aspect of the present invention proposes a dynamic theme switching device based on the Hongmeng operating system, and the dynamic theme switching device based on the Hongmeng system runs on an electronic device equipped with the Hongmeng operating system, and the device includes:

[0015] A setting module is used to preset multiple types of theme templates, including personalized theme templates set by users of the ArkUI framework based on the Hongmeng operating system, default theme templates preset by applications, and specific event theme templates. Each personalized theme template, default theme template, and event theme template contains multiple interface elements, and each interface element is encapsulated into an atomic service through the Hongmeng operating system, where the interface elements include color, font, icon, layout, brand logo, and navigation bar style;

[0016] An acquisition module, used to acquire user preference data, wherein the user preference data includes the user's current time, weather, geographic location information, user behavior habit information and specific event information acquired through sensors;

[0017] A matching module, used for matching a corresponding target theme template from the personalized theme template, the default theme template and the event theme template according to the user preference data;

[0018] The first switching module is used to switch the atomic service according to the target theme template to dynamically update the interface elements of the application on the electronic device to the target color, target font, target icon, target layout, target brand logo, and target navigation bar style corresponding to the target theme template.

[0019] To achieve the above-mentioned purpose, the third aspect of the present invention proposes an electronic device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method described in the first aspect.

[0020] In order to achieve the above-mentioned purpose, the fourth aspect of the present invention proposes a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to enable the computer to execute the method described in the first aspect.

[0021] In order to achieve the above-mentioned purpose, a fifth aspect of the present invention provides a computer program product, and when the computer program is executed by a processor, it implements the method described in the first aspect.

[0022] The dynamic theme switching method, device, electronic device and storage medium based on the Hongmeng operating system provided by the embodiment of the present invention set a personalized theme template set by the user of the ArkUI framework based on the Hongmeng operating system, a default theme template preset by the application and a specific event theme template, each theme template contains multiple interface elements, and is encapsulated into an atomic service through the Hongmeng operating system; obtain user preference data, the user preference data includes the user's current time, weather, geographic location information, user behavior habit information and specific event information obtained by sensors; match the corresponding target theme template according to the user preference data and multiple types of theme templates; switch the atomic service to dynamically update the interface elements of the application on the electronic device to the target theme template. Thus, dynamic switching of multiple types of theme templates is realized according to the user preference data and the Hongmeng operating system, meeting the personalized needs of users and improving the user experience.

[0023] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0025] Figure 1A flowchart of a dynamic theme switching method based on the Hongmeng operating system provided by an embodiment of the present invention;

[0026] Figure 2 A flow chart of dynamic theme switching of an APP provided by an embodiment of the present invention;

[0027] Figure 3 A structural schematic diagram of a dynamic theme switching device based on the Hongmeng operating system provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0028] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0029] It should be noted that the acquisition, storage, use, and processing of data in the technical solution of the present invention are in compliance with the relevant provisions of relevant laws and regulations.

[0030] The following describes a dynamic theme switching method and device based on the Hongmeng operating system according to an embodiment of the present invention with reference to the accompanying drawings.

[0031] Figure 1 A flow chart of a dynamic theme switching method based on the Hongmeng operating system provided in an embodiment of the present invention.

[0032] like Figure 1 As shown, the dynamic theme switching method based on the Hongmeng system runs on an electronic device equipped with the Hongmeng operating system, and the method includes the following steps:

[0033] Step 101, preset multiple types of theme templates, including personalized theme templates set by users of the ArkUI framework based on the Hongmeng operating system, default theme templates preset by applications, and specific event theme templates. Each personalized theme template, default theme template, and event theme template contains multiple interface elements, and each interface element is encapsulated into an atomic service through the Hongmeng operating system, wherein the interface elements include color, font, icon, layout, brand logo, and navigation bar style.

[0034] In some embodiments, the colors in the interface elements include the background color, text color, button color, and theme color of the theme template; the fonts include the text font, font size, and font weight of the theme template; the icons include the button icons and menu icons of the theme template; the layout includes the page layout and spatial arrangement of the theme template; the brand logo includes a picture for displaying the brand logo; the navigation bar style includes the color, font, and button style of the top navigation bar and the bottom navigation bar.

[0035] Furthermore, in the case where the color includes the background color, text color, button color, and theme color of the theme template, the night theme can use softer tones, such as light blue and lavender; the day theme can use brighter tones, such as orange and yellow; and the specific theme can use colors that can express specific events or festivals according to the nature of the event, such as dark gray and dark green.

[0036] Furthermore, when the font includes the text font, font size, and font weight, the font can be selected according to different theme styles. A night theme can use a softer font, such as a rounded Songti or Fangsongti; a day theme can use a clearer font, such as Heiti and Microsoft Yahei.

[0037] Furthermore, when the icons include button icons and menu icons, they can be selected according to different theme styles. For example, a night theme can use darker icons, while a day theme can use brighter icons.

[0038] Furthermore, in the case where the layout includes page layout and control arrangement, it can be adjusted according to different theme styles. For example, a night theme can use a simpler layout to reduce visual stimulation, while a day theme can use a richer layout to enhance the visual effect.

[0039] Furthermore, in the case where the brand logo includes an image for displaying the brand logo, it can also be selected according to different theme styles. For example, a night theme can use a white version of the brand logo; a day theme can use a color version of the brand logo; an event theme can use a corresponding brand logo according to the nature of the event, such as a gray version of the brand logo.

[0040] Furthermore, when the navigation bar style includes the color, font, and button style of the top navigation bar and the bottom navigation bar, it can be adjusted according to different theme styles. For example, a night theme can use a navigation bar with a dark background, a day theme can use a navigation bar with a light background, and an event theme can be selected according to the nature of the event, such as a navigation bar with a dark gray background.

[0041] In some embodiments, each theme template includes different interface elements to meet the needs of different users. System administrators or developers can select different theme templates as default themes in the background according to user needs, and respond to special themes according to triggered events.

[0042] In addition, the ArkUI framework is a new user interface design (UI) development framework provided by the Hongmeng system for developers. It provides rich UI components and application programming interfaces (API), simplifies the application (APP) interface development process, and supports developers to easily customize theme templates.

[0043] Step 102, obtaining user preference data, the user preference data including the user's current time, weather, geographic location information, user behavior habit information and specific event information obtained through sensors.

[0044] Optionally, the theme can be dynamically switched based on the user's current time, weather, and geographic location information obtained by sensors. For example, when the user's current time is night, the system will automatically match the night theme; when the user's current weather is clear, the system will automatically match the day theme; when the user is in a specific location, the system will automatically match the corresponding location theme.

[0045] Optionally, the user's preferences can be analyzed based on the user's behavioral habit information, such as data on frequently used topics, topic switching frequency, etc., and topics that better suit the user's preferences can be recommended.

[0046] Optionally, a festival theme may be automatically triggered according to a specific event, such as various festivals, and a theme style corresponding to the nature of the festival may be used to express the festival.

[0047] Step 103 , matching a corresponding target theme template from the personalized theme template, the default theme template and the event theme template according to the user preference data.

[0048] In some embodiments, for default theme template matching, a day theme or a night theme may be automatically matched according to the default theme selected by the user or according to information acquired by the sensor and used as the target theme template.

[0049] For event subject template matching, you can match a specific event subject based on system events or specific events set in the background, and use it as the target subject template.

[0050] For personalized theme template matching, users can create personalized theme templates by themselves. The system will match the personalized theme templates saved by the users and use them as the target theme templates.

[0051] Step 104, according to the target theme template, switch the atomic service to dynamically update the interface elements of the application on the electronic device to the target color, target font, target icon, target layout, target brand logo, and target navigation bar style corresponding to the target theme template.

[0052] In some embodiments, the Hongmeng system splits the functions of the APP into multiple independent atomic services, each of which has an independent operating environment and resources. This architecture allows developers to independently manage and update atomic services related to theme templates. For example, the interface elements such as colors, fonts, and icons related to theme templates are encapsulated into independent atomic services. When the user selects or the system automatically switches the theme template, only the corresponding atomic service needs to be updated without reinstalling the entire APP, thereby improving the efficiency of theme switching and user experience.

[0053] Furthermore, during the color switching process, the background color, text color, and button color of the theme template are set to the target colors defined in the matching target theme template, and the theme color of the theme template is set to the target theme color defined in the matching target theme template.

[0054] Furthermore, during the font switching process, the text font, font size, and font weight of the theme template are set to the target font style defined in the matching target theme template.

[0055] Furthermore, in the icon switching process, the button icons and menu icons of the theme template are set to target icons defined in the matching target theme template.

[0056] Furthermore, during the layout adjustment process, the page layout and control arrangement are adjusted to conform to the design of the target layout of the matching target theme template.

[0057] Furthermore, during the brand logo switching process, the target brand logo is displayed or hidden according to the matched target theme template, and the corresponding version (color or white or gray) is used.

[0058] Furthermore, during the navigation bar style switching process, the target top and bottom navigation bar styles defined in the matching target theme template are applied.

[0059] In addition, during the event theme switching process, if a specific event is matched, such as a "festival theme", the system will adjust the interface elements to the target interface elements defined by the festival theme to better express the festival.

[0060] Therefore, users can select the default theme template preset by the application through the system settings, or the personalized theme template set by the user of the ArkUI framework of the Hongmeng operating system, or a specific event theme template, to enhance the personalized experience of the APP and meet the aesthetics and usage habits of different users. The theme can also be dynamically switched according to user preference data without manual operation, making it more convenient to use and improving user efficiency.

[0061] The dynamic theme switching method based on the Hongmeng operating system of the embodiment of the present invention sets a personalized theme template set by the user of the ArkUI framework based on the Hongmeng operating system, a default theme template preset by the application, and a specific event theme template. Each theme template contains multiple interface elements and is encapsulated into an atomic service through the Hongmeng operating system; obtains user preference data, and the user preference data includes the user's current time, weather, geographic location information, user behavior habit information, and specific event information obtained through sensors; matches the corresponding target theme template according to the user preference data and multiple types of theme templates; switches the atomic service to dynamically update the interface elements of the application on the electronic device to the target theme template. Thus, dynamic switching of multiple types of theme templates is achieved according to the user preference data and the Hongmeng operating system to meet the personalized needs of users and improve the user experience.

[0062] In summary, the present invention also proposes a flow chart of APP dynamic theme switching, such as Figure 2 As shown, the dynamic theme switching of APP is implemented based on the Hongmeng system. Specifically, multiple types of theme templates are defined first, and each theme template contains multiple interface elements, wherein the interface elements include color, font, icon, layout, brand logo, and navigation bar style; then the user preference data is obtained, and the user preference data includes the user's current time, weather, geographic location information (sensor information), user behavior habit information and specific event information obtained through sensors; according to the user preference data, personalized theme template matching, default theme template matching and event theme template matching are performed to obtain a matching target theme template; finally, dynamic theme switching is performed, and according to the target theme template, the atomic service is switched to perform target color switching, target font switching, target icon switching, target layout switching, target brand logo switching, and target navigation bar style switching of the interface elements of the application on the electronic device.

[0063] In some embodiments, the target theme template of the same user can be synchronously switched to the same application of different electronic devices based on the distributed operating subsystem of the Hongmeng system. Therefore, when the user uses the same APP on different devices, the target theme template will be automatically synchronized to all electronic devices to ensure that the user sees the same theme on different electronic devices. This allows users to use APPs seamlessly across devices and enjoy a consistent theme experience, improving user convenience and satisfaction.

[0064] In some embodiments, the target theme template can also be switched to different types of electronic devices based on the HarmonyOS Connect platform. Therefore, through the HarmonyOS Connect platform, the theme switching function can be extended to other devices (electronic watches, speakers), achieving cross-device theme synchronization and consistency, and providing users with a more complete theme experience.

[0065] In some embodiments, the dynamic theme switching method based on the HarmonyOS operating system can be integrated into the application based on the theme API in the ArkUI framework of the HarmonyOS system, and multiple types of theme templates integrated in the application can be managed based on the theme management mechanism of the HarmonyOS system.

[0066] Furthermore, developers can use the theme API in the ArkUI framework to easily create and manage theme templates and dynamically switch themes based on user preference data. The ArkUI framework also provides a wealth of customization features, allowing developers to flexibly customize theme templates according to their needs to meet the personalized needs of users.

[0067] In one embodiment of the present invention, when performing dynamic theme switching of a social APP on an electronic device, three types of theme templates, namely "daytime theme", "nighttime theme" and "festival theme", are preset, and each theme template contains different colors, fonts, icons, layouts, brand logos, and navigation bar styles; when "daytime theme" is selected as the default theme template (target theme template); the theme is automatically switched according to time, for example, it automatically switches to "nighttime theme" between 10 pm and 7 am. When a holiday event occurs, the system administrator controls the triggering of the holiday theme in the background, automatically switches to the "holiday theme", and adjusts the interface elements to the target interface elements defined by the holiday theme.

[0068] In addition, based on the ArkUI framework of the Hongmeng operating system, users can customize personalized theme templates according to their preferences and save them locally for next use; match and switch themes based on the personalized theme templates saved by users; dynamically update the interface elements of social apps based on the matching personalized theme templates to achieve theme switching.

[0069] In another embodiment of the present invention, when performing dynamic theme switching of news APP on electronic devices, theme templates of types "red theme", "blue theme" and "green theme" are preset, and each theme template contains different colors, fonts, icons, layouts, brand logos, and navigation bar styles; when "blue theme" is selected as the default theme template (target theme template); the theme can be automatically switched according to the user's current weather conditions, for example, when the weather is clear, it automatically switches to "red theme", and when the weather is gloomy, it automatically switches to "blue theme". When an environmental protection festival event occurs, the green theme is triggered, and the "green theme" is switched, and the interface color is adjusted to the target interface element defined by the green theme.

[0070] In addition, based on the ArkUI framework of the Hongmeng operating system, users can customize personalized theme templates according to their preferences and save them locally for next use; match and switch themes based on the personalized theme templates saved by users; dynamically update the interface elements of the news APP according to the matching personalized theme templates to achieve theme switching.

[0071] In order to implement the above embodiments, the present invention also proposes a dynamic theme switching device based on the Hongmeng operating system.

[0072] Figure 3 A structural schematic diagram of a dynamic theme switching device based on the Hongmeng operating system provided in an embodiment of the present invention.

[0073] like Figure 3 As shown, the dynamic theme switching device 30 based on the Hongmeng operating system includes: a setting module 31, an acquisition module 32, a matching module 33, and a first switching module 34.

[0074] A setting module 31 is used to preset multiple types of theme templates, including personalized theme templates set by users of the ArkUI framework based on the Hongmeng operating system, default theme templates preset by applications, and specific event theme templates. Each personalized theme template, default theme template, and event theme template includes multiple interface elements, and each interface element is encapsulated into an atomic service through the Hongmeng operating system, wherein the interface elements include color, font, icon, layout, brand logo, and navigation bar style;

[0075] An acquisition module 32 is used to acquire user preference data, wherein the user preference data includes the user's current time, weather, geographic location information, user behavior habit information and specific event information acquired through sensors;

[0076] A matching module 33, used to match a corresponding target theme template from the personalized theme template, the default theme template and the event theme template according to the user preference data;

[0077] The first switching module 34 is used to switch the atomic service according to the target theme template to dynamically update the interface elements of the application on the electronic device to the target color, target font, target icon, target layout, target brand logo, and target navigation bar style corresponding to the target theme template.

[0078] Furthermore, in a possible implementation method of an embodiment of the present invention, the color includes the background color, text color, button color, and theme color of the theme template; the font includes the text font, font size, and font weight of the theme template; the icons include button icons and menu icons of the theme template; the layout includes the page layout and spatial arrangement of the theme template; the brand logo includes a picture for displaying the brand logo; the navigation bar style includes the color, font, and button style of the top navigation bar and the bottom navigation bar.

[0079] Furthermore, in a possible implementation of an embodiment of the present invention, a second switching module is used to synchronously switch the target theme template of the same user to the same application of different electronic devices based on the distributed operation subsystem of the Hongmeng system.

[0080] Furthermore, in a possible implementation of the embodiment of the present invention, the device further includes:

[0081] The third switching module is used to switch the target theme template to different types of electronic devices according to the Hongmeng Intelligent Connection Platform of the Hongmeng system.

[0082] Furthermore, in a possible implementation of the embodiment of the present invention, the device further includes:

[0083] The management module is used to integrate the dynamic theme switching method based on the Hongmeng operating system into the application based on the theme API in the ArkUI framework in the Hongmeng system, and manage multiple types of theme templates integrated in the application based on the theme management mechanism of the Hongmeng system.

[0084] The dynamic theme switching device based on the Hongmeng operating system of the embodiment of the present invention sets a personalized theme template set by the user of the ArkUI framework based on the Hongmeng operating system, a default theme template preset by the application, and a specific event theme template. Each theme template contains multiple interface elements and is encapsulated into an atomic service through the Hongmeng operating system; obtains user preference data, and the user preference data includes the user's current time, weather, geographic location information, user behavior habit information, and specific event information obtained through sensors; matches the corresponding target theme template according to the user preference data and multiple types of theme templates; switches the atomic service to dynamically update the interface elements of the application on the electronic device to the target theme template. Thus, dynamic switching of multiple types of theme templates is achieved according to the user preference data and the Hongmeng operating system to meet the personalized needs of users and improve the user experience.

[0085] In order to implement the above embodiment, the present invention further provides an electronic device, including:

[0086] at least one processor; and

[0087] a memory communicatively connected to the at least one processor; wherein,

[0088] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the aforementioned method.

[0089] In order to implement the above embodiment, the present invention further proposes a non-transitory computer-readable storage medium storing computer instructions, where the computer instructions are used to enable the computer to execute the above method.

[0090] In order to implement the above embodiments, the present invention further provides a computer program product, including a computer program, wherein the computer program implements the above method when executed by a processor.

[0091] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present invention. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described may be combined in any one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, without contradiction.

[0092] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0093] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, segment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present invention includes alternative implementations in which functions may not be performed in the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present invention belong.

[0094] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as an ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by an instruction execution system, device or apparatus (such as a computer-based system, a system including a processor, or other system that can fetch instructions from an instruction execution system, device or apparatus and execute the instructions), or in combination with these instruction execution systems, devices or apparatuses. For the purpose of this specification, "computer-readable medium" can be any device that can contain, store, communicate, propagate or transmit a program for use by an instruction execution system, device or apparatus, or in combination with these instruction execution systems, devices or apparatuses. More specific examples of computer-readable media (a non-exhaustive list) include the following: an electrical connection with one or more wires (electronic device), a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and programmable read-only memory (EPROM or flash memory), a fiber optic device, and a portable compact disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program is printed, since the program may be obtained electronically, for example, by optically scanning the paper or other medium and then editing, interpreting or processing in other suitable ways if necessary, and then stored in a computer memory.

[0095] It should be understood that the various parts of the present invention can be implemented by hardware, software, firmware or a combination thereof. In the above-mentioned embodiments, a plurality of steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented by hardware, as in another embodiment, it can be implemented by any one of the following technologies known in the art or their combination: a discrete logic circuit having a logic gate circuit for implementing a logic function for a data signal, a dedicated integrated circuit having a suitable combination of logic gate circuits, a programmable gate array (PGA), a field programmable gate array (FPGA), etc.

[0096] A person skilled in the art may understand that all or part of the steps in the method for implementing the above-mentioned embodiment may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, which, when executed, includes one or a combination of the steps of the method embodiment.

[0097] In addition, each functional unit in each embodiment of the present invention may be integrated into a processing module, or each unit may exist physically separately, or two or more units may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of software functional modules. If the integrated module is implemented in the form of software functional modules and sold or used as an independent product, it may also be stored in a computer-readable storage medium.

[0098] The storage medium mentioned above may be a read-only memory, a magnetic disk or an optical disk, etc. Although the embodiments of the present invention have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limiting the present invention. A person of ordinary skill in the art may change, modify, replace and modify the above embodiments within the scope of the present invention.

Claims

1. A dynamic theme switching method based on Hongmeng operating system, characterized in that: The dynamic theme switching method based on the Hongmeng system is run on an electronic device equipped with the Hongmeng operating system, and the method includes: Multiple types of theme templates are preset, including personalized theme templates set by users of the ArkUI framework based on the Hongmeng operating system, default theme templates preset by applications, and specific event theme templates. Each personalized theme template, default theme template, and event theme template contains multiple interface elements, and each interface element is encapsulated into an atomic service through the Hongmeng operating system, where the interface elements include color, font, icon, layout, brand logo, and navigation bar style; Acquire user preference data, wherein the user preference data includes the user's current time, weather, geographic location information, user behavior habit information and specific event information acquired through sensors; According to the user preference data, matching a corresponding target theme template from the personalized theme template, the default theme template and the event theme template; According to the target theme template, the atomic service is switched to dynamically update the interface elements of the application on the electronic device to the target color, target font, target icon, target layout, target brand logo, and target navigation bar style corresponding to the target theme template.

2. According to the method according to claim 1, the color includes the background color, text color, button color, and theme color of the theme template; the font includes the text font, font size, and font weight of the theme template; the icon includes the button icon and menu icon of the theme template; the layout includes the page layout and spatial arrangement of the theme template; the brand logo includes a picture for displaying the brand logo; the navigation bar style includes the color, font, and button style of the top navigation bar and the bottom navigation bar.

3. The method according to claim 1, further comprising: Based on the distributed operating subsystem of the Hongmeng system, the target theme template of the same user is synchronously switched to the same application on different electronic devices.

4. The method according to claim 1, characterized in that: The base method also includes: According to the Hongmeng Intelligent Connection Platform of the Hongmeng system, the target theme template is switched to different types of electronic devices.

5. The method according to claim 1, characterized in that The method further comprises: Based on the theme API in the ArkUI framework in the Hongmeng system, the dynamic theme switching method based on the Hongmeng operating system is integrated into the application, and based on the theme management mechanism of the Hongmeng system, multiple types of theme templates integrated in the application are managed.

6. A dynamic theme switching device based on Hongmeng operating system, characterized in that: The dynamic theme switching device based on the Hongmeng system runs on an electronic device equipped with the Hongmeng operating system, and the device includes: A setting module is used to preset multiple types of theme templates, including personalized theme templates set by users of the ArkUI framework based on the Hongmeng operating system, default theme templates preset by applications, and specific event theme templates. Each personalized theme template, default theme template, and event theme template contains multiple interface elements, and each interface element is encapsulated into an atomic service through the Hongmeng operating system, where the interface elements include color, font, icon, layout, brand logo, and navigation bar style; An acquisition module, used to acquire user preference data, wherein the user preference data includes the user's current time, weather, geographic location information, user behavior habit information and specific event information acquired through sensors; A matching module, used for matching a corresponding target theme template from the personalized theme template, the default theme template and the event theme template according to the user preference data; The first switching module is used to switch the atomic service according to the target theme template to dynamically update the interface elements of the application on the electronic device to the target color, target font, target icon, target layout, target brand logo, and target navigation bar style corresponding to the target theme template.

7. According to the device of claim 6, the color includes the background color, text color, button color, and theme color of the theme template; the font includes the text font, font size, and font weight of the theme template; the icon includes the button icon and menu icon of the theme template; the layout includes the page layout and spatial arrangement of the theme template; the brand logo includes a picture for displaying the brand logo; the navigation bar style includes the color, font, and button style of the top navigation bar and the bottom navigation bar.

8. The device according to claim 6, further comprising: The second switching module is used for synchronously switching the target theme template of the same user to the same application of different electronic devices based on the distributed operation subsystem of the Hongmeng system.

9. The device according to claim 6, characterized in that The base device also includes: The third switching module is used to switch the target theme template to different types of electronic devices according to the Hongmeng Intelligent Connection Platform of the Hongmeng system.

10. The device according to claim 6, characterized in that The device also includes: The management module is used to integrate the dynamic theme switching method based on the Hongmeng operating system into the application based on the theme API in the ArkUI framework in the Hongmeng system, and manage multiple types of theme templates integrated in the application based on the theme management mechanism of the Hongmeng system.

11. An electronic device, characterized in that: include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 5.

12. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-5.

Citation Information

Patent Citations

  • Method, device and equipment for generating interface theme of vehicle and storage medium

    CN116661926A

  • Theme switching method and device, equipment, storage medium and program product

    CN116795501A

  • Color management method of application interface and related equipment

    CN118502627A

  • Terminal theme generation method and device, electronic equipment and storage medium

    CN118540403A

Cited By

  • Page processing method and device based on computing power scheduling and computer equipment

    CN121523867A

  • Page processing method and device based on computing power scheduling and computer device

    CN121523867B