CN112698901A - Application program setting method and device - Google Patents

Application program setting method and device Download PDF

Info

Publication number
CN112698901A
CN112698901A CN202011627988.6A CN202011627988A CN112698901A CN 112698901 A CN112698901 A CN 112698901A CN 202011627988 A CN202011627988 A CN 202011627988A CN 112698901 A CN112698901 A CN 112698901A
Authority
CN
China
Prior art keywords
color
content
page
background
target content
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
CN202011627988.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.)
Beijing Sogou Technology Development Co Ltd
Original Assignee
Beijing Sogou Technology Development 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 Beijing Sogou Technology Development Co Ltd filed Critical Beijing Sogou Technology Development Co Ltd
Priority to CN202011627988.6A priority Critical patent/CN112698901A/en
Publication of CN112698901A publication Critical patent/CN112698901A/en
Priority to PCT/CN2021/103568 priority patent/WO2022142222A1/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/451Execution arrangements for user interfaces

Landscapes

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

Abstract

Specifically, in order to enable a user to clearly view target content in a page corresponding to an application, a background color of the target content may be acquired, and then a page content color of the application is determined according to the acquired background color. Wherein the determined contrast between the page content color and the background color is greater than or equal to a first threshold. In other words, the contrast between the page content color and the background color is relatively large. After the page content color of the application program is determined, color setting may be performed on the target content according to the page content color, so that the color of the target content is the determined page content color. Because the contrast ratio between the page content color and the background color is relatively large, the user can clearly see the target content. Therefore, by the aid of the application program, user experience of the application program can be effectively improved.

Description

Application program setting method and device
Technical Field
The present application relates to the field of computers, and in particular, to a method and an apparatus for setting an application program.
Background
Currently, an application program may be run on a device, such as a terminal device, and when the application program is called, the terminal device may display a page corresponding to the application program. Some content may be displayed on the page, for example, the first content and the second content may be displayed on the page.
It can be understood that if the colors of the first content and the second content are relatively close, it is not beneficial for the user to view a portion of the content displayed on the page, such as the first content. Colloquially, a phenomenon may occur in which a user cannot see a part of the content on the page clearly, resulting in a poor user experience of the application.
Therefore, a solution to solve the above problems is urgently needed.
Disclosure of Invention
The technical problem to be solved by the application is how to improve the user experience of the application, and an application setting method and device are provided.
In a first aspect, an embodiment of the present application provides an application setting method, where the method includes:
acquiring a background color of target content in a page corresponding to an application program;
determining the page content color of the application program according to the background color, wherein the contrast between the page content color and the background color is greater than or equal to a first threshold;
and carrying out color setting on the target content according to the page content color.
Optionally, the page corresponding to the application includes N regions, where N is an integer greater than or equal to 1, and determining the page content color of the application according to the background color includes:
and determining the page content color of each of the N areas according to the background colors corresponding to the N areas respectively, wherein the N areas comprise a first area, and the contrast between the background color of the first area and the page content color of the first area is greater than or equal to the first threshold.
Optionally, the method further includes:
determining one or more of transparency, brightness and saturation of the page content color;
and performing color setting on the target content according to the page content color, wherein the color setting comprises the following steps:
and carrying out color setting on the target content according to the page content color and one or more of the transparency, the brightness and the saturation.
Optionally, the performing color setting on the target content according to the page content color includes:
performing color setting on the target content displayed in each region according to the page content color corresponding to each region, wherein: the color of the target content displayed in the first area is set as the page content color corresponding to the first area.
Optionally, the target content includes any one or more of the following:
interactive content, subtitles, and text.
Optionally, the interactive content includes any one or more of the following items:
chat messages and moving barrages.
Optionally, the background color of the target content in the page corresponding to the application program includes:
a color of background content displayed in the page concurrently with the target content, the background content comprising: pictures, or, alternatively, video frames.
Optionally, a color combination of the background color and the page content color conforms to a visual protection mode.
In a second aspect, an embodiment of the present application provides an application setting apparatus, where the apparatus includes:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring the background color of target content in a page corresponding to an application program;
a first determining unit, configured to determine a page content color of the application according to the background color, where a contrast between the page content color and the background color is greater than or equal to a first threshold;
and the setting unit is used for carrying out color setting on the target content according to the page content color.
Optionally, the page corresponding to the application includes N regions, where N is an integer greater than or equal to 1, and the first determining unit is configured to:
and determining the page content color of each of the N areas according to the background colors corresponding to the N areas respectively, wherein the N areas comprise a first area, and the contrast between the background color of the first area and the page content color of the first area is greater than or equal to the first threshold.
Optionally, the apparatus further comprises:
the second determining unit is used for determining one or more of transparency, brightness and saturation of the page content color;
the setting unit is configured to:
and carrying out color setting on the target content according to the page content color and one or more of the transparency, the brightness and the saturation.
Optionally, the setting unit is configured to:
performing color setting on the target content displayed in each region according to the page content color corresponding to each region, wherein: the color of the target content displayed in the first area is set as the page content color corresponding to the first area.
Optionally, the target content includes any one or more of the following:
interactive content, subtitles, and text.
Optionally, the interactive content includes any one or more of the following items:
chat messages and moving barrages.
Optionally, the background color of the target content in the page corresponding to the application program includes:
a color of background content displayed in the page concurrently with the target content, the background content comprising: pictures, or, alternatively, video frames.
Optionally, a color combination of the background color and the page content color conforms to a visual protection mode.
In a third aspect, an application setting apparatus is provided in an embodiment of the present application, including a memory, and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by the one or more processors, and the one or more programs include instructions for:
acquiring a background color of target content in a page corresponding to an application program;
determining the page content color of the application program according to the background color, wherein the contrast between the page content color and the background color is greater than or equal to a first threshold;
and carrying out color setting on the target content according to the page content color.
Optionally, the page corresponding to the application includes N regions, where N is an integer greater than or equal to 1, and determining the page content color of the application according to the background color includes:
and determining the page content color of each of the N areas according to the background colors corresponding to the N areas respectively, wherein the N areas comprise a first area, and the contrast between the background color of the first area and the page content color of the first area is greater than or equal to the first threshold.
Optionally, the operations further include:
determining one or more of transparency, brightness and saturation of the page content color;
and performing color setting on the target content according to the page content color, wherein the color setting comprises the following steps:
and carrying out color setting on the target content according to the page content color and one or more of the transparency, the brightness and the saturation.
Optionally, the performing color setting on the target content according to the page content color includes:
performing color setting on the target content displayed in each region according to the page content color corresponding to each region, wherein: the color of the target content displayed in the first area is set as the page content color corresponding to the first area.
Optionally, the target content includes any one or more of the following:
interactive content, subtitles, and text.
Optionally, the interactive content includes any one or more of the following items:
chat messages and moving barrages.
Optionally, the background color of the target content in the page corresponding to the application program includes:
a color of background content displayed in the page concurrently with the target content, the background content comprising: pictures, or, alternatively, video frames.
Optionally, a color combination of the background color and the page content color conforms to a visual protection mode.
In a fourth aspect, embodiments of the present application provide a computer-readable medium having stored thereon instructions, which, when executed by one or more processors, cause an apparatus to perform the method of any of the above first aspects.
Compared with the prior art, the embodiment of the application has the following advantages:
the embodiment of the application provides an application setting method, and specifically, in order to enable a user to clearly view target content in a page corresponding to an application, a background color of the target content may be obtained, and then, a page content color of the application is determined according to the obtained background color. Wherein the determined contrast between the page content color and the background color is greater than or equal to a first threshold. In other words, the contrast between the page content color and the background color is relatively large. After the page content color of the application program is determined, color setting may be performed on the target content according to the page content color, so that the color of the target content is the determined page content color. Because the contrast ratio between the page content color and the background color is relatively large, the user can clearly see the target content. Therefore, by the aid of the application program, user experience of the application program can be effectively improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic flowchart of an application setting method according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of an application setting apparatus according to an embodiment of the present disclosure;
fig. 3 is a schematic structural diagram of a client according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a server according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The inventor of the present application finds, through research, that for an application program, if colors of different contents displayed in a page corresponding to the application program are relatively close, that is, the color contrast is relatively low, it is not favorable for a user to view a part of the contents in the page.
In one example, for an instant messaging application, its page may display background pictures and interactive content. For example, the user may select a favorite picture as the background picture. At this time, if the contrast between the color of the background picture and the color of the interactive content is small, the user may not be able to clearly see the interactive content. The interactive content referred to herein may include, for example, chat messages.
In yet another example, for applications such as forums or posts, the pages may have corresponding background pictures as with instant messaging applications. If the contrast between the color of the background picture and the color of the text is small, the user may not be able to see the text clearly. Wherein the text may comprise, for example, characters or graphics. The characters mentioned herein may include, for example, chinese characters, english characters, operation symbols, numerals, punctuation marks and other symbols, which are not illustrated herein.
In another example, for a video-type or live-type application, interactive content and subtitles may be displayed on a page in addition to video frames. The interactive content may include, for example, a barrage. If the contrast between the subtitle color and the video frame color is small, the subtitle may not be seen clearly by the user, and similarly, if the contrast between the bullet screen and the video frame color is small, the bullet screen may not be seen clearly by the user.
In order to solve the above problems, embodiments of the present application provide an application setting method and apparatus, and various non-limiting embodiments of the present application are described in detail below with reference to the accompanying drawings.
Exemplary method
Referring to fig. 1, fig. 1 is a schematic flowchart of an application setting method according to an embodiment of the present application. The method shown in fig. 1 may be performed, for example, by a device installed with application software, where the device mentioned herein includes, but is not limited to, a terminal device and a server. The terminal device mentioned here may be, for example, a desktop computer.
In this embodiment, the method may comprise, for example, the following steps S101-S103.
S101: and acquiring the background color of the target content in the page corresponding to the application program.
The application programs mentioned in the embodiments of the present application may be existing application programs, or may be application programs currently being developed or possibly developed in the future.
The application program is not particularly limited in the embodiment of the present application, and the application program may be a social application program, such as an instant messaging application program, a forum, a sticker bar, and the like, and the application program may also be a video application program, such as a video playing application program or a live broadcast application program.
The page corresponding to the application mentioned herein refers to one of the pages displayed after the application is called. Taking an instant messaging application as an example, the page may be a main page of the instant messaging application or a chat page, and the embodiment of the present application is not particularly limited.
The target content is not particularly limited in the embodiments of the present application, and in one example, the target content may include any one or more of interactive content, subtitles, and a text. In one example, the target content may be determined according to the application.
In one example, when the application is an instant messaging application, the target content may include interactive content, for example, and in this case, the interactive content may be a chat message, for example.
In yet another example, when the application is a forum, post, etc. application, the target content may include, for example, a body in the page, where the body in the page may include characters and graphics.
In another example, when the application is a video-type application, the target content may include subtitles and/or interactive content, and in this case, the interactive content may include a bullet screen, for example, wherein the bullet screen is movable. The moving track of the bullet screen is not specifically limited in the embodiment of the application, and the moving track of the bullet screen can be from right to left, or left to right, or from top to bottom or from bottom to top, for example. In addition, the size of the bullet screen can be enlarged or reduced during moving. The moving track of the bullet screen can also be various combinations of arcs, curves, launchers and the like.
The background color of the target content refers to a color of background content displayed in the page simultaneously with the target content.
It should be noted that, for the instant messaging application program and the application programs such as forums and posts, the background content may be, for example, a background picture. Namely: the background color of the target content may be a color of a background picture corresponding to the page. For video-like applications, the background content may be video frames. Namely: the background color of the target content may be a color of a video frame displayed on the page.
The background color may comprise one or more colors. For example, for a solid background picture, the background color may comprise only one color, and for a more colorful background picture or video frame, the background color may comprise a plurality of colors. In one example, for a background picture with multiple colors, a subject color of the multiple colors may also be determined as the background color. The theme color may be a color that occupies the largest number of pixels among the plurality of colors. For example, the background color includes 3 colors, which are blue, purple, and gray, respectively, and the subject color is blue when the number of pixels occupied by blue is the largest.
S102: and determining the page content color of the application program according to the background color, wherein the contrast between the page content color and the background color is greater than or equal to a first threshold value.
S103: and carrying out color setting on the target content according to the page content color.
In the embodiment of the present application, after obtaining the background color of the target content, in order to distinguish the target content from the background content of the target content, a page content color of the application program may be automatically determined according to the background color, for example, according to the theme color, and a contrast between the page content color and the background color is greater than or equal to a first threshold, that is, the contrast between the page content color and the background color is relatively large. After determining the page content color of the application program, color setting may be performed on the target content according to the determined page content color, that is: and setting the color of the target content according to the page content color, so that the color of the target content after setting is the same as the determined page content color.
In one example, in a specific implementation, after the background color is obtained, the S102 may go through various colors, and respectively calculate the contrast between each color and the background color, so as to determine the page content color with the contrast greater than or equal to the first threshold value with respect to the background color. For example, if the background color is light green, the determined page content color is black.
In another example, in a specific implementation, the contrast between the colors may be calculated and stored in advance, and then the page content color with the contrast with the background color greater than or equal to the first threshold value may be determined according to the contrast between the colors.
In another example, a color library including a correspondence between a background color and a page content color may be constructed in advance according to a contrast between respective colors. For this case, S102 may determine the page content color according to the background color and the color library in specific implementation. It is to be understood that a plurality of pairs of correspondences between the background colors and the page content colors may be included in the color library, and the contrast between two colors included in each pair of correspondences is greater than or equal to the first threshold. The correspondence relationship can be understood in conjunction with table 1.
TABLE 1
Background color Page content color
Color 1 Color 2
Color 3 Color 4
In one example, if the background color of the target content is color 1, then the page content color of the application may be determined to be color 2 according to table 1.
It should be noted that table 1 is shown only for convenience of understanding, and does not limit the embodiments of the present application.
As can be seen from the above description, with the present solution, according to the background color of the target content, the page content color with higher contrast with the background color can be determined adaptively, and the color of the target content can be set as the determined page content color. Therefore, the contrast ratio between the color of the target content and the color of the background content of the target content is relatively large, so that the user can clearly view the target content, and the user experience is improved.
In one example, to further enhance the user experience, the color combination of the background color and the page content color may conform to a visual protection mode, and as such, the eyes of the user may be prevented from being injured while ensuring that the user can clearly view the target content.
As before, the background color of the target content may include a plurality of colors. It is understood that the contrast between the plurality of colors may be relatively high, and if the page content color is determined according to the subject color of the plurality of colors, the determined page content color may be relatively close to a part of the plurality of colors, thereby affecting the user's view of the target content. Therefore, in an example, for N regions in a page corresponding to the application program, the page content colors of the N regions may be respectively determined according to the background colors respectively corresponding to the N regions, so that the page content color of each region is distinguished from the background color of the corresponding region, and thus a user may clearly view target content displayed in each region. N as referred to herein is an integer greater than 1.
For convenience of description, any one of the N regions is referred to as a "first region", and the page content color of the first region may be determined according to the background color of the target content of the first region, and the contrast between the determined page content color of the first region and the background color of the target content of the first region is greater than or equal to the first threshold. Regarding the specific implementation of "determining the page content color of the first region according to the background color of the target content of the first region", reference may be made to the above description section of the specific implementation of S102, and a description thereof is not repeated here. In this way, even if the contrast ratio between the plurality of colors included in the background color itself is relatively high, the user can clearly view the target content displayed in each area, and therefore, the user experience can be effectively improved in this way.
Correspondingly, in S103, "perform color setting on the target content according to the page content color", in a specific implementation, color setting may be performed on the target content displayed in each region according to the page content color corresponding to each region. Taking the first area as an example, when color setting is performed on target content displayed in the first area, the color of the target content displayed in the first area is set to be the page content color corresponding to the first area. For example, if the page content color corresponding to the first area is blue, and the target content is a bullet screen, the color of the bullet screen displayed in the first area may be set to be blue.
It is understood that the display position of the target content in the page may be changed. For example, for an instant messaging application, the location of interactive content (e.g., chat messages) displayed on a page may change as the chat progresses. As another example, for a video-like application, a bullet screen may move through a page. For another example, for forum, post applications, a user may change the display position of a portion of text (e.g., a paragraph) in a page via a progress bar or the like.
By using the scheme, for the communication application program, the position of the interactive content, such as the chat message, in the page can be changed, for example, at the first moment, the chat message a is located in the area a in the page, the color of the page content corresponding to the area a is black, and at the first moment, the color of the chat message a is black. With the advance of the chat process, the chat message a is located in the area B of the page, the color of the page content corresponding to the area B is blue, and at the second moment, the color of the chat message a is blue. Therefore, according to the scheme, for a certain chat message, as the display position of the chat message in the page is changed, the color of the chat message can also be changed, so that the color is distinguished from the background color of the display area of the chat message, and the user experience is effectively improved.
Similarly, for applications such as forums or posts, the position of a certain part of the text in the page may change, for example, at a first time, the paragraph a is located in the area a of the page, the page content color corresponding to the area a is black, and at the first time, the color of the paragraph a is black. As the browsing process of the user advances, the paragraph a is located in the area B of the page, and the page content color corresponding to the area B is blue, and at the second time, the color of the paragraph a is blue. Therefore, according to the scheme, as for the text of a certain part, the color of the text can be changed along with the change of the display position of the text in the page, so that the color is distinguished from the background color of the display area of the text, and the user experience is effectively improved.
Similarly, for a video application, the bullet screen is movable, that is, the position of the bullet screen in the page may be changed, for example, at a first time, the bullet screen a is located in an area a of the page, the color of the page content corresponding to the area a is black, and at the first time, the color of the bullet screen a is black. And at the second moment, the bullet screen A moves to an area B in the page, the color of the page content corresponding to the area B is blue, and at the second moment, the color of the bullet screen A is blue. Therefore, by the adoption of the scheme, for the bullet screen, as the display position of the bullet screen in the page changes, the color of the bullet screen can also change, so that the color is separated from the background color of the display area of the bullet screen, and the user experience is effectively improved.
In some embodiments, considering that transparency, brightness, and saturation of a page content color may affect the visual effect for that page content color, in one example, one or more of the transparency, brightness, and saturation of the page content color may be determined in addition to the page content color. Accordingly, when performing color setting on the target content, the color of the target content may be set according to one or more of transparency, brightness, and saturation of the page content color, and the page content color. For example, if the page content color is red, the transparency is 90%, the brightness is 70%, and the saturation is 30%, the color of the target content may be set according to red, the transparency is 90%, the brightness is 70%, and the saturation is 30%.
It should be noted that, in the embodiment of the present application, specific values of the transparency, brightness, and saturation of the page content color are not limited herein, and the transparency, brightness, and saturation of the page content color may be, for example, an empirical value, or may be set by a user, and is not limited herein.
It will be appreciated that the color of the background content displayed in the page may change for the application. For example, the background image may be replaceable for instant messaging applications as well as forum and post applications. For another example, in a video application, when a video frame is switched, the color of the background content may change.
In order to enable the color of the target content to be distinguished from the background color of the target content when the color of the background content displayed in the page is changed, so as to effectively improve the user experience, in an implementation manner of the embodiment of the application, the device installed with the application program may periodically execute the method. The period is not particularly limited in the embodiments of the present application, and in one example, for a video-type application, the period may be determined according to a switching frequency of a video frame. For example, the above method is performed once every time a video frame is switched. In this way, the color of the target content displayed on each frame of video frame can be distinguished from the color of the video frame, so that the user can clearly view the target content at any time (i.e. when playing any video frame). In another example, for instant messaging applications and forum and post applications, the above method may be performed upon detecting a change in the background image. So that when the background image changes, the color of the target content can be adapted to change along with the change of the background image, thereby enabling the user to clearly view the target content.
Exemplary device
Based on the method provided by the above embodiment, the embodiment of the present application further provides an apparatus, which is described below with reference to the accompanying drawings.
Referring to fig. 2, this figure is a schematic structural diagram of an application setting apparatus according to an embodiment of the present application. The apparatus 200 may specifically include, for example: an acquisition unit 201, a first determination unit 202, and a setting unit 203.
An obtaining unit 201, configured to obtain a background color of target content in a page corresponding to an application;
a first determining unit 202, configured to determine a page content color of the application according to the background color, where a contrast between the page content color and the background color is greater than or equal to a first threshold;
a setting unit 203, configured to perform color setting on the target content according to the page content color.
Optionally, the page corresponding to the application includes N regions, where N is an integer greater than or equal to 1, and the first determining unit 202 is configured to:
and determining the page content color of each of the N areas according to the background colors corresponding to the N areas respectively, wherein the N areas comprise a first area, and the contrast between the background color of the first area and the page content color of the first area is greater than or equal to the first threshold.
Optionally, the apparatus further comprises:
the second determining unit is used for determining one or more of transparency, brightness and saturation of the page content color;
the setting unit 203 is configured to:
and carrying out color setting on the target content according to the page content color and one or more of the transparency, the brightness and the saturation.
Optionally, the setting unit 203 is configured to:
performing color setting on the target content displayed in each region according to the page content color corresponding to each region, wherein: the color of the target content displayed in the first area is set as the page content color corresponding to the first area.
Optionally, the target content includes any one or more of the following:
interactive content, subtitles, and text.
Optionally, the interactive content includes any one or more of the following items:
chat messages and moving barrages.
Optionally, the background color of the target content in the page corresponding to the application program includes:
a color of background content displayed in the page concurrently with the target content, the background content comprising: pictures, or, alternatively, video frames.
Optionally, a color combination of the background color and the page content color conforms to a visual protection mode.
Since the apparatus 200 is an apparatus corresponding to the method provided in the above method embodiment, and the specific implementation of each unit of the apparatus 200 is the same as that of the above method embodiment, for the specific implementation of each unit of the apparatus 200, reference may be made to the description part of the above method embodiment, and details are not repeated here.
The method provided by the embodiment of the present application may be executed by a client or a server, and the client and the server that execute the method are described below separately.
Fig. 3 shows a block diagram of a client 300. For example, the client 300 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, and the like.
Referring to fig. 3, client 300 may include one or more of the following components: processing component 302, memory 304, power component 306, multimedia component 308, audio component 310, input/output (I/O) interface 33, sensor component 314, and communication component 316.
The processing component 302 generally controls overall operation of the client 300, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing elements 302 may include one or more processors 320 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 302 can include one or more modules that facilitate interaction between the processing component 302 and other components. For example, the processing component 302 can include a multimedia module to facilitate interaction between the multimedia component 308 and the processing component 302.
The memory 304 is configured to store various types of data to support operations at the client 300. Examples of such data include instructions for any application or method operating on the client 300, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 304 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
The power component 306 provides power to the various components of the client 300. The power components 306 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the client 300.
The multimedia component 308 comprises a screen providing an output interface between the client 300 and the user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 308 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the client 300 is in an operation mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 310 is configured to output and/or input audio signals. For example, the audio component 310 includes a Microphone (MIC) configured to receive external audio signals when the client 300 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 304 or transmitted via the communication component 316. In some embodiments, audio component 310 also includes a speaker for outputting audio signals.
The I/O interface provides an interface between the processing component 302 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Sensor component 314 includes one or more sensors for providing status assessment of various aspects to client 300. For example, sensor component 314 may detect an open/closed state of device 300, the relative positioning of components, such as a display and keypad of client 300, sensor component 314 may also detect a change in the position of client 300 or a component of client 300, the presence or absence of user contact with client 300, client 300 orientation or acceleration/deceleration, and a change in the temperature of client 300. Sensor assembly 314 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 314 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 314 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 316 is configured to facilitate communications between the client 300 and other devices in a wired or wireless manner. The client 300 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication section 316 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 316 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the client 300 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the following methods:
acquiring a background color of target content in a page corresponding to an application program;
determining the page content color of the application program according to the background color, wherein the contrast between the page content color and the background color is greater than or equal to a first threshold;
and carrying out color setting on the target content according to the page content color.
Optionally, the page corresponding to the application includes N regions, where N is an integer greater than or equal to 1, and determining the page content color of the application according to the background color includes:
and determining the page content color of each of the N areas according to the background colors corresponding to the N areas respectively, wherein the N areas comprise a first area, and the contrast between the background color of the first area and the page content color of the first area is greater than or equal to the first threshold.
Optionally, the method further includes:
determining one or more of transparency, brightness and saturation of the page content color;
and performing color setting on the target content according to the page content color, wherein the color setting comprises the following steps:
and carrying out color setting on the target content according to the page content color and one or more of the transparency, the brightness and the saturation.
Optionally, the performing color setting on the target content according to the page content color includes:
performing color setting on the target content displayed in each region according to the page content color corresponding to each region, wherein: the color of the target content displayed in the first area is set as the page content color corresponding to the first area.
Optionally, the target content includes any one or more of the following:
interactive content, subtitles, and text.
Optionally, the interactive content includes any one or more of the following items:
chat messages and moving barrages.
Optionally, the background color of the target content in the page corresponding to the application program includes:
a color of background content displayed in the page concurrently with the target content, the background content comprising: pictures, or, alternatively, video frames.
Optionally, a color combination of the background color and the page content color conforms to a visual protection mode.
Fig. 4 is a schematic structural diagram of a server in an embodiment of the present application. The server 400 may vary significantly due to configuration or performance, and may include one or more Central Processing Units (CPUs) 422 (e.g., one or more processors) and memory 432, one or more storage media 430 (e.g., one or more mass storage devices) storing applications 442 or data 444. Wherein the memory 432 and storage medium 430 may be transient or persistent storage. The program stored on the storage medium 430 may include one or more modules (not shown), each of which may include a series of instruction operations for the server. Still further, the central processor 422 may be arranged to communicate with the storage medium 430, and execute a series of instruction operations in the storage medium 430 on the server 400.
Still further, the central processor 422 may perform the following method:
acquiring a background color of target content in a page corresponding to an application program;
determining the page content color of the application program according to the background color, wherein the contrast between the page content color and the background color is greater than or equal to a first threshold;
and carrying out color setting on the target content according to the page content color.
Optionally, the page corresponding to the application includes N regions, where N is an integer greater than or equal to 1, and determining the page content color of the application according to the background color includes:
and determining the page content color of each of the N areas according to the background colors corresponding to the N areas respectively, wherein the N areas comprise a first area, and the contrast between the background color of the first area and the page content color of the first area is greater than or equal to the first threshold.
Optionally, the method further includes:
determining one or more of transparency, brightness and saturation of the page content color;
and performing color setting on the target content according to the page content color, wherein the color setting comprises the following steps:
and carrying out color setting on the target content according to the page content color and one or more of the transparency, the brightness and the saturation.
Optionally, the performing color setting on the target content according to the page content color includes:
performing color setting on the target content displayed in each region according to the page content color corresponding to each region, wherein: the color of the target content displayed in the first area is set as the page content color corresponding to the first area.
Optionally, the target content includes any one or more of the following:
interactive content, subtitles, and text.
Optionally, the interactive content includes any one or more of the following items:
chat messages and moving barrages.
Optionally, the background color of the target content in the page corresponding to the application program includes:
a color of background content displayed in the page concurrently with the target content, the background content comprising: pictures, or, alternatively, video frames.
Optionally, a color combination of the background color and the page content color conforms to a visual protection mode.
The server 400 may also include one or more power supplies 426, one or more wired or wireless network interfaces 450, one or more input-output interfaces 456, one or more keyboards 456, and/or one or more operating systems 441, such as Windows Server, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, and so forth.
Embodiments of the present application also provide a computer-readable medium having stored thereon instructions, which, when executed by one or more processors, cause an apparatus to perform the application setting method provided by the above method embodiments.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice in the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the attached claims
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. An application setting method, characterized in that the method comprises:
acquiring a background color of target content in a page corresponding to an application program;
determining the page content color of the application program according to the background color, wherein the contrast between the page content color and the background color is greater than or equal to a first threshold;
and carrying out color setting on the target content according to the page content color.
2. The method according to claim 1, wherein the page corresponding to the application includes N regions, N is an integer greater than or equal to 1, and determining the page content color of the application according to the background color includes:
and determining the page content color of each of the N areas according to the background colors corresponding to the N areas respectively, wherein the N areas comprise a first area, and the contrast between the background color of the first area and the page content color of the first area is greater than or equal to the first threshold.
3. The method of claim 1, further comprising:
determining one or more of transparency, brightness and saturation of the page content color;
and performing color setting on the target content according to the page content color, wherein the color setting comprises the following steps:
and carrying out color setting on the target content according to the page content color and one or more of the transparency, the brightness and the saturation.
4. The method of claim 2, wherein the color setting the target content according to the page content color comprises:
performing color setting on the target content displayed in each region according to the page content color corresponding to each region, wherein: the color of the target content displayed in the first area is set as the page content color corresponding to the first area.
5. The method of any one of claims 1-3, wherein the target content comprises any one or more of:
interactive content, subtitles, and text.
6. The method of claim 5, wherein the interactive content comprises any one or more of:
chat messages and moving barrages.
7. The method of claim 1, wherein the background color of the target content in the page corresponding to the application program comprises:
a color of background content displayed in the page concurrently with the target content, the background content comprising: pictures, or, alternatively, video frames.
8. An application setting apparatus, characterized in that the apparatus comprises:
the device comprises an acquisition unit, a display unit and a display unit, wherein the acquisition unit is used for acquiring the background color of target content in a page corresponding to an application program;
a first determining unit, configured to determine a page content color of the application according to the background color, where a contrast between the page content color and the background color is greater than or equal to a first threshold;
and the setting unit is used for carrying out color setting on the target content according to the page content color.
9. An application setting apparatus comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory, and wherein the one or more programs configured to be executed by the one or more processors comprise instructions for:
acquiring a background color of target content in a page corresponding to an application program;
determining the page content color of the application program according to the background color, wherein the contrast between the page content color and the background color is greater than or equal to a first threshold;
and carrying out color setting on the target content according to the page content color.
10. A computer-readable medium having stored thereon instructions, which when executed by one or more processors, cause an apparatus to perform the method of any one of claims 1 to 7.
CN202011627988.6A 2020-12-30 2020-12-30 Application program setting method and device Pending CN112698901A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011627988.6A CN112698901A (en) 2020-12-30 2020-12-30 Application program setting method and device
PCT/CN2021/103568 WO2022142222A1 (en) 2020-12-30 2021-06-30 Method and apparatus for setting application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011627988.6A CN112698901A (en) 2020-12-30 2020-12-30 Application program setting method and device

Publications (1)

Publication Number Publication Date
CN112698901A true CN112698901A (en) 2021-04-23

Family

ID=75513355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011627988.6A Pending CN112698901A (en) 2020-12-30 2020-12-30 Application program setting method and device

Country Status (2)

Country Link
CN (1) CN112698901A (en)
WO (1) WO2022142222A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022142222A1 (en) * 2020-12-30 2022-07-07 北京搜狗科技发展有限公司 Method and apparatus for setting application program

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116932118B (en) * 2023-09-11 2024-01-30 广州中望龙腾软件股份有限公司 Color adjustment method and device for graphic primitive, computer equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508666A (en) * 2011-11-11 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting application prompt message in application program
CN104317869A (en) * 2014-10-17 2015-01-28 小米科技有限责任公司 Instant-messaging-based background setting method and device
CN106126725A (en) * 2016-06-30 2016-11-16 北京小米移动软件有限公司 Page display method and device
CN106557294A (en) * 2016-11-24 2017-04-05 北京小米移动软件有限公司 Color adjustment method and device
CN111614993A (en) * 2020-04-30 2020-09-01 腾讯科技(深圳)有限公司 Barrage display method and device, computer equipment and storage medium
CN112102765A (en) * 2020-09-02 2020-12-18 维沃移动通信有限公司 Display parameter adjusting method and device and electronic equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107170016A (en) * 2017-07-25 2017-09-15 京东方科技集团股份有限公司 A kind of image processing method, image processing system and display panel
CN111090368B (en) * 2019-12-30 2021-09-14 北京奇艺世纪科技有限公司 Color matching method and device for determining page characters
CN112069339A (en) * 2020-09-04 2020-12-11 北京字节跳动网络技术有限公司 Background picture processing and search result display method, device, equipment and medium
CN112698902A (en) * 2020-12-30 2021-04-23 北京搜狗科技发展有限公司 Application program setting method and device
CN112698901A (en) * 2020-12-30 2021-04-23 北京搜狗科技发展有限公司 Application program setting method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508666A (en) * 2011-11-11 2012-06-20 宇龙计算机通信科技(深圳)有限公司 Method and device for adjusting application prompt message in application program
CN104317869A (en) * 2014-10-17 2015-01-28 小米科技有限责任公司 Instant-messaging-based background setting method and device
CN106126725A (en) * 2016-06-30 2016-11-16 北京小米移动软件有限公司 Page display method and device
CN106557294A (en) * 2016-11-24 2017-04-05 北京小米移动软件有限公司 Color adjustment method and device
CN111614993A (en) * 2020-04-30 2020-09-01 腾讯科技(深圳)有限公司 Barrage display method and device, computer equipment and storage medium
CN112102765A (en) * 2020-09-02 2020-12-18 维沃移动通信有限公司 Display parameter adjusting method and device and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
九天科技: "《Photoshop CC照片处理从新手到高手 全彩图解视频版》", 31 July 2014 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022142222A1 (en) * 2020-12-30 2022-07-07 北京搜狗科技发展有限公司 Method and apparatus for setting application program

Also Published As

Publication number Publication date
WO2022142222A1 (en) 2022-07-07

Similar Documents

Publication Publication Date Title
CN107544809B (en) Method and device for displaying page
US9591256B2 (en) Methods and devices for video communication
US9674395B2 (en) Methods and apparatuses for generating photograph
US10212386B2 (en) Method, device, terminal device, and storage medium for video effect processing
CN105786507B (en) Display interface switching method and device
US11545188B2 (en) Video processing method, video playing method, devices and storage medium
CN107229411B (en) Method and device for controlling split screen state
US20220417417A1 (en) Content Operation Method and Device, Terminal, and Storage Medium
CN110262692B (en) Touch screen scanning method, device and medium
CN113382270B (en) Virtual resource processing method and device, electronic equipment and storage medium
CN112698901A (en) Application program setting method and device
CN109992119B (en) Display method, device and equipment of input method interface
CN109947506B (en) Interface switching method and device and electronic equipment
CN107729098B (en) User interface display method and device
CN112929561A (en) Multimedia data processing method and device, electronic equipment and storage medium
CN107566878B (en) Method and device for displaying pictures in live broadcast
CN107105311B (en) Live broadcasting method and device
CN111698532B (en) Bullet screen information processing method and device
CN108650412B (en) Display method, display device and computer readable storage medium
CN112445348A (en) Expression processing method, device and medium
CN114356476B (en) Content display method, content display device, electronic equipment and storage medium
CN112698902A (en) Application program setting method and device
TW201918852A (en) Interface displaying method and device
CN113157178B (en) Information processing method and device
CN112765511B (en) Business object display method, device, equipment, storage medium and program product

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