Interface Theme Switching via Nested Attribute Segmentation
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Existing intelligent electronic devices face confusion and lack of specificity when switching themes due to duplicate attribute values in similar themes, leading to inefficient modifications and user experience issues.
Innovation Solution
The method involves loading a default display interface based on a preset parent theme type and monitoring data type changes in real-time to switch to a child theme type, updating attribute values accordingly, thereby avoiding duplicate value assignments and enabling different display styles at various application stages.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If all attribute names are specified in different themes, then theme switching functionality is achieved, but duplicate values appear in similar themes causing confusion
Solution Approach 1:
The patent segments theme attributes into two categories: common attributes (inherited from parent theme) and specific attributes (overridden in child theme). This segmentation allows child themes to only specify attributes that differ from the parent, eliminating duplicate value assignments while maintaining complete theme functionality.
Solution Approach 2:
The patent implements a nested theme structure where child themes inherit from parent themes, forming a hierarchy. The child theme contains only the specific attributes that need to be overridden, while implicitly inheriting all other attributes from the parent theme, creating a compact and clear theme definition.
2Adaptability or versatility
If all attribute values are defined in child theme, then complete theme customization is achieved, but modification becomes complex and error-prone
Solution Approach 1:
The patent extracts common attributes from child themes and places them in the parent theme. This extraction reduces child theme complexity to only contain specific override attributes, making modifications simpler and less error-prone while preserving full customization capability.
Solution Approach 2:
The parent theme serves as a universal template that can be inherited by multiple child themes. This multi-functionality allows common attributes to be defined once in the parent and automatically applied to all children, reducing overall system complexity while maintaining flexibility.
3Adaptability or versatility
If duplicate attribute values exist in parent and child themes, then flexibility is maintained, but confusion and lack of specificity occur
Solution Approach 1:
The patent applies local quality by allowing child themes to have different properties (attribute values) only where necessary, while inheriting default properties from the parent theme. This ensures that each theme level has precise, specific values for its intended purpose without unnecessary duplication.
Data Source
Figure 1
Figure 2
Figure 3a~3b
AI summary
The present application is applied to the technical field of interface switching and provides an interface switching method, system, device, and a computer readable storage medium. The method includes: loading a display interface of a default style based on a preset parent theme type when an application starts; monitoring whether a data type processed by the application changes in real time operation of the application; obtaining a preset child theme type corresponding to a data type currently processed by the application based on the data type currently processed by the application if the data type changes, wherein a value of an attribute name of which a display style needs to be changed relative to the parent theme type is defined in the child theme type; and switching a display style of the display interface based on the value of the attribute name defined in the child theme type and of which the display style needs to be changed relative to the parent theme type. The present application can prevent duplicate value assignment for a same attribute in a child theme and in a parent theme, and can display interfaces of different styles at different running stages of the application, thereby improving user experience.