[go: up one dir, main page]

CN120803578A - Progressive theme changing method, device, equipment and storage medium - Google Patents

Progressive theme changing method, device, equipment and storage medium

Info

Publication number
CN120803578A
CN120803578A CN202510814500.7A CN202510814500A CN120803578A CN 120803578 A CN120803578 A CN 120803578A CN 202510814500 A CN202510814500 A CN 202510814500A CN 120803578 A CN120803578 A CN 120803578A
Authority
CN
China
Prior art keywords
control
switching
theme
page
controls
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202510814500.7A
Other languages
Chinese (zh)
Inventor
孙航
安星霖
李光明
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Faw Beijing Software Technology Co ltd
FAW Group Corp
Original Assignee
Faw Beijing Software Technology Co ltd
FAW Group Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Faw Beijing Software Technology Co ltd, FAW Group Corp filed Critical Faw Beijing Software Technology Co ltd
Priority to CN202510814500.7A priority Critical patent/CN120803578A/en
Publication of CN120803578A publication Critical patent/CN120803578A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本申请公开一种渐进式主题更改方法、装置、设备及存储介质,属于计算机技术领域。方法包括:加载页面控件和地图主题;将满足预设条件的页面控件注册到控件池中,以生成对应的控件树;响应于用户的主题更换操作,生成并发出主题切换指令;至少根据主题切换指令依次从控件池中取出待加载控件,以完成对页面控件的切换;调用主题切换接口完成地图主题的切换;在接收到地图主题的切换完成指令、且任一页面控件切换未完成时,基于切换加速规则加快页面控件的切换进度;至少在页面控件和地图主题全部切换完成后,确定主题更换操作执行完毕。本申请至少解决页面控件和地图主题切换时间不一致的问题,利于促进切换时间同步,改善用户使用体验。

The present application discloses a progressive theme change method, apparatus, device and storage medium, which belongs to the field of computer technology. The method includes: loading page controls and map themes; registering page controls that meet preset conditions into a control pool to generate a corresponding control tree; generating and issuing a theme switching instruction in response to a user's theme change operation; taking out the controls to be loaded from the control pool in sequence at least according to the theme switching instruction to complete the switching of the page controls; calling the theme switching interface to complete the switching of the map theme; upon receiving the map theme switching completion instruction and any page control switching is not completed, accelerating the switching progress of the page control based on the switching acceleration rule; at least after all the page controls and map themes are switched, determining that the theme change operation is completed. The present application at least solves the problem of inconsistent switching time between page controls and map themes, which is conducive to promoting switching time synchronization and improving user experience.

Description

Progressive theme changing method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a progressive theme changing method, device, equipment and storage medium.
Background
Taking car navigation as an example, a series of problems such as hardness, time delay, pause and frustration often occur in the process of switching daytime themes and night themes in the current car navigation. Moreover, the car navigation page card and the map are easy to generate incongruity and inconsistent images when the theme is switched, so that the flickering problem is generated when the theme of the map is switched, and the car navigation page card is synchronously switched to bring abrupt feeling to the user.
Disclosure of Invention
The embodiment of the invention provides a progressive theme changing method, device, equipment and storage medium, which are used for registering a page control at least into a control pool, sequentially taking out the control to be loaded when in use, slowing down the switching progress of the page control, and accelerating the switching progress of the page control after the switching of a map theme is finished, so as to at least solve the problem that the switching time of the page control and the map theme is inconsistent in the prior art, and facilitate the time synchronization of the switching of the page control and the map theme, and improve the user experience.
In a first aspect, an embodiment of the present invention provides a progressive theme change method, including at least the following steps:
Loading page controls and map topics;
Registering the page controls meeting preset conditions into a control pool to generate corresponding control trees;
responding to the theme changing operation of the user, generating and sending a theme switching instruction;
sequentially taking out the controls to be loaded from the control pool at least according to the theme switching instruction so as to finish switching the page controls;
calling a theme switching interface to finish the switching of the map theme;
when a switching completion instruction of the map theme is received and any page control is not completed in switching, accelerating the switching progress of the page control based on a switching acceleration rule;
and determining that the theme changing operation is finished at least after the page control and the map theme are completely switched.
Optionally, registering the page control meeting the preset condition in a control pool to generate a corresponding control tree, which specifically includes:
registering the page control into the control pool to generate the corresponding control to be loaded;
and constructing a first connection between the controls to be loaded meeting the preset conditions according to the hierarchical relation of the page controls so as to generate a corresponding control tree.
Optionally, after the first connection is constructed between the controls to be loaded which meet the preset condition according to the hierarchical relationship of the page controls to generate a corresponding control tree, the method further includes:
constructing a second connection between adjacent controls in any control layer;
at least constructing a third connection between the control layer and a parent control of the control layer currently;
and a second link is constructed between the tail control and the head control in any control layer.
Optionally, at least according to the theme switching instruction, the control to be loaded is sequentially taken out from the control pool to complete the switching of the page control, which specifically includes:
Directing the position of a control pointer to the first control of the lowest-level control layer;
Traversing the control layer based on the control pointer position and the second connection to complete switching of the corresponding page control;
after the control pointer points to the first control of the current control layer again, determining that the current control layer is traversed;
Pointing the control pointer position to the parent control of the current control layer according to the third connection; traversing the control layer based on the control pointer position and the second connection again to finish switching of the corresponding page control;
And at least after all the control layers are traversed, determining that all the page controls are switched.
Optionally, the switching acceleration rule includes at least one of switching only key frames, reducing control resolution, and simple matrix transformation.
Optionally, the method further comprises:
Recording the switching completion time of the map theme and all the page controls in each round;
counting the switching completion time difference of the map theme and all the page controls in each round;
and dynamically adjusting the switching completion time of the page control in the next round based on the switching completion time differential state.
Optionally, the progressive theme change method further includes:
Responding to theme modification operation of a user, and generating a corresponding task configuration list based on the theme modification operation through a cloud;
And the cloud end transmits the task configuration list to a system end to be switched so that the system end executes the corresponding theme change operation based on the configuration task list.
In a second aspect, the embodiment of the invention further provides a progressive theme changing device, which comprises a system end and a theme switching manager;
The system end is used for loading page controls and map topics, responding to the topic replacement operation of a user, and generating and sending a topic switching instruction;
the theme switching manager includes:
the control registration module is used for registering the page controls meeting preset conditions into a control pool to generate corresponding control trees;
The page switching module is used for sequentially taking out the controls to be loaded from the control pool at least according to the theme switching instruction so as to finish switching the page controls;
the theme switching module is used for calling a theme switching interface to finish the switching of the map theme;
the time coordination module is used for accelerating the switching progress of the page control based on a switching acceleration rule when a switching completion instruction of the map theme is received and any one of the page controls is not completed;
And the completion confirmation module is used for determining that the theme change operation is completed at least after the page control and the map theme are completely switched.
In a third aspect, embodiments of the present invention also provide an electronic device comprising a processor and a memory storing computer readable instructions that, when executed by the processor, perform the steps of the progressive theme change method as described in the first aspect.
In a fourth aspect, embodiments of the present invention also provide a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of the progressive theme change method of the first aspect.
The technical scheme includes that firstly, page controls and map topics are loaded, further, page controls meeting preset conditions are registered in a control pool to generate corresponding control trees, further, theme switching instructions are generated and sent out in response to theme changing operation of a user, further, the controls to be loaded are sequentially taken out of the control pool at least according to the theme switching instructions to finish switching of the page controls, further, a theme switching interface is called to finish switching of map topics, further, when switching of map topics is completed, switching progress of the page controls is accelerated based on switching acceleration rules when switching of any page control is received, and further, execution completion of the theme changing operation is determined at least after the whole switching of the page controls and the map topics is completed.
Therefore, according to the embodiment of the invention, on one hand, the page controls are registered in the control pool, the controls to be loaded are sequentially taken out and taken out when in use, so that the page controls are switched one by one, the effect of gradually entering and gradually exiting when the page controls are switched is realized, and the user experience is improved. On the other hand, when the switching completion instruction of the map theme is received and the switching of any page control is not completed, the embodiment of the invention accelerates the switching progress of the page control based on the switching acceleration rule, so as to at least solve the problem that the switching time of the page control and the map theme is inconsistent in the prior art, and facilitate the time synchronization of the switching of the page control and the map theme and improve the user experience.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a progressive theme change method provided by an embodiment of the present invention;
FIG. 2 is a flow chart of another progressive theme change method provided by an embodiment of the present invention;
FIG. 3 is a diagram of a page control provided by an embodiment of the present invention;
FIG. 4 is a control tree provided by an embodiment of the present invention;
FIG. 5 is another control tree provided by an embodiment of the present invention;
FIG. 6 is yet another control tree provided by an embodiment of the present invention;
FIG. 7 is a timing diagram for switching page controls according to an embodiment of the present invention;
FIG. 8 is a flow chart of yet another progressive theme change method provided by an embodiment of the present invention;
FIG. 9 is a schematic diagram of a progressive theme change apparatus according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plurality" generally includes at least two.
It should be understood that the term "and/or" as used herein is merely an association relationship describing the associated object, and means that there may be three relationships, e.g., a and/or B, and that there may be three cases where a exists alone, while a and B exist together, and B exists alone. In addition, the character "/" herein generally indicates that the front and rear associated objects are an "or" relationship.
It should be understood that although the terms first, second, third, etc. may be used in embodiments of the present application, these descriptions should not be limited to these terms. These terms are only used to distinguish one from another. For example, a first may also be referred to as a second, and similarly, a second may also be referred to as a first, without departing from the scope of embodiments of the application.
The words "if", as used herein, may be interpreted as "at" or "when" or "in response to a determination" or "in response to a detection", depending on the context. Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of additional like elements in a commodity or device comprising the element.
In particular, the symbols and/or numerals present in the description, if not marked in the description of the figures, are not numbered.
As mentioned in the background art, the current car navigation page card and the map are easy to have incongruous and inconsistent images when the theme is switched, so that the flickering problem occurs when the theme of the map is switched, and the car navigation page card is synchronously switched to bring abrupt feeling to the user. The inventor researches and discovers that the reason for the problem is that when the navigation theme is switched, the page control firstly switches the finishing theme, and after the map theme is switched, the theme is switched, and the middle phase difference is larger than 1S.
In view of this, the inventor finds that the switching time of the map theme is difficult to manually regulate after thinking, and the inventor intends to increase the switching time of the page control by a progressive switching mode of the page control, gradually regulate the switching completion time of the page control and the map theme to make them tend to be consistent, and finally obtains the following solutions:
Fig. 1 is a flowchart of a progressive theme change method provided in an embodiment of the present invention, where the embodiment is at least applicable to a theme change scenario of vehicle-to-machine navigation, and the progressive theme change method may be, but is not limited to, executed by a progressive theme change apparatus in an embodiment of the present invention as an execution body, where the execution body may be implemented in software and/or hardware. As shown in fig. 1, the progressive theme change method at least includes the following steps:
S1, loading page controls and map subjects.
The page control may be related control and UI element in the navigation interface. Map themes can be divided into two major parts, namely map base map themes (including mountains, rivers, grasslands, roads and the like) and map layer themes (including car logos, traffic lights, search result bundling marks, eagle eye patterns and the like).
S2, registering the page controls meeting the preset conditions in a control pool to generate corresponding control trees.
The preset condition may be that the page control is not covered, is non-transparent, etc. It can be understood that the switching speed of the subsequent page control can be further accelerated by eliminating the page control which does not meet the set condition. The control tree may be a special control pool with a tree structure that is capable of storing page controls.
And S3, responding to the theme change operation of the user, and generating and sending a theme switching instruction.
The theme change operation may be that the user clicks a theme change button on a man-machine interaction interface of the navigation software. The theme switching instruction may be an ethernet signal for switching a navigation theme (switching from a daytime theme to a night-time theme).
And S4, sequentially taking out the controls to be loaded from the control pool at least according to the theme switching instruction so as to finish the switching of the page controls.
The control to be loaded can be a corresponding control generated when the page control is registered to the control pool. It is known that the controls to be loaded correspond to the page controls one by one.
S5, calling a theme switching interface to finish the switching of the map theme.
The theme switching interface may be an interface called when the map theme is switched, for example, updateStyle interface, SETMAPSTYLE interface, and the like. It can be appreciated that the map base map theme switching is started and the map layers theme switching is started gradually.
And S6, accelerating the switching progress of the page control based on a switching acceleration rule when a switching completion instruction of the map theme is received and switching of any page control is not completed.
Wherein, in a specific embodiment, optionally, the switching acceleration rule includes at least one of switching only key frames, reducing control resolution, and simple matrix transformation. The switch-only keyframes may be keyframes that only render the animation when the page control switches. The simple matrix transformation may be to perform simple panning, rotating, scaling, etc. operations only on the page control when the page control is switched.
And S7, determining that the theme change operation is finished at least after the page control and the map theme are completely switched.
The technical scheme includes that firstly, page controls and map topics are loaded, further, page controls meeting preset conditions are registered in a control pool to generate corresponding control trees, further, theme switching instructions are generated and sent out in response to theme changing operation of a user, further, the controls to be loaded are sequentially taken out of the control pool at least according to the theme switching instructions to finish switching of the page controls, further, a theme switching interface is called to finish switching of map topics, further, when switching of map topics is finished, switching progress of the page controls is accelerated based on switching acceleration rules when switching of any page control is not finished, and further, execution completion of the theme changing operation is determined at least after the whole switching of the page controls and the map topics is finished.
Therefore, in the embodiment, on one hand, the page controls are registered in the control pool and are sequentially taken out when in use, so that the page controls are switched one by one, the effect of gradually entering and gradually exiting when the page controls are switched is achieved, and the user experience is improved. On the other hand, when the switching completion instruction of the map theme is received and the switching of any page control is not completed, the switching progress of the page control is accelerated based on the switching acceleration rule, so that at least the problem that in the prior art, the switching time of the page control is inconsistent with the switching time of the map theme is solved, the time synchronization of the switching of the page control and the map theme is facilitated, and the user experience is improved.
Fig. 2 is a flowchart of another gradual theme change method according to an embodiment of the present invention, based on the above embodiment or implementation, where the embodiment is added. As shown in fig. 2, the progressive theme change method at least includes the following steps:
S1, loading page controls and map subjects.
S21, registering the page control in the control pool to generate a corresponding control to be loaded.
Fig. 3 is a diagram of a page control provided by an embodiment of the present invention, referring to fig. 3, it is known that a page control B (not shown in the drawing) is blocked by a page control E and cannot be displayed, and a page control D is a transparent control.
S22, constructing a first connection between the controls to be loaded meeting preset conditions according to the hierarchical relation of the page controls so as to generate a corresponding control tree.
Wherein, the hierarchical relationship can be understood as whether the page controls belong to the same layer. Fig. 4 is a control tree provided by an embodiment of the present invention, referring to fig. 4, a control tree that is initially constructed is shown in fig. 4. Fig. 5 is another control tree provided by the embodiment of the present invention, and since the page control B and the page control E do not meet the preset conditions, after the control tree is initially generated, the page control B and the page control E need to be removed, and the removed control tree is shown in fig. 5.
S81, constructing a second connection between adjacent controls in any control layer.
And a second link is constructed between the tail control and the head control in any control layer. The first control may be the leftmost control to be loaded of the control layer. In contrast, the tail control may be the right-most control to be loaded of the control layer. The control layer may be partitioned by different heights of the control tree. The adjacent control can be a control to be loaded which is adjacent to the control left and right in the same control layer.
S82, at least a third connection is constructed between the control layer and the parent control of the current control layer.
Fig. 6 is a schematic diagram of another control tree according to an embodiment of the present invention, and the control tree after the second connection (half-dashed line-half-dashed line in fig. 6) and the third connection (dot-double-long-dashed line-half-dashed line in fig. 6) are constructed is shown in fig. 6.
And S3, responding to the theme change operation of the user, and generating and sending a theme change instruction.
The user may trigger the theme change operation based on the cloud, and in a specific embodiment, optionally, the progressive theme change method further includes:
(31) And responding to the theme modifying operation of the user, and generating a corresponding task configuration list based on the theme modifying operation through the cloud.
The task configuration list at least comprises a map theme or a replacement strategy of a page control.
(32) And issuing the task configuration list to the system end to be switched through the cloud end so that the system end executes corresponding theme change operation based on the configuration task list.
S5, calling a theme switching interface to finish the switching of the map theme.
S41, pointing the position of the control pointer to the first control of the lowest-level control layer.
With continued reference to fig. 6, the control layer at the lowest level may be understood as the control layer at the lowest level of the control tree, that is, the control layer corresponding to the controls G, H and I to be loaded. It will be appreciated that step S41 and step S5 are performed simultaneously.
S42, traversing the control layer based on the control pointer position and the second connection to finish the switching of the corresponding page control.
The switching of the corresponding page control may be performed by rendering the corresponding control to be loaded onto the map page. In specific rendering, animation effects, such as fade-in and fade-out, zoom-out, etc., can be custom rendered based on a pre-defined rendering profile. With continued reference to fig. 6, an exemplary manner of traversing the control layer based on the control pointer position and the second connection may be that, first, the control pointer position points to the to-be-loaded control G, and the to-be-loaded control G is switched to the corresponding page control, further, since the second connection of the to-be-loaded control G points to the to-be-loaded control H, the control pointer position also moves to the to-be-loaded control H, and the to-be-loaded control H is switched to the corresponding page control D, and similarly, until the to-be-loaded control I is switched to the corresponding page control, the control pointer position is redirected to the to-be-loaded control G according to the second connection of the to-be-loaded control I.
S43, after the control pointer points to the first control of the current control layer again, determining that the current control layer is traversed.
S44, pointing the position of the control pointer to the parent control of the current control layer according to the third connection.
With continued reference to fig. 6, the parent control of the current control layer is the control F to be loaded, so the control pointer position is pointed to the control F to be loaded.
S45, traversing the control layer again based on the control pointer position and the second connection to finish the switching of the corresponding page control.
Only one control to be loaded exists in the control layer corresponding to the control to be loaded F, so that after the page control corresponding to the control to be loaded F is switched, the control pointer position is pointed to the control to be loaded E.
And S6, accelerating the switching progress of the page control based on a switching acceleration rule when a switching completion instruction of the map theme is received and switching of any page control is not completed.
Fig. 7 is a timing diagram for switching page controls according to an embodiment of the present invention. Referring to fig. 7, step S6 may be as shown in fig. 7.
And S46, at least after all control layers are traversed, determining that all page controls are switched.
With continued reference to fig. 6, the traversal order of the controls to be loaded is G, H, I, F, E, C and a in sequence. And when the switching of the page control corresponding to the control A to be loaded is completed, the switching of the page control is considered to be completed.
And S7, determining that the theme change operation is finished at least after the page control and the map theme are completely switched.
Fig. 8 is a flowchart of another progressive theme change method according to an embodiment of the present invention, where, as shown in fig. 8, the progressive theme change method at least includes the following steps:
S91, recording the map theme of each turn and the switching completion time of all page controls.
And S92, counting the switching completion time difference of the map theme and all page controls of each turn.
And S93, the switching completion time of the next round of page control is regulated in a differential state based on the switching completion time.
It will be appreciated that this step is set up to gradually align the time of the page control switch with the time alignment of the map theme switch.
According to the technical scheme provided by the embodiment, firstly, page controls and map subjects are loaded. Further, registering the page control in the control pool to generate a corresponding control to be loaded. Further, according to the hierarchical relation of the page controls, a first connection is constructed among the controls to be loaded meeting preset conditions so as to generate a corresponding control tree. Further, a second connection is established between adjacent controls within any control layer. Further, a third connection is established between at least the control layer and the parent control of the current control layer. Further, in response to the theme change operation of the user, a theme change instruction is generated and sent. Further, a theme switching interface is called to finish the switching of the map theme. Further, the control pointer position is pointed to the first control of the lowest hierarchical control layer. Further, the control layer is traversed based on the control pointer position and the second connection to complete switching of the corresponding page control. Further, after the control pointer position points to the first control of the current control layer again, the current control layer is determined to be traversed. Further, the control pointer position is pointed to the parent control of the current control layer according to the third connection. Further, traversing the control layer based on the control pointer position and the second connection again to complete switching of the corresponding page control. Further, when a switching completion instruction of the map theme is received and switching of any page control is not completed, the switching progress of the page control is quickened based on a switching acceleration rule. Further, at least after all control layer traversals are completed, it is determined that all page controls are switched. And finally, determining that the theme change operation is finished at least after the page control and the map theme are completely switched.
Therefore, in the embodiment, on one hand, the page controls are registered in the control pool, and the controls to be loaded are sequentially taken out and taken out when in use, so that the page controls are switched one by one, the effect of gradually entering and gradually exiting when the page controls are switched is achieved, and the user experience is improved. On the other hand, when the switching completion instruction of the map theme is received and the switching of any page control is not completed, the switching progress of the page control is accelerated based on the switching acceleration rule, so that at least the problem that in the prior art, the switching time of the page control is inconsistent with the switching time of the map theme is solved, the time synchronization of the switching of the page control and the map theme is facilitated, and the user experience is improved. In another aspect, in the embodiment, the switching completion time difference of the map theme and the page control of each turn is recorded, and the switching completion time of the page control of the next turn is adjusted based on the completion time difference state, so that the switching completion time of the map theme and the switching completion time of the page control tend to be consistent gradually, and the user experience is improved.
Fig. 9 is a schematic structural diagram of a progressive theme changing apparatus according to an embodiment of the present invention. The embodiment is at least suitable for theme switching scenes of car navigation, and the progressive theme changing device can be realized in a software and/or hardware mode. As shown in fig. 9, the progressive theme change apparatus 100 includes at least a system end 110 and a theme switching manager 120.
And the system end 110 is used for loading the page control and the map theme, and generating and sending a theme switching instruction in response to the theme changing operation of the user.
The theme switching manager 120 includes:
the control registration module 130 is configured to register the page controls that meet the preset conditions into the control pool, so as to generate a corresponding control tree.
And the page switching module 140 is used for sequentially taking out the controls to be loaded from the control pool at least according to the theme switching instruction so as to finish switching the page controls.
The theme switching module 150 is configured to invoke the theme switching interface to complete the switching of the map theme.
And the time coordination module 160 is configured to, when a switching completion instruction of the map theme is received and switching of any page control is not completed, accelerate the switching progress of the page control based on a switching acceleration rule.
The completion confirming module 170 is configured to determine that the theme changing operation is completed at least after the page control and the map theme are all switched.
Optionally, the control registration module 130 is specifically configured to:
and constructing a first connection between the controls to be loaded meeting preset conditions according to the hierarchical relation of the page controls to generate a corresponding control tree.
Optionally, the control registration module 130 is further specifically configured to:
And constructing a third connection between at least the control layer and the parent control of the current control layer.
And a second link is constructed between the tail control and the head control in any control layer.
Optionally, the page switching module 140 is specifically configured to:
The method comprises the steps of enabling a control pointer position to point to a first control of a lowest level control layer, traversing the control layer based on the control pointer position and a second connection to finish switching of a corresponding page control, determining that traversing of the current control layer is finished after the control pointer position points to the first control of the current control layer again, enabling the control pointer position to point to a father control of the current control layer according to a third connection, traversing the control layer based on the control pointer position and the second connection again to finish switching of the corresponding page control, and determining that all page controls are switched completely at least after traversing of all control layers is finished.
Optionally, the switching acceleration rules include at least one of switching only key frames, reducing control resolution, and simple matrix transformations.
Optionally, the method further comprises:
The system comprises a time regulation module, a time control module and a control module, wherein the time regulation module is used for recording the switching completion time of each turn of map theme and all page controls, counting the switching completion time difference of each turn of map theme and all page controls, and regulating the switching completion time of the next turn of page controls based on the switching completion time differential state.
Optionally, the method further comprises:
The cloud control module is used for responding to the theme modification operation of the user, generating a corresponding task configuration list based on the theme modification operation, and issuing the task configuration list to the system end to be switched so that the system end can execute corresponding theme replacement operation based on the configuration task list.
The technical scheme includes that firstly, page controls and map topics are loaded through a system end, further, a topic switching instruction is generated and sent through the system end in response to topic replacement operation of a user, further, page controls meeting preset conditions are registered into a control pool through a topic switching manager through a control registration module to generate corresponding control trees, further, the to-be-loaded controls are sequentially taken out of the control pool through the topic switching manager according to the topic switching instruction to finish switching of the page controls, further, the topic switching manager is used for calling a topic switching interface to finish switching of the map topics through the topic switching manager, further, when the topic switching completion instruction of the map topics is received and any page control switching is not finished, the switching progress of the page controls is accelerated through a topic switching manager through a time cooperation module based on a switching acceleration rule, and further, after the page controls and the map topics are completely switched, the topic switching completion operation is confirmed through a topic switching completion confirmation module.
Therefore, in the embodiment, on one hand, the page controls are registered in the control pool, and the controls to be loaded are sequentially taken out and taken out when in use, so that the page controls are switched one by one, the effect of gradually entering and gradually exiting when the page controls are switched is achieved, and the user experience is improved. On the other hand, when the switching completion instruction of the map theme is received and the switching of any page control is not completed, the switching progress of the page control is accelerated based on the switching acceleration rule, so that at least the problem that in the prior art, the switching time of the page control is inconsistent with the switching time of the map theme is solved, the time synchronization of the switching of the page control and the map theme is facilitated, and the user experience is improved.
An embodiment of the present invention further provides an electronic device, and fig. 10 is a schematic structural diagram of an electronic device provided by the embodiment of the present invention, referring to fig. 10, the electronic device 1000 includes a processor 1001 and a memory 1002, where the memory 1002 stores computer readable instructions, and when the computer readable instructions are executed by the processor 1001, the steps in any one of the progressive theme change methods described above are executed. Through the technical scheme, the processor 1001 and the memory 1002 are interconnected and communicate with each other through a communication bus and/or other types of connection mechanisms (not shown), the memory 1002 stores a computer program executable by the processor, when the electronic device 1000 runs, the processor 1001 executes the computer program to execute the progressive theme changing method in any optional implementation mode of the embodiment, so as to at least realize the functions of loading a page control and a map theme, registering the page control meeting preset conditions into a control pool to generate a corresponding control tree, responding to a theme changing operation of a user to generate and send a theme changing instruction, sequentially taking out the control to be loaded from the control pool at least according to the theme changing instruction to complete the switching of the page control, calling the theme changing interface to complete the switching of the map theme, accelerating the switching progress of the page control based on a switching acceleration rule when the switching completion instruction of the map theme is received and the switching of any page control is not completed, and determining that the theme changing operation is completed at least after the whole switching of the page control and the map is completed. .
The embodiment of the application also provides a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, the program is executed by a processor to realize the gradual theme changing method provided by all the embodiments of the application, the method comprises the steps of loading page controls and map themes, registering the page controls meeting preset conditions into a control pool to generate corresponding control trees, responding to theme changing operation of a user to generate and send a theme changing instruction, sequentially taking out the controls to be loaded from the control pool at least according to the theme changing instruction to finish the switching of the page controls, calling a theme changing interface to finish the switching of the map themes, accelerating the switching progress of the page controls based on a switching accelerating rule when the switching finishing instruction of the map themes is received and any page theme is not finished, and determining that the theme changing operation is finished at least after the whole switching of the page controls and the map themes is finished.
Any combination of one or more computer readable media may be employed. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the computer-readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C ++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The foregoing embodiments are merely for illustrating the technical solution of the present application, but not for limiting the same, and although the present application has been described in detail with reference to the foregoing embodiments, it will be understood by those skilled in the art that modifications may be made to the technical solution described in the foregoing embodiments or equivalents may be substituted for parts of the technical features thereof, and that such modifications or substitutions do not depart from the spirit and scope of the technical solution of the embodiments of the present application in essence.

Claims (10)

1. A progressive theme change method comprising at least the steps of:
Loading page controls and map topics;
Registering the page controls meeting preset conditions into a control pool to generate corresponding control trees;
responding to the theme change operation of the user, and generating and sending a theme switching instruction;
sequentially taking out the controls to be loaded from the control pool at least according to the theme switching instruction so as to finish switching the page controls;
calling a theme switching interface to finish the switching of the map theme;
when a switching completion instruction of the map theme is received and any page control is not completed in switching, accelerating the switching progress of the page control based on a switching acceleration rule;
and determining that the theme changing operation is finished at least after the page control and the map theme are completely switched.
2. The progressive theme change method according to claim 1, wherein registering the page control satisfying a preset condition in a control pool to generate a corresponding control tree specifically includes:
registering the page control into the control pool to generate the corresponding control to be loaded;
and constructing a first connection between the controls to be loaded meeting the preset conditions according to the hierarchical relation of the page controls so as to generate a corresponding control tree.
3. The progressive theme change method of claim 2, further comprising, after the constructing a first connection between the controls to be loaded satisfying the preset condition according to the hierarchical relationship of the page controls to generate a corresponding control tree:
constructing a second connection between adjacent controls in any control layer;
at least constructing a third connection between the control layer and a parent control of the control layer currently;
and a second link is constructed between the tail control and the head control in any control layer.
4. The progressive theme changing method according to claim 3, wherein the sequentially retrieving the controls to be loaded from the control pool at least according to the theme switching instruction to complete the switching of the page controls includes:
Directing the position of a control pointer to the first control of the lowest-level control layer;
Traversing the control layer based on the control pointer position and the second connection to complete switching of the corresponding page control;
after the control pointer points to the first control of the current control layer again, determining that the current control layer is traversed;
pointing the control pointer position to the parent control of the current control layer according to the third connection;
Traversing the control layer based on the control pointer position and the second connection again to finish switching of the corresponding page control;
And at least after all the control layers are traversed, determining that all the page controls are switched.
5. The progressive theme change method of claim 1, wherein the switching acceleration rules include at least one of switching only key frames, reducing control resolution, and simple matrix transformations.
6. The progressive theme change method of claim 1, further comprising:
Recording the switching completion time of the map theme and all the page controls in each round;
counting the switching completion time difference of the map theme and all the page controls in each round;
and dynamically adjusting the switching completion time of the page control in the next round based on the switching completion time differential state.
7. The progressive theme change method according to claim 1, the progressive theme change method is characterized by further comprising the following steps:
Responding to theme modification operation of a user, and generating a corresponding task configuration list based on the theme modification operation through a cloud;
and issuing the task configuration list to a system end to be switched through the cloud end so that the system end executes the corresponding theme change operation based on the configuration task list.
8. The progressive theme changing device is characterized by comprising a system end and a theme switching manager;
the system end is used for loading page controls and map topics, and generating and sending a topic switching instruction in response to a topic changing operation of a user;
the theme switching manager includes:
the control registration module is used for registering the page controls meeting preset conditions into a control pool to generate corresponding control trees;
The page switching module is used for sequentially taking out the controls to be loaded from the control pool at least according to the theme switching instruction so as to finish switching the page controls;
the theme switching module is used for calling a theme switching interface to finish the switching of the map theme;
the time coordination module is used for accelerating the switching progress of the page control based on a switching acceleration rule when a switching completion instruction of the map theme is received and any one of the page controls is not completed;
And the completion confirmation module is used for determining that the theme change operation is completed at least after the page control and the map theme are completely switched.
9. An electronic device comprising a processor and a memory storing computer readable instructions that, when executed by the processor, perform the steps in the progressive theme change method of any one of claims 1-7.
10. A computer readable storage medium having stored thereon a computer program, which when executed by a processor implements the progressive theme change method of any one of claims 1-7.
CN202510814500.7A 2025-06-18 2025-06-18 Progressive theme changing method, device, equipment and storage medium Pending CN120803578A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202510814500.7A CN120803578A (en) 2025-06-18 2025-06-18 Progressive theme changing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202510814500.7A CN120803578A (en) 2025-06-18 2025-06-18 Progressive theme changing method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN120803578A true CN120803578A (en) 2025-10-17

Family

ID=97328308

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202510814500.7A Pending CN120803578A (en) 2025-06-18 2025-06-18 Progressive theme changing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN120803578A (en)

Similar Documents

Publication Publication Date Title
US20240205605A1 (en) Context-Aware Voice Guidance
AU2016203177B2 (en) Navigation application
US9997069B2 (en) Context-aware voice guidance
CN104335152B (en) Provide navigation instructions when the device is in locked mode
US20130325342A1 (en) Navigation application with adaptive instruction text
US10627246B2 (en) Multi modal annotation of maps
US20130132839A1 (en) Dynamic Positioning of Timeline Markers for Efficient Display
US20110119587A1 (en) Data model and player platform for rich interactive narratives
CN104321622B (en) Context-aware voice guidance
CA2658840A1 (en) Filtering of data layered on mapping applications
CN114299712B (en) Data processing method, device, equipment and readable storage medium
US12211269B2 (en) Time-line based object tracking annotation
EP4431358A1 (en) Method for predicting vehicle trajectory, control device, readable storage medium, and vehicle
CN113244612A (en) Locking mark display method and device, storage medium and electronic equipment
CN114153935A (en) Computer system for realizing controllable advancing display of street view map
JP2006214965A (en) Navigation device and program for enlarged display of intersection
US20230054388A1 (en) Method and apparatus for presenting audiovisual work, device, and medium
CN120803578A (en) Progressive theme changing method, device, equipment and storage medium
CN119271756A (en) Route generation method, system and storage medium based on multimodal large model
US20120320066A1 (en) Modifying an Animation Having a Constraint
US20190122538A1 (en) Spatial Remote Control
CN120440090B (en) Train track-in control method, device, equipment and medium
CN112652039A (en) Animation segmentation data acquisition method, segmentation method, device, equipment and medium
US20250245871A1 (en) Method and System for Generating Images
CN113082698B (en) Game display control method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination