[go: up one dir, main page]

CN111767087A - Adaptive theme configuration method and device - Google Patents

Adaptive theme configuration method and device Download PDF

Info

Publication number
CN111767087A
CN111767087A CN202010558091.6A CN202010558091A CN111767087A CN 111767087 A CN111767087 A CN 111767087A CN 202010558091 A CN202010558091 A CN 202010558091A CN 111767087 A CN111767087 A CN 111767087A
Authority
CN
China
Prior art keywords
theme
application
information
terminal device
preset
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
CN202010558091.6A
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.)
Hangzhou Ezviz Network Co Ltd
Original Assignee
Hangzhou Ezviz Network Co Ltd
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 Hangzhou Ezviz Network Co Ltd filed Critical Hangzhou Ezviz Network Co Ltd
Priority to CN202010558091.6A priority Critical patent/CN111767087A/en
Publication of CN111767087A publication Critical patent/CN111767087A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/445Program loading or initiating
    • G06F9/44505Configuring for program initiating, e.g. using registry, configuration files
    • G06F9/4451User profiles; Roaming
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24564Applying rules; Deductive queries

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Stored Programmes (AREA)

Abstract

本申请实施例提供了一种自适应的主题配置方法及设备,其中,方法包括:获取应用所在的终端设备当前所配置的系统主题的主题信息;根据获取的主题信息和预设的匹配规则,确定应用的至少一个应用主题中是否存在与当前的系统主题匹配的目标应用主题;若是,则将应用的应用主题配置为目标应用主题。本申请实施例基于自动匹配的方式使应用主题与系统主题相适应,而无需用户手动设置,不仅提升了智能性,而且节约了用户时间,提升了用户体验。

Figure 202010558091

The embodiments of the present application provide an adaptive theme configuration method and device, wherein the method includes: obtaining theme information of a system theme currently configured by a terminal device where the application is located; according to the obtained theme information and a preset matching rule, Determine whether there is a target application theme matching the current system theme in at least one application theme of the application; if so, configure the application theme of the application as the target application theme. The embodiment of the present application adapts the application theme to the system theme based on an automatic matching method without requiring manual setting by the user, which not only improves the intelligence, but also saves the user's time and improves the user experience.

Figure 202010558091

Description

自适应的主题配置方法及设备Adaptive theme configuration method and device

技术领域technical field

本申请涉及数据处理技术领域,尤其涉及一种自适应的主题配置方法及设备。The present application relates to the technical field of data processing, and in particular, to an adaptive subject configuration method and device.

背景技术Background technique

为了给用户更好的使用体验,当前的智能设备如手机、平板电脑等会在出厂时配备多种系统主题。同样的,各应用(Application,简称APP)的开发商也会为应用配备多种应用主题。当用户为其终端设备设置了一种系统主题时,为了使终端设备所安装的应用的应用主题与终端设备的系统主题相匹配,如颜色匹配等,用户需要通过手动的方式依次为应用设置各个应用主题,以确定应用主题与系统主题是否匹配,不仅不具智能化,而且对于用户而言,操作繁琐、费时费力,降低了用户体验。In order to provide users with a better user experience, current smart devices such as mobile phones and tablet computers are equipped with various system themes when they leave the factory. Similarly, developers of each application (Application, APP for short) also provide various application themes for the application. When a user sets a system theme for his terminal device, in order to match the application theme of the application installed on the terminal device with the system theme of the terminal device, such as color matching, the user needs to manually set each application theme for the application in turn. Applying the theme to determine whether the application theme matches the system theme is not only not intelligent, but also is cumbersome, time-consuming and labor-intensive for the user, which reduces the user experience.

发明内容SUMMARY OF THE INVENTION

本申请实施例的目的是提供一种自适应的主题配置方法及设备,以解决手动配置主题的非智能化、操作繁琐、费时费力等问题。The purpose of the embodiments of the present application is to provide an adaptive theme configuration method and device, so as to solve the problems of non-intelligence, complicated operation, time-consuming and labor-intensive configuration of the theme manually.

为解决上述技术问题,本申请实施例是这样实现的:In order to solve the above-mentioned technical problems, the embodiments of the present application are implemented as follows:

第一方面,本申请实施例提供了一种自适应的主题配置方法,包括:In a first aspect, an embodiment of the present application provides an adaptive theme configuration method, including:

获取应用所在的终端设备当前所配置的系统主题的主题信息;Obtain the theme information of the system theme currently configured on the terminal device where the application is located;

根据所述主题信息和预设的匹配规则,确定所述应用的至少一个应用主题中是否存在与所述系统主题匹配的目标应用主题;According to the theme information and a preset matching rule, determine whether there is a target application theme matching the system theme in at least one application theme of the application;

若是,则将所述应用的应用主题配置为所述目标应用主题。If yes, configure the application theme of the application as the target application theme.

第二方面,本申请实施例提供了一种终端设备,包括:In a second aspect, an embodiment of the present application provides a terminal device, including:

处理器,用于获取应用所在的终端设备当前所配置的系统主题的主题信息;根据所述主题信息和预设的匹配规则,确定所述应用的至少一个应用主题中是否存在与所述系统主题匹配的目标应用主题;若是,则将所述应用的应用主题配置为所述目标应用主题;The processor is used to obtain the theme information of the system theme currently configured by the terminal device where the application is located; according to the theme information and the preset matching rule, determine whether there is a system theme in at least one application theme of the application The matching target application theme; if so, configure the application theme of the application as the target application theme;

存储器,用于存储所述终端设备的系统的主题信息和匹配规则信息,以及存储所述应用的主题信息。The memory is used for storing the subject information and matching rule information of the system of the terminal device, and storing the subject information of the application.

第三方面,本申请实施例提供了一种电子设备,包括:处理器、通信接口、存储器和通信总线;其中,处理器,通信接口,存储器通过总线完成相互间的通信;存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的程序,实现上述自适应的主题配置方法的步骤。In a third aspect, an embodiment of the present application provides an electronic device, including: a processor, a communication interface, a memory, and a communication bus; wherein the processor, the communication interface, and the memory communicate with each other through the bus; the memory is used to store A computer program; a processor for executing the program stored in the memory to implement the steps of the above-mentioned adaptive theme configuration method.

第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述自适应的主题配置方法的步骤。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the above-mentioned adaptive theme configuration method are implemented .

在本申请实施例中,通过获取应用所在的终端设备当前所配置的系统主题的主题信息,并根据获取主题信息和预设的匹配规则,确定应用的至少一个应用主题中是否存在与当前的系统主题匹配的目标应用主题;以及,在存在目标应用主题时,则将应用的应用主题配置为该目标应用主题。由此,基于自动匹配的方式使应用主题与系统主题相适应,而无需用户手动设置,不仅提升了智能性,而且节约了用户时间,提升了用户体验。In the embodiment of the present application, by acquiring the topic information of the system topic currently configured by the terminal device where the application is located, and according to the acquired topic information and the preset matching rule, it is determined whether there is a current system topic in at least one application topic of the application. The target application theme that matches the theme; and, when there is a target application theme, configure the applied application theme as the target application theme. As a result, the application theme is adapted to the system theme based on the automatic matching method, without requiring manual setting by the user, which not only improves the intelligence, but also saves the user's time and improves the user experience.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请中记载的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the accompanying drawings required for the description of the embodiments or the prior art. Obviously, the drawings in the following description are only These are some embodiments described in this application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1为本说明书实施例提供的一种自适应的主题配置方法的第一种流程示意图;FIG. 1 is a first schematic flowchart of an adaptive theme configuration method provided by an embodiment of the present specification;

图2为本说明书实施例提供的一种自适应的主题配置方法的第二种流程示意图;2 is a second schematic flowchart of an adaptive theme configuration method provided by an embodiment of the present specification;

图3为本说明书实施例提供的一种自适应的主题配置方法的第三种流程示意图;FIG. 3 is a third schematic flowchart of an adaptive theme configuration method provided by an embodiment of the present specification;

图4为本说明书实施例提供的一种自适应的主题配置方法的第四种流程示意图;FIG. 4 is a fourth schematic flowchart of an adaptive theme configuration method provided by an embodiment of the present specification;

图5为本说明书实施例提供的一种自适应的主题配置方法的第五种流程示意图;FIG. 5 is a fifth schematic flowchart of an adaptive theme configuration method provided by an embodiment of the present specification;

图6为本说明书实施例提供的一种自适应的主题配置方法的第六种流程示意图;6 is a sixth schematic flowchart of an adaptive theme configuration method provided by an embodiment of the present specification;

图7为本说明书实施例提供的一种自适应的主题配置装置的模块组成示意图;7 is a schematic diagram of the module composition of an adaptive theme configuration device provided by an embodiment of the present specification;

图8为本说明书实施例提供的一种终端设备的组成示意图;FIG. 8 is a schematic diagram of the composition of a terminal device according to an embodiment of the present specification;

图9为本说明书实施例提供的一种电子设备的组成示意图。FIG. 9 is a schematic diagram of the composition of an electronic device according to an embodiment of the present specification.

具体实施方式Detailed ways

为了使本技术领域的人员更好地理解本申请中的技术方案,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都应当属于本申请保护的范围。In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described The embodiments are only a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the scope of protection of this application.

图1为本说明书一个或多个实施例提供的一种自适应的主题配置方法的流程示意图,参见图1,该方法具体可以包括如下步骤:FIG. 1 is a schematic flowchart of an adaptive theme configuration method provided by one or more embodiments of this specification. Referring to FIG. 1 , the method may specifically include the following steps:

步骤102,获取应用所在的终端设备当前所配置的系统主题的主题信息;Step 102, obtaining the theme information of the system theme currently configured by the terminal device where the application is located;

本说明书实施例提供的自适应的主题配置方法的执行主体可以为自适应的主题配置装置,该自适应的主题配置装置可以设置于应用中,以对所在应用的应用主题进行自适应的配置;该自适应的主题配置装置还可以设置于终端设备中,以对终端设备所安装的各应用的应用主题进行自适应的配置。具体的,自适应的主题配置装置调用预设的函数接口,基于该函数接口获取应用所在终端设备当前配置的系统主题的主题信息。其中,终端设备如手机、平板电脑、台式计算机、便携式笔记本、智能手表等,智能设备中安装有至少一个应用;智能设备的系统如安卓系统、IOS系统等;主题信息包括系统主题名称、系统主题标识等信息。The executive body of the adaptive theme configuration method provided by the embodiments of this specification may be an adaptive theme configuration device, and the adaptive theme configuration device may be set in an application to perform adaptive configuration on the application theme of the application; The self-adaptive theme configuration device may also be set in the terminal device to perform self-adaptive configuration of the application theme of each application installed on the terminal device. Specifically, the adaptive theme configuration device invokes a preset function interface, and obtains theme information of the system theme currently configured by the terminal device where the application is located based on the function interface. Among them, terminal devices such as mobile phones, tablet computers, desktop computers, portable notebooks, smart watches, etc., have at least one application installed in the smart device; the system of the smart device is such as Android system, IOS system, etc.; theme information includes system theme name, system theme identification and other information.

步骤104,根据获取的主题信息和预设的匹配规则,确定应用的至少一个应用主题中是否存在与当前的系统主题匹配的目标应用主题;Step 104, according to the obtained theme information and preset matching rules, determine whether there is a target application theme matching the current system theme in at least one application theme of the application;

步骤106,若是,则将应用的应用主题配置为目标应用主题。Step 106, if yes, configure the application theme of the application as the target application theme.

在说明书一个或多个施例中,通过获取应用所在的终端设备当前所配置的系统主题的主题信息,并根据获取主题信息和预设的匹配规则,确定应用的至少一个应用主题中是否存在与当前的系统主题匹配的目标应用主题;以及,在存在目标应用主题时,则将应用的应用主题配置为该目标应用主题。由此,基于自动匹配的方式使应用主题与系统主题相适应,而无需用户手动设置,不仅提升了智能性,而且节约了用户时间,提升了用户体验。In one or more embodiments of the specification, by obtaining theme information of a system theme currently configured on a terminal device where the application is located, and according to the obtained theme information and a preset matching rule, it is determined whether there is a theme related to at least one application theme of the application. The target application theme that matches the current system theme; and, when there is a target application theme, configure the applied application theme as the target application theme. As a result, the application theme is adapted to the system theme based on the automatic matching method, without requiring manual setting by the user, which not only improves the intelligence, but also saves the user's time and improves the user experience.

考虑到用户通常不会实时的使用某个应用,基于此,为了降低资源的占用,本说明书一个或多个实施例中,预先设定系统主题信息的获取条件,与之对应的,如图2所示,步骤102可以包括以下步骤102-2:Considering that users usually do not use a certain application in real time, based on this, in order to reduce the occupation of resources, in one or more embodiments of this specification, the acquisition conditions of the system theme information are preset, corresponding to it, as shown in Figure 2 As shown, step 102 may include the following steps 102-2:

步骤102-2,确定是否满足预设的系统主题信息的获取条件,若是,则获取应用所在的终端设备当前所配置的系统主题的主题信息。Step 102-2: Determine whether a preset acquisition condition of the system theme information is satisfied, and if so, obtain the theme information of the system theme currently configured on the terminal device where the application is located.

通常的,当用户使用某个应用时,首先启动该应用;为了使应用在启动之后所配置的应用主题能够与当前的系统主题相匹配,本说明书一个或多个实施例中,如图3所示,步骤102-2可以包括以下步骤102-22:Usually, when a user uses an application, the application is started first; in order to enable the application theme configured after the application is started to match the current system theme, in one or more embodiments of this specification, as shown in FIG. 3 As shown, step 102-2 may include the following steps 102-22:

步骤102-22,若检测到应用的启动信息,则确定满足预设的系统主题信息的获取条件,获取应用所在的终端设备当前所配置的系统主题的主题信息。Steps 102-22, if the startup information of the application is detected, it is determined that a preset acquisition condition of the system theme information is satisfied, and the theme information of the system theme currently configured on the terminal device where the application is located is obtained.

具体的,当检测到用户对处于未运行状态的应用的触发操作(如点击、双击等)时,确定检测到应用的启动信息,满足预设的系统主题信息的获取条件。Specifically, when a triggering operation (such as a click, double-click, etc.) of a user on an application that is not running is detected, it is determined that the startup information of the application is detected, and the preset system theme information acquisition conditions are met.

进一步的,与步骤102-22对应的,如图3所示,步骤104包括以下步骤104-2,步骤106包括以下步骤106-2和步骤106-4:Further, corresponding to step 102-22, as shown in FIG. 3, step 104 includes the following step 104-2, and step 106 includes the following steps 106-2 and 106-4:

步骤104-2,根据获取的主题信息和预设的匹配规则,确定应用的至少一个应用主题中是否存在与当前的系统主题匹配的目标应用主题,是则执行步骤106-2,否则执行步骤106-4;Step 104-2, according to the acquired theme information and the preset matching rule, determine whether there is a target application theme matching the current system theme in at least one application theme of the application, if yes, go to step 106-2, otherwise go to step 106 -4;

步骤106-2,将应用的应用主题配置为目标应用主题;Step 106-2, configure the application theme of the application as the target application theme;

步骤106-4,将应用的应用主题配置为默认的应用主题。Step 106-4, configure the application theme of the application as the default application theme.

具体的,预先设定默认应用主题的应用主题标识,当确定应用的至少一个应用主题中不存在与当前的系统主题匹配的目标应用主题时,根据预设的应用主题标识,将应用的应用主题配置为对应的默认应用主题。Specifically, the application theme identifier of the default application theme is preset, and when it is determined that there is no target application theme matching the current system theme in at least one application theme of the application, according to the preset application theme identifier, the application theme of the application Configured as the corresponding default application theme.

由此,在检测到应用的启动信息时,进行自适应的主题配置,确保了应用启动后的应用主题能够与当前的系统主题相匹配。Therefore, when the startup information of the application is detected, an adaptive theme configuration is performed, which ensures that the application theme after the application is started can match the current system theme.

进一步的,由于在应用启动之后处于运行状态的过程中,用户还可能更换终端设备的系统主题,或者终端设备自适应外部环境而更换系统主题;为了使应用在运行过程中的应用主题能够及时的与更换后的系统主题相匹配,本说明书一个或多个实施例中,如图4所示,步骤102之前还包括:Further, during the process of running the application after the application is started, the user may also change the system theme of the terminal device, or the terminal device adapts to the external environment and changes the system theme; in order to make the application theme of the application run in time. Matching with the replaced system theme, in one or more embodiments of this specification, as shown in FIG. 4 , before step 102, the following further steps are included:

步骤100,若确定应用启动成功,则向应用所在的终端设备的系统发送主题变更信息获取请求,以使系统在变更系统主题时向应用发送通知信息;Step 100, if it is determined that the application is successfully started, send a theme change information acquisition request to the system of the terminal device where the application is located, so that the system sends notification information to the application when the system theme is changed;

其中,主题变更信息获取请求中包括应用的应用标识信息,当系统变更系统主题时,根据应用标识信息向自适应的主题配置装置发送通知信息,以使自适应的主题配置装置对通知信息中的应用标识信息所对应的应用进行应用主题的配置处理。Wherein, the theme change information acquisition request includes the application identification information of the application. When the system changes the system theme, it sends notification information to the adaptive theme configuration device according to the application identification information, so that the adaptive theme configuration device can respond to the information in the notification information. The application corresponding to the application identification information performs configuration processing of the application theme.

与步骤100对应的,如图4所示,步骤102-2包括以下步骤102-24:Corresponding to step 100, as shown in FIG. 4, step 102-2 includes the following steps 102-24:

步骤102-24,若接收到系统发送的通知信息,则确定满足预设的系统主题信息的获取条件,获取应用所在的终端设备当前所配置的系统主题的主题信息。Steps 102-24, if the notification information sent by the system is received, it is determined that the preset system theme information obtaining conditions are met, and the theme information of the system theme currently configured on the terminal device where the application is located is obtained.

其中,获取应用所在的终端设备当前所配置的系统主题的主题信息,可以包括调用预设的函数接口,基于函数接口获取应用所在的终端设备当前所配置的系统主题的主题信息;或者,从接收到的通知信息中获取应用所在的终端设备当前所配置的系统主题的主题信息。Wherein, obtaining the theme information of the system theme currently configured by the terminal device where the application is located may include calling a preset function interface, and obtaining the theme information of the system theme currently configured by the terminal device where the application is located based on the function interface; The subject information of the system subject currently configured on the terminal device where the application is located is obtained from the received notification information.

进一步的,与步骤100和步骤102-24相对应的,如图4所示,步骤106包括以下步骤106-6和步骤106-8:Further, corresponding to step 100 and step 102-24, as shown in FIG. 4, step 106 includes the following steps 106-6 and 106-8:

步骤106-6,若是,则确定应用当前配置的应用主题是否为目标应用主题;Step 106-6, if yes, then determine whether the application theme currently configured by the application is the target application theme;

步骤106-8,若否,则将应用当前配置的应用主题调整为目标应用主题。Step 106-8, if no, adjust the application theme currently configured by the application to the target application theme.

需要指出的是,当由步骤102-24执行步骤104时,若在步骤104中确定应用的至少一个应用主题中不存在与系统主题匹配的目标应用主题,则保持当前的应用主题不变。It should be pointed out that when step 104 is performed by steps 102-24, if it is determined in step 104 that there is no target application theme matching the system theme in at least one application theme of the application, the current application theme remains unchanged.

在一个具体的实施例中,当自适应的主题配置装置检测到应用的启用信息时,获取应用所在的终端设备当前所配置的系统主题的主题信息,根据获取的主题信息和预设的匹配规则,确定应用的至少一个应用主题中是否存在与当前的系统主题匹配的目标应用主题,若是,则是将应用的应用主题配置为目标应用主题。以及,向系统发送主题变更信息获取请求,并在接收到系统发送的主题变更的通知信息时,获取系统当前配置的系统主题的主题信息,根据获取的主题信息和预设的匹配规则,确定应用的至少一个应用主题中是否存在与当前的系统主题匹配的目标应用主题,若是,则是将应用的应用主题配置为目标应用主题。In a specific embodiment, when the adaptive theme configuration device detects the activation information of the application, it obtains the theme information of the system theme currently configured by the terminal device where the application is located, and according to the obtained theme information and the preset matching rule , determine whether there is a target application theme matching the current system theme in at least one application theme of the application, and if so, configure the application theme of the application as the target application theme. And, send the theme change information acquisition request to the system, and when receiving the notification information of the theme change sent by the system, obtain the theme information of the system theme currently configured by the system, and determine the application according to the obtained theme information and the preset matching rules. Whether there is a target application theme matching the current system theme in at least one of the application themes, and if so, configure the application theme of the application as the target application theme.

由此,在确定满足预设的系统主题信息的获取条件时,获取应用所在的终端设备当前所配置的系统主题的主题信息,而非实时获取应用所在的终端设备当前所配置的系统主题的主题信息,不仅能够降低资源的占用,而且能够及时的配置应用的应用主题,以使应用主题与系统主题相匹配。Therefore, when it is determined that the preset system theme information acquisition conditions are met, the theme information of the system theme currently configured by the terminal device where the application is located is obtained instead of acquiring the theme of the system theme currently configured by the terminal device where the application is located in real time. The information can not only reduce the occupation of resources, but also configure the application theme of the application in time, so that the application theme matches the system theme.

进一步的,为了能够快速的确定目标应用主题,本说明书一个或多个实施例中,预先设定匹配规则,该匹配规则包括系统主题标识与应用主题标识的关联关系;相应的,如图5所示,步骤104包括:Further, in order to quickly determine the target application theme, in one or more embodiments of this specification, a matching rule is preset, and the matching rule includes the association relationship between the system theme identifier and the application theme identifier; correspondingly, as shown in FIG. 5 . shown, step 104 includes:

步骤104-4,确定根据获取的主题信息中的系统主题标识,从预设的系统主题标识与应用主题标识的关联关系中是否查询到关联的应用主题标识;Step 104-4, determining whether the associated application theme ID is queried from the preset association relationship between the system theme ID and the application theme ID according to the system theme ID in the obtained theme information;

步骤104-6,若是,则确定存在与当前的系统主题匹配的目标应用主题,并将查询到的应用主题标识所对应的应用主题确定为目标应用主题;Step 104-6, if yes, then determine that there is a target application theme matching the current system theme, and determine the application theme corresponding to the queried application theme identifier as the target application theme;

与步骤104-4和步骤104-6对应的,如图5所示,步骤106包括以下步骤106-10:Corresponding to step 104-4 and step 104-6, as shown in FIG. 5, step 106 includes the following steps 106-10:

步骤106-10,将应用的应用主题配置为目标应用主题。Step 106-10, configure the application theme of the application as the target application theme.

进一步的,若确定根据获取的主题信息中的系统主题标识,从预设的系统主题标识与应用主题标识的关联关系中未查询到关联的应用主题标识,则确定不存在与当前的系统主题匹配的目标应用主题。Further, if it is determined that according to the system theme identification in the obtained theme information, the associated application theme identification is not queried from the association relationship between the preset system theme identification and the application theme identification, then it is determined that there is no matching with the current system theme. target app theme.

由此,基于预设的匹配规则,能够自动的将应用主题与系统主题相匹配,以实现自适应系统主题而配置应用主题的目的,并且该过程中无需用户手动配置,不仅提升了智能性,而且提升了用户体验。Therefore, based on the preset matching rules, the application theme can be automatically matched with the system theme, so as to realize the purpose of adapting the system theme and configuring the application theme, and the user does not need manual configuration in this process, which not only improves the intelligence, but also And improve the user experience.

通常的,应用主题包括背景图片、颜色、按钮图片等资源;无论是在应用启动时,还是在应用处于运行状态时,为了能够快速的配置应用主题,本说明书一个或多个实施例中,预先将每个应用主题的各资源封装为主题资源包,并建立应用主题标识与主题资源包的关联关系。相应的,如图6所示,步骤106-10包括以下步骤106-102和步骤106-104:Generally, an application theme includes resources such as background pictures, colors, and button pictures; whether when the application is started or when the application is running, in order to quickly configure the application theme, in one or more embodiments of this specification, pre- Each resource of each application theme is encapsulated into a theme resource package, and an association relationship between the application theme identifier and the theme resource package is established. Correspondingly, as shown in FIG. 6 , step 106-10 includes the following steps 106-102 and 106-104:

步骤106-102,根据查询到的应用主题标识,获取对应的主题资源包;Steps 106-102, obtaining a corresponding theme resource package according to the queried application theme identifier;

具体的,当安装应用时,下载应用主题标识与主题资源包的关联关系并保存至指定的存储区域中,自适应的主题配置装置根据查询到的应用主题标识,在该存储区域中获取对应的主题资源包。Specifically, when the application is installed, the association relationship between the application theme identifier and the theme resource package is downloaded and stored in a designated storage area, and the adaptive theme configuration device obtains the corresponding application theme identifier in the storage area according to the queried application theme identifier. Theme resource pack.

步骤106-104,加载获取的主题资源包,以将应用的应用主题配置为目标应用主题。Steps 106-104: Load the acquired theme resource package to configure the application theme of the application as the target application theme.

本说明书实施例中,通过获取应用所在的终端设备当前所配置的系统主题的主题信息,并根据获取主题信息和预设的匹配规则,确定应用的至少一个应用主题中是否存在与当前的系统主题匹配的目标应用主题;以及,在存在目标应用主题时,则将应用的应用主题配置为该目标应用主题。由此,基于自动匹配的方式使应用主题与系统主题相适应,而无需用户手动设置,不仅提升了智能性,而且节约了用户时间,提升了用户体验。In the embodiment of this specification, by obtaining the theme information of the system theme currently configured on the terminal device where the application is located, and according to the obtained theme information and a preset matching rule, it is determined whether there is a current system theme in at least one application theme of the application matching target application theme; and, when there is a target application theme, configure the applied application theme as the target application theme. As a result, the application theme is adapted to the system theme based on the automatic matching method, without requiring manual setting by the user, which not only improves the intelligence, but also saves the user's time and improves the user experience.

基于相同的技术构思,本说明书一个或多个实施例还提供了一种自适应的主题配置装置,图7本说明书一个或多个实施例提供的一种自适应的主题配置装置的模块组成示意图,如图7所示,该装置包括:Based on the same technical concept, one or more embodiments of the present specification also provide an adaptive theme configuration device. FIG. 7 is a schematic diagram of the module composition of an adaptive theme configuration device provided by one or more embodiments of this specification. , as shown in Figure 7, the device includes:

获取模块201,用于获取应用所在的终端设备当前所配置的系统主题的主题信息;Obtaining module 201, used for obtaining the theme information of the system theme currently configured by the terminal device where the application is located;

确定模块202,用于根据所述主题信息和预设的匹配规则,确定所述应用的至少一个应用主题中是否存在与所述系统主题匹配的目标应用主题;A determination module 202, configured to determine whether there is a target application theme matching the system theme in at least one application theme of the application according to the theme information and a preset matching rule;

配置模块203,用于在所述确定模块202的确定结果为是时,将所述应用的应用主题配置为所述目标应用主题。The configuration module 203 is configured to configure the application theme of the application as the target application theme when the determination result of the determination module 202 is yes.

可选地,所述获取模块201具体用于:Optionally, the obtaining module 201 is specifically used for:

调用预设的函数接口,基于所述函数接口获取应用所在终端设备当前所配置的系统主题的主题信息。A preset function interface is called, and based on the function interface, the theme information of the system theme currently configured on the terminal device where the application is located is obtained.

可选地,所述获取模块201进一步具体用于:Optionally, the obtaining module 201 is further specifically configured to:

确定是否满足预设的系统主题信息的获取条件;Determine whether the preset system subject information acquisition conditions are met;

若是,则获取所述应用所在的终端设备当前所配置的系统主题的主题信息。If yes, obtain the theme information of the system theme currently configured on the terminal device where the application is located.

可选地,所述获取模块201更进一步具体用于:Optionally, the obtaining module 201 is further specifically used for:

若检测到所述应用的启动信息,则确定满足所述预设的系统主题信息的获取条件。If the startup information of the application is detected, it is determined that the preset acquisition condition of the system theme information is satisfied.

可选地,所述配置模块203,若所述确定模块202确定所述应用的至少一个应用主题中不存在与所述系统主题匹配的目标应用主题,则将所述应用配置为默认的应用主题。Optionally, the configuration module 203, if the determination module 202 determines that there is no target application theme matching the system theme in at least one application theme of the application, configure the application as a default application theme .

可选地,所述装置还包括:发送模块;Optionally, the apparatus further includes: a sending module;

所述发送模块,若确定所述应用启动成功,则向所述应用所在的终端设备的系统发送主题变更信息获取请求,以使所述系统在变更系统主题时向所述应用发送通知信息;The sending module, if it is determined that the application is successfully started, sends a subject change information acquisition request to the system of the terminal device where the application is located, so that the system sends notification information to the application when the system subject is changed;

相应的,所述获取模块201更进一步具体用于:Correspondingly, the obtaining module 201 is further specifically used for:

若接收到所述系统发送的所述通知信息,则确定满足所述预设的系统主题信息的获取条件。If the notification information sent by the system is received, it is determined that the preset acquisition condition of the system subject information is satisfied.

可选地,所述配置模块203具体用于:Optionally, the configuration module 203 is specifically used for:

确定所述应用当前配置的应用主题是否为所述目标应用主题;determining whether the application theme currently configured by the application is the target application theme;

若否,则将所述应用当前配置的应用主题调整为所述目标应用主题。If not, adjust the application theme currently configured by the application to the target application theme.

可选地,所述主题信息包括系统主题标识,所述确定模块202具体用于:Optionally, the subject information includes a system subject identifier, and the determining module 202 is specifically configured to:

确定根据所述系统主题标识,从预设的系统主题标识与应用主题标识的关联关系中是否查询到关联的应用主题标识;Determine whether the associated application theme ID is queried from the preset association relationship between the system theme ID and the application theme ID according to the system theme ID;

若是,则确定存在与所述系统主题匹配的目标应用主题,并将查询到的所述应用主题标识所对应的应用主题确定为所述目标应用主题;If so, determine that there is a target application theme matching the system theme, and determine the application theme corresponding to the queried application theme identifier as the target application theme;

若否,则确定不存在与所述系统主题匹配的目标应用主题。If not, it is determined that there is no target application theme matching the system theme.

可选地,所述配置模块203进一步具体用于:Optionally, the configuration module 203 is further specifically configured to:

根据查询到的所述应用主题标识,获取对应的主题资源包;Obtain a corresponding theme resource package according to the queried application theme identifier;

加载所述主题资源包,以将所述应用的应用主题配置为所述目标应用主题。The theme resource bundle is loaded to configure the application theme of the application as the target application theme.

本说明书实施例提供的自适应的主题配置装置,通过获取应用所在的终端设备当前所配置的系统主题的主题信息,并根据获取主题信息和预设的匹配规则,确定应用的至少一个应用主题中是否存在与当前的系统主题匹配的目标应用主题;以及,在存在目标应用主题时,则将应用的应用主题配置为该目标应用主题。由此,基于自动匹配的方式使应用主题与系统主题相适应,而无需用户手动设置,不仅提升了智能性,而且节约了用户时间,提升了用户体验。The self-adaptive theme configuration device provided by the embodiments of this specification obtains the theme information of the system theme currently configured by the terminal device where the application is located, and determines, according to the obtained theme information and a preset matching rule, which of the at least one application theme of the application is in the application theme. Whether there is a target application theme that matches the current system theme; and, if there is a target application theme, configure the applied application theme as the target application theme. As a result, the application theme is adapted to the system theme based on the automatic matching method, without requiring manual setting by the user, which not only improves the intelligence, but also saves the user's time and improves the user experience.

另外,对于上述装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。而且,应当注意的是,本发明的装置的各个部件中,根据其要实现的功能而对其中的部件进行了逻辑划分,但是,本发明不受限于此,可以根据需要对各个部件进行重新划分或者组合。In addition, for the above-mentioned apparatus embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and reference may be made to some descriptions of the method embodiments for related parts. Moreover, it should be noted that, among the various components of the device of the present invention, the components are logically divided according to the functions to be implemented, but the present invention is not limited to this, and each component can be reconfigured as required. Divide or combine.

基于相同的技术构思,本说明书一个或多个实施例还提供了一种终端设备,图8本说明书一个或多个实施例提供的一种终端设备的结构示意图;如图8所示,该终端设备包括:Based on the same technical concept, one or more embodiments of this specification also provide a terminal device, and FIG. 8 is a schematic structural diagram of a terminal device provided by one or more embodiments of this specification; as shown in FIG. 8 , the terminal Equipment includes:

处理器301,用于获取应用所在的终端设备当前所配置的系统主题的主题信息;根据所述主题信息和预设的匹配规则,确定所述应用的至少一个应用主题中是否存在与所述系统主题匹配的目标应用主题;若是,将所述应用的应用主题配置为所述目标应用主题;The processor 301 is configured to obtain the theme information of the system theme currently configured by the terminal device where the application is located; according to the theme information and a preset matching rule, determine whether there is a relationship with the system in at least one application theme of the application The target application theme that the theme matches; if so, configure the application theme of the application as the target application theme;

存储器302,用于存储所述终端设备的系统的相关信息,以及存储所述应用的相关信息。The memory 302 is configured to store system-related information of the terminal device and store-related information of the application.

可选地,所述处理器301具体用于:调用预设的函数接口,基于所述函数接口获取应用所在终端设备当前所配置的系统主题的主题信息。Optionally, the processor 301 is specifically configured to: call a preset function interface, and obtain theme information of a system theme currently configured by the terminal device where the application is located based on the function interface.

可选地,所述处理器301具体用于:Optionally, the processor 301 is specifically configured to:

确定是否满足预设的系统主题信息的获取条件;Determine whether the preset system subject information acquisition conditions are met;

若是,则获取所述应用所在的终端设备当前所配置的系统主题的主题信息。If yes, obtain the theme information of the system theme currently configured on the terminal device where the application is located.

可选地,所述处理器301具体用于:若检测到所述应用的启动信息,则确定满足所述预设的系统主题信息的获取条件。Optionally, the processor 301 is specifically configured to: if the startup information of the application is detected, determine that the preset acquisition condition of the system theme information is satisfied.

可选地,所述处理器301具体用于:若确定所述应用的至少一个应用主题中不存在与所述系统主题匹配的目标应用主题,则将所述应用配置为默认的应用主题。Optionally, the processor 301 is specifically configured to configure the application as a default application theme if it is determined that a target application theme matching the system theme does not exist in at least one application theme of the application.

可选地,所述处理器301具体用于:Optionally, the processor 301 is specifically configured to:

若确定所述应用启动成功,则向所述应用所在的终端设备的系统发送主题变更信息获取请求,以使所述系统在变更系统主题时向所述应用发送通知信息;以及,If it is determined that the application is successfully started, sending a request for obtaining theme change information to the system of the terminal device where the application is located, so that the system sends notification information to the application when the system theme is changed; and,

若接收到所述系统发送的所述通知信息,则确定满足所述预设的系统主题信息的获取条件。If the notification information sent by the system is received, it is determined that the preset acquisition condition of the system subject information is satisfied.

可选地,所述处理器301具体用于:Optionally, the processor 301 is specifically configured to:

确定所述应用当前配置的应用主题是否为所述目标应用主题;determining whether the application theme currently configured by the application is the target application theme;

若否,则将所述应用当前配置的应用主题调整为所述目标应用主题。If not, adjust the application theme currently configured by the application to the target application theme.

可选地,所述主题信息包括:系统主题标识;所述处理器301具体用于:Optionally, the subject information includes: a system subject identifier; the processor 301 is specifically configured to:

确定根据所述系统主题标识,从预设的系统主题标识与应用主题标识的关联关系中是否查询到关联的应用主题标识;Determine whether the associated application theme ID is queried from the preset association relationship between the system theme ID and the application theme ID according to the system theme ID;

若是,则确定存在与所述系统主题匹配的目标应用主题,并将查询到的所述应用主题标识所对应的应用主题确定为所述目标应用主题;If so, determine that there is a target application theme matching the system theme, and determine the application theme corresponding to the queried application theme identifier as the target application theme;

若否,则确定不存在与所述系统主题匹配的目标应用主题。If not, it is determined that there is no target application theme matching the system theme.

可选地,所述处理器301具体用于:Optionally, the processor 301 is specifically configured to:

根据查询到的所述应用主题标识,获取对应的主题资源包;Obtain a corresponding theme resource package according to the queried application theme identifier;

加载所述主题资源包,以将所述应用的应用主题配置为所述目标应用主题。The theme resource bundle is loaded to configure the application theme of the application as the target application theme.

本说明书实施例提供的终端设备,通过获取应用所在的终端设备当前所配置的系统主题的主题信息,并根据获取主题信息和预设的匹配规则,确定应用的至少一个应用主题中是否存在与当前的系统主题匹配的目标应用主题;以及,在存在目标应用主题时,则将应用的应用主题配置为该目标应用主题。由此,基于自动匹配的方式使应用主题与系统主题相适应,而无需用户手动设置,不仅提升了智能性,而且节约了用户时间,提升了用户体验。The terminal device provided by the embodiments of this specification determines whether there is a current theme in at least one application theme of the application by obtaining theme information of a system theme currently configured on the terminal device where the application is located, and according to the obtained theme information and a preset matching rule. The target application theme that matches the system theme of the system; and, when there is a target application theme, configure the applied application theme as the target application theme. As a result, the application theme is adapted to the system theme based on the automatic matching method, without requiring manual setting by the user, which not only improves the intelligence, but also saves the user's time and improves the user experience.

另外,对于上述终端设备实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。In addition, for the above-mentioned terminal device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and reference may be made to the partial description of the method embodiment for related parts.

图9为本说明一实施例提供的一种电子设备的结构示意图,参见图9,该电子设备包括处理器、内部总线、网络接口、内存以及非易失性存储器,当然还可能包括其他业务所需要的硬件。处理器从非易失性存储器中读取对应的计算机程序到内存中然后运行,在逻辑层面上形成自适应的主题配置装置。当然,除了软件实现方式之外,本申请并不排除其他实现方式,比如逻辑器件抑或软硬件结合的方式等等,也就是说以下处理流程的执行主体并不限定于各个逻辑单元,也可以是硬件或逻辑器件。FIG. 9 is a schematic structural diagram of an electronic device according to an embodiment of the description. Referring to FIG. 9 , the electronic device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course may also include other business required hardware. The processor reads the corresponding computer program from the non-volatile memory into the memory and runs it, forming an adaptive theme configuration device on a logical level. Of course, in addition to software implementations, this application does not exclude other implementations, such as logic devices or a combination of software and hardware. hardware or logic device.

网络接口、处理器和存储器可以通过总线系统相互连接。总线可以是ISA(Industry Standard Architecture,工业标准体系结构)总线、PCI(PeripheralComponent Interconnect,外设部件互连标准)总线或EISA(Extended Industry StandardArchitecture,扩展工业标准结构)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图9中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。Network interfaces, processors and memories can be interconnected through a bus system. The bus may be an ISA (Industry Standard Architecture, industry standard architecture) bus, a PCI (Peripheral Component Interconnect, peripheral component interconnect standard) bus, or an EISA (Extended Industry Standard Architecture, extended industry standard architecture) bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one bidirectional arrow is used in FIG. 9, but it does not mean that there is only one bus or one type of bus.

存储器用于存放程序。具体地,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器可以包括只读存储器和随机存取存储器,并向处理器提供指令和数据。存储器可能包含高速随机存取存储器(Random-Access Memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少1个磁盘存储器。Memory is used to store programs. Specifically, the program may include program code, and the program code includes computer operation instructions. The memory, which may include read-only memory and random access memory, provides instructions and data to the processor. The memory may include a high-speed random-access memory (Random-Access Memory, RAM), and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.

处理器,用于执行所述存储器存放的程序,并具体执行:a processor, configured to execute the program stored in the memory, and specifically execute:

获取应用所在的终端设备当前所配置的系统主题的主题信息;Obtain the theme information of the system theme currently configured on the terminal device where the application is located;

根据所述主题信息和预设的匹配规则,确定所述应用的至少一个应用主题中是否存在与所述系统主题匹配的目标应用主题;According to the theme information and a preset matching rule, determine whether there is a target application theme matching the system theme in at least one application theme of the application;

若是,则将所述应用的应用主题配置为所述目标应用主题。If so, configure the application theme of the application as the target application theme.

上述如本申请图9所示实施例揭示的自适应的主题配置装置执行的方法可以应用于处理器中,或者由处理器实现。处理器可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器可以是通用处理器,包括中央处理器(Central ProcessingUnit,CPU)、网络处理器(Network Processor,NP)等;还可以是数字信号处理器(DigitalSignal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器读取存储器中的信息,结合其硬件完成上述方法的步骤。The above-mentioned method performed by the adaptive subject configuration apparatus disclosed in the embodiment shown in FIG. 9 of the present application may be applied to a processor, or implemented by a processor. A processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above-mentioned method can be completed by a hardware integrated logic circuit in a processor or an instruction in the form of software. The above-mentioned processor may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP), etc.; it may also be a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit ( Application Specific Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The methods, steps, and logic block diagrams disclosed in the embodiments of this application can be implemented or executed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software modules may be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other storage media mature in the art. The storage medium is located in the memory, and the processor reads the information in the memory, and completes the steps of the above method in combination with its hardware.

该电子设备还可以执行图1至图6所示的方法,并实现自适应的主题配置装置在图1至图6所示实施例的功能,本申请实施例在此不再赘述。The electronic device can also execute the methods shown in FIG. 1 to FIG. 6 , and implement the functions of the adaptive theme configuration apparatus in the embodiments shown in FIGS. 1 to 6 , which are not repeated in this embodiment of the present application.

基于相同的技术构思,本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储一个或多个程序,所述一个或多个程序当被包括多个应用程序的电子设备执行时,使得所述电子设备执行图1至图6任一所对应的实施例提供的自适应的主题配置方法。Based on the same technical concept, the embodiments of the present application also provide a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs, when included as a plurality of application programs When the electronic device executes, the electronic device is made to execute the adaptive theme configuration method provided by any of the embodiments corresponding to FIG. 1 to FIG. 6 .

本说明书中的各个实施例均采用递进的方式描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点说明的都是与其他实施例的不同之处。尤其,对于系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。Each embodiment in this specification is described in a progressive manner, and the same and similar parts between the various embodiments may be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and for related parts, please refer to the partial descriptions of the method embodiments.

上述对本说明书特定实施例进行了描述。其它实施例在所附权利要求书的范围内。在一些情况下,在权利要求书中记载的动作或步骤可以按照不同于实施例中的顺序来执行并且仍然可以实现期望的结果。另外,在附图中描绘的过程不一定要求示出的特定顺序或者连续顺序才能实现期望的结果。在某些实施方式中,多任务处理和并行处理也是可以的或者可能是有利的。The foregoing describes specific embodiments of the present specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that in the embodiments and still achieve desirable results. Additionally, the processes depicted in the figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block in the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to the processor of a general purpose computer, special purpose computer, embedded processor or other programmable data processing device to produce a machine such that the instructions executed by the processor of the computer or other programmable data processing device produce Means for implementing the functions specified in a flow or flow of a flowchart and/or a block or blocks of a block diagram.

这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory result in an article of manufacture comprising instruction means, the instructions The apparatus implements the functions specified in the flow or flow of the flowcharts and/or the block or blocks of the block diagrams.

这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded on a computer or other programmable data processing device to cause a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process such that The instructions provide steps for implementing the functions specified in the flow or blocks of the flowcharts and/or the block or blocks of the block diagrams.

在一个典型的配置中,计算设备包括一个或多个处理器(CPU)、输入/输出接口、网络接口和内存。In a typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

内存可能包括计算机可读介质中的非永久性存储器,随机存取存储器(RAM)和/或非易失性内存等形式,如只读存储器(ROM)或闪存(flash RAM)。内存是计算机可读介质的示例。Memory may include non-persistent memory in computer readable media, random access memory (RAM) and/or non-volatile memory in the form of, for example, read only memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

计算机可读介质包括永久性和非永久性、可移动和非可移动媒体可以由任何方法或技术来实现信息存储。信息可以是计算机可读指令、数据结构、程序的模块或其他数据。计算机的存储介质的例子包括,但不限于相变内存(PRAM)、静态随机存取存储器(SRAM)、动态随机存取存储器(DRAM)、其他类型的随机存取存储器(RAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、快闪记忆体或其他内存技术、只读光盘只读存储器(CD-ROM)、数字多功能光盘(DVD)或其他光学存储、磁盒式磁带,磁带磁磁盘存储或其他磁性存储设备或任何其他非传输介质,可用于存储可以被计算设备访问的信息。按照本文中的界定,计算机可读介质不包括暂存电脑可读媒体(transitory media),如调制的数据信号和载波。Computer-readable media includes both persistent and non-permanent, removable and non-removable media, and storage of information may be implemented by any method or technology. Information may be computer readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read only memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), Flash Memory or other memory technology, Compact Disc Read Only Memory (CD-ROM), Digital Versatile Disc (DVD) or other optical storage, Magnetic tape cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, excludes transitory computer-readable media, such as modulated data signals and carrier waves.

还需要说明的是,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、商品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、商品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、商品或者设备中还存在另外的相同要素。It should also be noted that the terms "comprising", "comprising" or any other variation thereof are intended to encompass a non-exclusive inclusion such that a process, method, article or device comprising a series of elements includes not only those elements, but also Other elements not expressly listed or inherent to such a process, method, article of manufacture or apparatus are also included. Without further limitation, an element qualified by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article of manufacture, or device that includes the element.

本领域技术人员应明白,本申请的实施例可提供为方法、系统或计算机程序产品。因此,本申请可采用完全硬件实施例、完全软件实施例或结合软件和硬件方面的实施例的形式。而且,本申请可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。It will be appreciated by those skilled in the art that the embodiments of the present application may be provided as a method, a system or a computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) having computer-usable program code embodied therein.

以上所述仅为本申请的实施例而已,并不用于限制本申请。对于本领域技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原理之内所作的任何修改、等同替换、改进等,均应包含在本申请的权利要求范围之内。The above descriptions are merely examples of the present application, and are not intended to limit the present application. Various modifications and variations of this application are possible for those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included within the scope of the claims of this application.

Claims (12)

1.一种自适应的主题配置方法,其特征在于,包括:1. an adaptive theme configuration method, is characterized in that, comprises: 获取应用所在的终端设备当前所配置的系统主题的主题信息;Obtain the theme information of the system theme currently configured on the terminal device where the application is located; 根据所述主题信息和预设的匹配规则,确定所述应用的至少一个应用主题中是否存在与所述系统主题匹配的目标应用主题;According to the theme information and a preset matching rule, determine whether there is a target application theme matching the system theme in at least one application theme of the application; 若是,则将所述应用的应用主题配置为所述目标应用主题。If yes, configure the application theme of the application as the target application theme. 2.根据权利要求1所述的方法,其特征在于,所述获取应用所在的终端设备当前所配置的系统主题的主题信息,包括:2. The method according to claim 1, wherein the acquiring the subject information of the system subject currently configured by the terminal device where the application is located comprises: 调用预设的函数接口,基于所述函数接口获取应用所在终端设备当前所配置的系统主题的主题信息。A preset function interface is called, and based on the function interface, the theme information of the system theme currently configured on the terminal device where the application is located is obtained. 3.根据权利要求1所述的方法,其特征在于,所述获取应用所在的终端设备当前所配置的系统主题的主题信息,包括:3. The method according to claim 1, wherein the acquiring the subject information of the system subject currently configured by the terminal device where the application is located comprises: 确定是否满足预设的系统主题信息的获取条件;Determine whether the preset system subject information acquisition conditions are met; 若是,则获取所述应用所在的终端设备当前所配置的系统主题的主题信息。If yes, obtain the theme information of the system theme currently configured on the terminal device where the application is located. 4.根据权利要求3所述的方法,其特征在于,所述确定是否满足预设的系统主题信息的获取条件,包括:4. The method according to claim 3, wherein the determining whether a preset acquisition condition of the system theme information is satisfied comprises: 若检测到所述应用的启动信息,则确定满足所述预设的系统主题信息的获取条件。If the startup information of the application is detected, it is determined that the preset acquisition condition of the system theme information is satisfied. 5.根据权利要求4所述的方法,其特征在于,所述方法还包括:5. The method according to claim 4, wherein the method further comprises: 若确定所述应用的至少一个应用主题中不存在与所述系统主题匹配的目标应用主题,则将所述应用配置为默认的应用主题。If it is determined that there is no target application theme matching the system theme in at least one application theme of the application, configure the application as a default application theme. 6.根据权利要求3所述的方法,其特征在于,所述方法还包括:6. The method according to claim 3, wherein the method further comprises: 若确定所述应用启动成功,则向所述应用所在的终端设备的系统发送主题变更信息获取请求,以使所述系统在变更系统主题时向所述应用发送通知信息;If it is determined that the application is successfully started, sending a request for obtaining theme change information to the system of the terminal device where the application is located, so that the system sends notification information to the application when the system theme is changed; 所述确定是否满足预设的系统主题信息的获取条件,包括:Described determining whether the acquisition condition of the preset system theme information is met, including: 若接收到所述系统发送的所述通知信息,则确定满足所述预设的系统主题信息的获取条件。If the notification information sent by the system is received, it is determined that the preset acquisition condition of the system subject information is satisfied. 7.根据权利要求6所述的方法,其特征在于,所述将所述应用的应用主题配置为所述目标应用主题,包括:7. The method according to claim 6, wherein the configuring the application theme of the application as the target application theme comprises: 确定所述应用当前配置的应用主题是否为所述目标应用主题;determining whether the application theme currently configured by the application is the target application theme; 若否,则将所述应用当前配置的应用主题调整为所述目标应用主题。If not, adjust the application theme currently configured by the application to the target application theme. 8.根据权利要求1所述的方法,其特征在于,所述主题信息包括:系统主题标识;8. The method according to claim 1, wherein the subject information comprises: a system subject identifier; 所述根据所述主题信息和预设的匹配规则,确定所述应用的至少一个应用主题中是否存在与所述系统主题匹配的目标应用主题,包括:The determining whether there is a target application theme matching the system theme in at least one application theme of the application according to the theme information and a preset matching rule includes: 确定根据所述系统主题标识,从预设的系统主题标识与应用主题标识的关联关系中是否查询到关联的应用主题标识;Determine whether the associated application theme ID is queried from the preset association relationship between the system theme ID and the application theme ID according to the system theme ID; 若是,则确定存在与所述系统主题匹配的目标应用主题,并将查询到的所述应用主题标识所对应的应用主题确定为所述目标应用主题;If so, determine that there is a target application theme matching the system theme, and determine the application theme corresponding to the queried application theme identifier as the target application theme; 若否,则确定不存在与所述系统主题匹配的目标应用主题。If not, it is determined that there is no target application theme matching the system theme. 9.根据权利要求8所述的方法,其特征在于,所述将所述应用的应用主题配置为所述目标应用主题,包括:9. The method according to claim 8, wherein the configuring the application theme of the application as the target application theme comprises: 根据查询到的所述应用主题标识,获取对应的主题资源包;Obtain a corresponding theme resource package according to the queried application theme identifier; 加载所述主题资源包,以将所述应用的应用主题配置为所述目标应用主题。The theme resource bundle is loaded to configure the application theme of the application as the target application theme. 10.一种终端设备,其特征在于,包括:10. A terminal device, comprising: 处理器,用于获取应用所在的终端设备当前所配置的系统主题的主题信息;根据所述主题信息和预设的匹配规则,确定所述应用的至少一个应用主题中是否存在与所述系统主题匹配的目标应用主题;若是,则将所述应用的应用主题配置为所述目标应用主题;The processor is used to obtain the theme information of the system theme currently configured by the terminal device where the application is located; according to the theme information and the preset matching rule, determine whether there is a system theme in at least one application theme of the application The matching target application theme; if so, configure the application theme of the application as the target application theme; 存储器,用于存储所述终端设备的系统的主题信息和匹配规则信息,以及存储所述应用的主题信息。The memory is used for storing the subject information and matching rule information of the system of the terminal device, and storing the subject information of the application. 11.一种电子设备,其特征在于,包括:处理器、通信接口、存储器和通信总线;其中,处理器,通信接口,存储器通过总线完成相互间的通信;存储器,用于存放计算机程序;处理器,用于执行存储器上所存放的程序,实现上述权利要求1至9中任一项所述的方法的步骤。11. An electronic device, comprising: a processor, a communication interface, a memory and a communication bus; wherein, the processor, the communication interface, and the memory communicate with each other through the bus; the memory is used to store computer programs; The device is used to execute the program stored in the memory to implement the steps of the method according to any one of the above claims 1 to 9. 12.一种计算机可读存储介质,其特征在于,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述权利要求1至9中任一项所述的方法的步骤。12. A computer-readable storage medium, characterized in that, a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, any one of the above claims 1 to 9 is implemented. steps of the method.
CN202010558091.6A 2020-06-18 2020-06-18 Adaptive theme configuration method and device Pending CN111767087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010558091.6A CN111767087A (en) 2020-06-18 2020-06-18 Adaptive theme configuration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010558091.6A CN111767087A (en) 2020-06-18 2020-06-18 Adaptive theme configuration method and device

Publications (1)

Publication Number Publication Date
CN111767087A true CN111767087A (en) 2020-10-13

Family

ID=72721128

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010558091.6A Pending CN111767087A (en) 2020-06-18 2020-06-18 Adaptive theme configuration method and device

Country Status (1)

Country Link
CN (1) CN111767087A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817677A (en) * 2021-01-29 2021-05-18 中汽创智科技有限公司 Theme switching method, system, equipment and storage medium for vehicle-mounted information entertainment system
CN116069437A (en) * 2023-04-06 2023-05-05 深圳开鸿数字产业发展有限公司 Atomization service card theme management method, device, terminal and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063277A (en) * 2013-03-18 2014-09-24 联想(北京)有限公司 Information processing method and electronic equipment
US20150149891A1 (en) * 2013-11-26 2015-05-28 Yahoo! Inc. Web application theme preview based on live previews
CN104951182A (en) * 2015-05-27 2015-09-30 深圳市万普拉斯科技有限公司 Replacement method and device for interface theme of application and intelligent terminal
CN104978200A (en) * 2015-07-13 2015-10-14 小米科技有限责任公司 Application program display method and device
CN105204709A (en) * 2015-07-22 2015-12-30 维沃移动通信有限公司 Theme switching method and device
CN110908565A (en) * 2018-09-18 2020-03-24 中兴通讯股份有限公司 Method, device, equipment and storage medium for customizing screen theme

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104063277A (en) * 2013-03-18 2014-09-24 联想(北京)有限公司 Information processing method and electronic equipment
US20150149891A1 (en) * 2013-11-26 2015-05-28 Yahoo! Inc. Web application theme preview based on live previews
CN104951182A (en) * 2015-05-27 2015-09-30 深圳市万普拉斯科技有限公司 Replacement method and device for interface theme of application and intelligent terminal
CN104978200A (en) * 2015-07-13 2015-10-14 小米科技有限责任公司 Application program display method and device
CN105204709A (en) * 2015-07-22 2015-12-30 维沃移动通信有限公司 Theme switching method and device
CN110908565A (en) * 2018-09-18 2020-03-24 中兴通讯股份有限公司 Method, device, equipment and storage medium for customizing screen theme

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112817677A (en) * 2021-01-29 2021-05-18 中汽创智科技有限公司 Theme switching method, system, equipment and storage medium for vehicle-mounted information entertainment system
CN112817677B (en) * 2021-01-29 2024-05-24 中汽创智科技有限公司 Theme switching method, system, equipment and storage medium for vehicle-mounted information entertainment system
CN116069437A (en) * 2023-04-06 2023-05-05 深圳开鸿数字产业发展有限公司 Atomization service card theme management method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
TWI622933B (en) Client update method and device
WO2017193864A1 (en) Method and system for starting application
EP3457666B1 (en) Method and system for starting an application
CN110955624B (en) Hot plug method, device and system of PCIE equipment
CN114244898B (en) Workload preheating method and device based on service grid
CN108804938B (en) Authority detection method and device, electronic equipment and readable storage medium
CN115190078B (en) Access flow control method, device, equipment and storage medium
CN111767087A (en) Adaptive theme configuration method and device
CN107957687B (en) Method and device for controlling functions of interconnection equipment
CN103501327B (en) Method for down loading and device based on mobile terminal application
CN114527983A (en) Interface adaptation method and device based on middleware and electronic equipment
CN111949297B (en) Block chain intelligent contract upgrading method and device and electronic equipment
CN111338803A (en) Thread processing method and device
CN117041980B (en) A network element management method, device, storage medium and electronic equipment
CN110912900B (en) Boundary intelligent security monitoring method, device and equipment based on Internet of things
WO2020221161A1 (en) Computing job processing method and system, mobile device and acceleration device
CN106817355B (en) Method and device for controlling webpage permission
CN112416534A (en) Agent-based task management method and device
CN111857854A (en) Shutdown resource loading method, device, storage medium and electronic device
CN117592104A (en) Method and device for executing service, storage medium and electronic equipment
CN109815116A (en) A kind of method for testing software and equipment platform and computer readable storage medium
CN113312055B (en) Applet launching method, device and equipment
CN112416555B (en) Client restarting method, device and apparatus, and storage medium
CN116931817A (en) Processing method, device and processor for vehicle configuration data
CN112583733A (en) Interface traffic shaping method and device, storage medium and electronic equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20201013

RJ01 Rejection of invention patent application after publication