CN103631581B - The method and device of highlight color is set - Google Patents
The method and device of highlight color is set Download PDFInfo
- Publication number
- CN103631581B CN103631581B CN201310535193.6A CN201310535193A CN103631581B CN 103631581 B CN103631581 B CN 103631581B CN 201310535193 A CN201310535193 A CN 201310535193A CN 103631581 B CN103631581 B CN 103631581B
- Authority
- CN
- China
- Prior art keywords
- color
- domain
- highlight color
- highlight
- paintbrush
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 66
- 230000008569 process Effects 0.000 claims description 9
- 230000005540 biological transmission Effects 0.000 claims description 3
- 230000004048 modification Effects 0.000 description 32
- 238000012986 modification Methods 0.000 description 32
- 230000006870 function Effects 0.000 description 27
- 230000008859 change Effects 0.000 description 10
- 239000003973 paint Substances 0.000 description 7
- 230000000694 effects Effects 0.000 description 6
- 235000000177 Indigofera tinctoria Nutrition 0.000 description 4
- 229940097275 indigo Drugs 0.000 description 4
- COHYTHOBJLSHDF-UHFFFAOYSA-N indigo powder Natural products N1C2=CC=CC=C2C(=O)C1=C1C(=O)C2=CC=CC=C2N1 COHYTHOBJLSHDF-UHFFFAOYSA-N 0.000 description 4
- 238000012546 transfer Methods 0.000 description 4
- 230000006399 behavior Effects 0.000 description 3
- 230000008901 benefit Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 3
- 239000003086 colorant Substances 0.000 description 3
- 238000009434 installation Methods 0.000 description 3
- VAYOSLLFUXYJDT-RDTXWAMCSA-N Lysergic acid diethylamide Chemical compound C1=CC(C=2[C@H](N(C)C[C@@H](C=2)C(=O)N(CC)CC)C2)=C3C2=CNC3=C1 VAYOSLLFUXYJDT-RDTXWAMCSA-N 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 2
- 238000004590 computer program Methods 0.000 description 2
- 230000001276 controlling effect Effects 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 239000000243 solution Substances 0.000 description 2
- 241000208340 Araliaceae Species 0.000 description 1
- 235000005035 Panax pseudoginseng ssp. pseudoginseng Nutrition 0.000 description 1
- 235000003140 Panax quinquefolius Nutrition 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001035 drying Methods 0.000 description 1
- 235000008434 ginseng Nutrition 0.000 description 1
- 238000002347 injection Methods 0.000 description 1
- 239000007924 injection Substances 0.000 description 1
- 238000011900 installation process Methods 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000001105 regulatory effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000000638 stimulation Effects 0.000 description 1
Abstract
The invention discloses a kind of method for setting highlight color, applied in the equipment or system that possess highlighted function, including:Reflection obtains the domain of the highlight color object in web displaying control;Generate the paintbrush object of pre-configured color and be transferred in the domain of the highlight color object, to set corresponding highlight color.The problem of more difficult adjustment in highlight color part can solve the problem that using the present invention.
Description
Technical field
The present invention relates to internet arena, and in particular to a kind of method and device for setting highlight color.
Background technology
With the fast development of internet arena, how to increase the setting of more hommizations in the product in terms of internet
Start more and more to be paid attention to.And the setting of highlight color is always the portion of more difficult adjustment in the related setting of browser
Point.What the color of high bright part was usually fixed, when finger or mouse press down against high bright part, color there will not be change
It is dynamic.In addition to high bright part, the color client of other parts can directly adjust according to the instruction of user.
The more difficult adjustment in highlight color part, mainly due to many browser control parts(Such as network browsing(WebView)Control
Part)It is the adjustment for not supporting highlight color, unless customizing browser kernel again(Such as WebKit kernels).Or use net
The authority of page designer carries out the adjustment of highlight color part, is specifically set that is, only designing the author of the webpage and meeting
It is standby just to may specify its color, it is difficult to adjust from client realization.
In summary, prior art can not realize personalized customization for highlight color part to user, but fixed
, pre-seted.If the highlight color effect pre-seted is bad, user also can not directly change.
The content of the invention
In view of the above problems, it is proposed that the present invention so as to provide one kind overcome above mentioned problem or at least in part solve on
State the device of the setting highlight color of problem and the corresponding method that highlight color is set.
According to one aspect of the present invention, there is provided a kind of method that highlight color is set, applied to possessing highlighted function
Equipment or system in, including:
Reflection obtains the domain of the highlight color object in web displaying control;
Generate the paintbrush object of pre-configured color and be transferred in the domain of the highlight color object, it is corresponding high to set
Bright color.
Alternatively, after the domain of the acquisition highlight color object, in addition to:
The domain of the highlight color object is arranged to addressable open domain.
Alternatively, the domain by the highlight color object is arranged to addressable open domain, including:
The setAccessible parameters in the domain of the highlight color object are revised as true.
Alternatively, the color parameter of the pre-configured color is hexadecimal color value, including RGB and opacity.
Alternatively, the highlight color generates in drawing process.
According to another aspect of the present invention, there is provided a kind of device that highlight color is set, applied to possessing highlighted work(
In the equipment or system of energy, including:
Acquisition module, it is configured to the domain that reflection obtains the highlight color object in web displaying control;
Color setup module, configuration generate the paintbrush object of pre-configured color and are transferred to the domain of the highlight color object
In, to set corresponding highlight color.
Alternatively, said apparatus also includes:
Domain setup module, it is configured to the domain for the highlight color object that the acquisition module obtains being arranged to addressable public affairs
Open domain.
Alternatively, the domain setup module is additionally configured to the setAccessible ginsengs in the domain of the highlight color object
Number is revised as true.
Alternatively, the color parameter of the pre-configured color is hexadecimal color value, including RGB and opacity.
Alternatively, the highlight color generates in drawing process.
In embodiments of the present invention, using paintbrush object by pre-configured color transfer into the domain of highlighted color object, if
Put corresponding highlight color.The modification kernel mentioned relative to prior art or the authority modification color using Web page maker
Mode, method provided in an embodiment of the present invention need not change the component of platform in itself, versatile, suitable for various differences
Version platform, reduce occur because of the probability for the problem of incompatible version causes function not realize.Further, using this hair
The method that bright embodiment provides need not increase control in relevant device or system and be installed, and save flow, and can save
Save increases the memory space of control for modification highlight color in the prior art, improves the speed of color modification.Also, using pre-
The paintbrush object of configuration color can arbitrarily change color according to the selection of user or other demands, will not be changed in each color
When all redefine and refresh webpage, the performance of equipment or system corresponding to raising.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention,
And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can
Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, it is various other the advantages of and benefit it is common for this area
Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention
Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows the process chart of the method for setting highlight color according to an embodiment of the invention;
Fig. 2 shows the establishment portion split flow signal of the method for setting highlight color according to an embodiment of the invention
Figure;
Fig. 3 shows the drafting schematic flow sheet of the method for setting highlight color according to an embodiment of the invention;With
And
Fig. 4 shows the structural representation of the device of setting highlight color according to an embodiment of the invention.
Embodiment
Algorithm and display be not inherently related to any certain computer, virtual system or miscellaneous equipment provided herein.
Various general-purpose systems can also be used together with teaching based on this.As described above, required by constructing this kind of system
Structure be obvious.In addition, the present invention is not also directed to any certain programmed language.It should be understood that it can utilize various
Programming language realizes the content of invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
Gradual perfect with browser market, " personalization " service is increasingly paid attention to by research and development of products department.In order to more
Good gives a kind of personalized viewing experience of user, and many products provide " replacing skin " this personalized service, and with this
Extend many practical functions, such as " Night ", obtained market and the good reflection of user, in optimization viewing experience
On, its importance has some idea of.
A most important function of skin is changed, the element exactly allowed outside webpage(Such as address field, hereinafter referred to as
" the outer element of webpage ")With the element inside webpage(Hereinafter referred to as " webpage interior element ")Pattern mutually echo, such as:The sample of skin
Formula is " pink colour memory ", then the element in webpage and outside webpage all should adjust the pattern being adapted with pink colour;If the most frequently used
" Night ", then it should be dark with the element outside webpage in webpage.
As example, the overall skin of " Night " is dead color, and tone is low key tone, with the energy when night lights are dark
Stimulation of the light tone to eyes is enough reduced, is a kind of quite practical function for a user.After " Night " is adjusted to, reason
Think under situation, the background in webpage and outside webpage is tuned into " indigo ", and element(Such as button, word)Then it is tuned into than indigo
Color slightly more shallow " royalblue ".In this case, if do not adjusted to highlight color, it is possible that following situation:
If it is close with background color to give tacit consent to highlight color, it is not easy to recognizes.For example, in some particular terminals or equipment, acquiescence is high
Bright color is light yellow, and background color is also to be undesirable compared with weak color, identification effect.
Referred in correlation technique, highlight color there are two kinds of adjustment modes at present, and one kind is modification kernel, and another kind is to use
The authority of Web page maker.Now two kinds of adjustment modes are analyzed respectively.
This mode of modification kernel browses generally as used in the browser of individualized customization WebKit controls, namely by modification
Device kernel component, changes highlight color in kernel, is then bundled into its application program installation kit to realize.Using this
Although method can realize the function of modification " highlight color " in most equipment, and in performance relatively preferably, in reality
On Product Experience, it is larger there is application program installation kit(Generally than without using the browser for changing customizing Web Kit components
To take 5MB to 6MB memory space more), can not use renewal system(Such as Android(Android))New feature etc. ask
Topic.
By taking Android as an example, modification this mode of kernel is by extracting Android WebKit components, then modification, again
The modes such as newly compiled, binding, the function of modification highlight color from bottom layer realization.Its specific implementation procedure includes:
Step 1, download corresponding A ndroid versions WebKit components complete source code;
Step 2, using realization(Or part is realized)The algorithm for changing kernel changes WebKit components;
Step 3, amended WebKit components are recompilated, generate Android dynamic link library files, usual this document
Size is 10MB;
Step 4, download corresponding A ndroid versions WebView controls complete source code;
Step 5, using realization(Or part is realized)The algorithm for changing kernel changes WebView controls;
Step 6, the amended WebView controls of step 5 and the amended WebKit components of first step 2 closed
Connection;
Step 7, amended WebKit components are added in the installation kit of the application program.
Although this method of modification kernel is applied to each platform, in Android platform(It is not excluded for other platforms)
" modification WebKit components " is needed just to be achieved, its main cause as described in correlation technique, do not support in itself by WebView controls
The adjustment of highlight color, unless remodifying WebKit components around WebView controls.And browser kernel component is usually to grasp
Make one of kernel of system, for compatible older Android operation system version, it is necessary to which use can be supported oldest
Webkit corresponding to Android versions(One product of browser kernel component, similarly hereinafter)Version, must just abandon or with
The modes such as adaptation realize the function of higher Android versions.
As the above analysis, the shortcomings that changing this mode of kernel mainly has:
1st, new system can not fully be used(Such as Android)The characteristic of version, influences Consumer's Experience;
2nd, the installation kit of mobile phone browser can increase a lot, generally 5MB to 6MB bytes, be unfavorable for its network
Circulation, and because installation kit is larger, installation process is slower;
3rd, there is certain risk in modification browser kernel component, increase the difficulty of exploitation and adaptation, it is possible to cause clear
Device of looking at collapses and is difficult to find concrete reason.
In addition to modification kernel this mode, also propose to utilize this side of Web page maker's authority modification highlight color above
Formula.Specifically, colour is flow into CSS(Cascading Style Sheet, Cascading Style Sheet)Among, it is self-defined to realize
The effect of website tone.By injecting CSS, namely by simulation browser user in address field injection script, and in CSS
Specify "-webkit-tap-highlight-color " attribute, Transfer Parameters RGB(RGB)Color value, CSS is injected into net
Page.During webpage is rendered, the browser kernel of " highlight color " modification is supported to will be considered that color is by " webpage development
Person " initiates modification, then is automatically regulated to be designated color.
But this mode there is also it is certain the problem of, it is specific as follows:
1st, webpage is opened every time to be required for injecting CSS, and inject each time and can mean that and redefine and refresh once net
Page, have no small consumption in performance;
2nd, at present, only iOS device, which discloses, supports this method, and is only applicable to " Web page developer ".And Android
Many equipment(Especially below Android4.0's)This function is not supported, versatility is not strong.
The problem of being existed based on prior art, the embodiment of the present invention realizes one kind and is being not injected into CSS or script, and does not repair
On the premise of changing browser kernel, the function of modification " highlight color " is realized.The welcome adjustment of color, transparency, not by
The limitation of equipment and Web page developer, is not affected not only in performance, and exploitation is more simple, and support most of platforms or
System or equipment(Such as Android).Because modification highlight color is a ring more important in personalized function, the invention is real
It is also more broad to apply the applicable scope of example, is not limited solely to the function and applications such as skin, any device for possessing highlighted function
Part or equipment or terminal or system etc. can be used.
Conceived based on foregoing invention, the embodiments of the invention provide a kind of method for setting highlight color, applied to possessing
In the equipment or system of highlighted function.Fig. 1 shows the place of the method for setting highlight color according to an embodiment of the invention
Manage flow chart.Referring to Fig. 1, this method comprises at least step S102 to step S104:
Step S102, reflection obtains the domain of the highlight color object in web displaying control;
Step S104, generate the paintbrush object of pre-configured color and be transferred in the domain of highlight color object, to set phase
The highlight color answered.
In embodiments of the present invention, using paintbrush object by pre-configured color transfer into the domain of highlighted color object, if
Put corresponding highlight color.The modification kernel mentioned relative to prior art or the authority modification color using Web page maker
Mode, method provided in an embodiment of the present invention need not change the component of platform in itself, versatile, suitable for various differences
Version platform, reduce occur because of the probability for the problem of incompatible version causes function not realize.Further, using this hair
The method that bright embodiment provides need not increase control in relevant device or system and be installed, and save flow, and can save
Save increases the memory space of control for modification highlight color in the prior art, improves the speed of color modification.Also, using pre-
The paintbrush object of configuration color can arbitrarily change color according to the selection of user or other demands, will not be changed in each color
When all redefine and refresh webpage, the performance of equipment or system corresponding to raising.
To ensure that the personal settings of highlight color can be realized according to user's request, the acquisition that step S102 is referred to highlights
After the domain of color object, the domain of highlight color object can be arranged to addressable open domain.For privately owned domain,
Open domain accessibility is stronger, it is easier to realizes the adjustable or controllable of highlight color, and then realizes that the personalization of highlight color is set
Put.Specifically, can be by the way that the setAccessible parameters in the domain of highlight color object be revised as into true, to reach height
The domain of bright color object is arranged to the purpose in addressable open domain.
It is clearer for the method for setting highlight color provided in an embodiment of the present invention is become apparent from illustrating, now with specific real
Example is applied to be described.
The flow for the method for setting or changing highlight color is described in detail by taking android system as an example in the present embodiment.The flow root
It can be divided into embryonic stage and drawing process according to the different stages(onDraw)Two parts.
First, in flow embryonic stage, it is necessary to be defined to the variable and respective behavior being related to, for making hereinafter
With.
Variable-definition:
1st, web displaying control object, hereinafter referred to as mWebView:Such type is WebView, namely WebView controls
Part.
2nd, the object of web displaying control class, hereinafter referred to as WebViewOrClassicClass:Type is Class, is used for
Reflection.For Android versions if greater than or equal to 4.1, then what such object represented should be WebViewClassic classes
Object, it is otherwise the object of WebView classes.
3rd, the object of web displaying provider field, hereinafter referred to as mWebViewClassicField:Type is Field,
For reflecting.Wherein, web displaying provider is mainly used in controlling the display of webpage.
4th, web displaying provider object, hereinafter referred to as mWebViewProvider:Type is Object, true for storing
The WebView control objects just operated.Wherein, web displaying provider is mainly used in controlling the display of webpage.
5th, highlighted paintbrush field object, hereinafter referred to as mTouchHightlightPaintField are touched:Type is
Field。
Behavior defines:
Privately owned attribute is set to publicly-owned attribute:For reflecting.
The specific method that privately owned attribute is set to publicly-owned attribute is:After Field or Method object is reflexed to,
The setAccessible methods of above-mentioned object are called, its parameter is arranged to true.
The purpose of parameter setting step herein is:The Field or Method object that will be reflected to from privately owned, if
It is set to addressable disclosed form.
During implementation, if being related to other objects or parameter, it is related to " being set to publicly-owned by privately owned ", can be according to the method described above
Use.
After each variable and respective behavior definition terminate, start the establishment that android system is set on highlight color
Part flow.Wherein, the startup opportunity of visioning procedure is:When WebView will be initialised.Meanwhile in WebView
During initialization, the domain that can set highlight color object is addressable open domain.
It should be noted that the setting of the property in the domain of highlight color object can have a variety of implementations, the present invention is in fact
Example is applied preferably by the way of parameter setting, i.e., will after the object in the domain that reflection gets highlight color
SetAccessible parameters are revised as true, it is achieved thereby that above-mentioned purpose.
During implementation, reflect get highlight color domain object the step of it is complex, specifically, including as follows walk
Suddenly:
Step A, the mProvider objects reflected in WebViewOrClassic, its result is stored as
MWebViewClassicField objects;
Step B, mWebViewClassicField objects are called, mProvider object values are given
mWebViewProvider;
Step C, the mTouchHightlightPaint objects reflected in WebViewOrClassic, result is assigned to
MTouchHightlightPaintField objects.
It is clearer for the adjustment mode of highlight color is become apparent from illustrating, a complete flow is now provided, from version
Identification starts, until highlight color setting completed terminate.Specifically see below introduction(Fig. 2 and Fig. 3).
Fig. 2 shows the establishment portion split flow signal of the method for setting highlight color according to an embodiment of the invention
Figure.Referring to Fig. 2, this method comprises at least following steps:
Step S202, judge whether android system possesses highlighted function, if so, step S204 is performed, if it is not, flow
Terminate.
Specifically, whether can reach more than 2.2 that to judge whether it possesses highlighted by judging current Android versions
The purpose of function, namely judge version number(Build.VERSION_CODE)Whether 8 are more than.Less than the Android systems of the version
System does not support highlighted function, therefore can not set its color, namely the operation that need not be initialized.
Step S204, the class that android system is called is determined, if using WebViewClassic classes, then performs step
Rapid S208, if using WebView classes, then perform step S206.
Specifically, the system institute energy can be determined by judging whether current Android versions are more than or equal to 4.1
The class enough called, namely judge whether Build.VERSION_CODE is more than or equal to 16, if not less than 16, apply
WebViewClassic classes, if less than 16, using WebView classes.
Step S208, WebViewClassic classes are assigned to the object of WebViewOrClassic classes, trigger step
S210。
Specifically, the mProvider objects reflected in WebViewOrClassic, namely getField methods are called, its
As a result mWebViewClassicField objects are stored as, and are set to publicly-owned by privately owned, to call and to operate later;
Further, the get methods of mWebViewClassicField objects are called, parameter mWebView, will really be needed
The mProvider variables to be used take out, and are finally assigned to mWebViewProvider.
Step S206, WebView classes are assigned to WebViewOrClassic objects, triggering step S210.
Step S210, WebViewOrClassic mTouchHightlightPaint objects are reflected(Type is Paint
Type, it may specify its RGB color value), namely call getField methods to obtain, result is assigned to
MTouchHightlightPaintField, it is then changed into publicly-owned from privately owned.Step S212, WebView classes are inherited, and are covered
OnDraw methods are write, flow terminates.
After visioning procedure shown in Fig. 2 terminates, step S212 is adopted as heir, you can into onDraw flows.In onDraw flows
In, it is possible to achieve the personalized measure such as setting or modification or renewal of highlight color.Fig. 3 is shown according to one implementation of the present invention
The onDraw schematic flow sheets of the method for the setting highlight color of example.Referring to Fig. 3, this method comprises at least following steps:
Step S302, judge whether android system possesses highlighted function, if so, step S304 is performed, if it is not, flow
Terminate.
Specifically, whether can reach more than 2.2 that to judge whether it possesses highlighted by judging current Android versions
The purpose of function, namely judge version number(Build.VERSION_CODE)Whether 8 are more than.Less than the Android systems of the version
System does not support highlighted function, therefore can not set its color, and flow also avoids the need for continuing executing with.
Step S304, a paintbrush is created(Paint)Paintbrush object.
Step S306, the color of Paint objects is set.
Specifically, can be by calling setColor methods to realize the setting of color, the parameter that this method is related to is one
Color value, its value are hexadecimal, form 0xAARRGGBB(Including RGB and opacity), wherein AA is opacity, from
0-99, more high, color more shows not transparent enough, and RR is the Red in RGB(It is red)Value, GG Green(Green)
Value, BB Blue(Blueness)Value.Three kinds of primary colours of RGB are contained in RGB, three kinds of dominant hues can be generated with after and are currently known
A variety of colors, therefore, the individual demand that user sets on color is disclosure satisfy that substantially with reference to RGB and transparency.
Step S308, mTouchHighlight paintbrushes Field set methods are called, the Paint object transmission is entered,
Flow terminates.
The technical scheme that the flow with reference to shown in Fig. 2 and Fig. 3 obtains convenient and swift can be effectively realized to highlight color
Set or renewal or modification etc. meet personalized function or action.By the method that the embodiment of the present invention is provided is convenient and swift
Effectively, and big change need not be done in itself to system, therefore versatility is extremely strong, can be applied to any to possess highlighted function
In device or terminal or equipment or system.The highlight color given tacit consent in view of different equipment is also not quite similar, therefore, for not
Same equipment or terminal, the selection or modification of color are also incomplete same, have fully demonstrated personal settings.
For example, generally, after " Night " is adjusted to, ideally, the background in webpage and outside webpage is tuned into
Indigo, and element(Such as button, word)Then it is tuned into the royalblue slightly more shallow than indigo.If highlight color is not repaiied
Change, then can be carried out according to the default value of equipment and the definition of web developers, it is possible that several frequently seen situation below:It is silent
It is navy blue to recognize highlighted color, then close with background color, without effect;On the mobile phones such as Motorola, give tacit consent to highlighted
Color is light yellow, and effect is undesirable.And method provided in an embodiment of the present invention is used, user's can is changed to and night
Positive red or other colors of patterns match, or even the red with transparent effect can also be defined as, according to user's
Depending on selection.
In summary, based on present in prior art the defects of, the embodiment of the present invention realize it is a kind of be not injected into CSS or
Script, and on the premise of not changing browser kernel, realize the function of modification " highlight color ".Color, transparency can be any
Adjustment, do not limited by equipment and " Web page developer ", be not affected in performance not only, exploitation is more simple, and props up
Most Android devices are held, actually a kind of more perfect solution.
It is only that the method that the embodiment of the present invention is provided is not only applicable to Android systems by taking Android as an example above
System, it is equally applicable to other systems for needing to carry out highlight color adjustment, such as iOS system, Saipan system, Windows systems
Etc..
To implement any one above-mentioned preferred embodiment or its combination, based on same inventive concept, the embodiment of the present invention is also
A kind of device that highlight color is set is provided, applied in the equipment or system that possess highlighted function.Fig. 4 is shown according to this
The structural representation of the device of the setting highlight color of invention one embodiment.Referring to Fig. 4, the device of highlight color is set at least
Including:
Acquisition module 410, it is configured to the domain that reflection obtains the highlight color object in web displaying control;
Color setup module 420, coupled with acquisition module 410, configuration generates the Paint objects of pre-configured color and transmitted
Into the domain of highlighted color object, to set corresponding highlight color.
In a preferred embodiment, can also include referring to Fig. 4, the device of above-mentioned setting highlight color:
Domain setup module 430, coupled with acquisition module 410, be configured to the highlight color object for obtaining acquisition module 410
Domain be arranged to addressable open domain.
In a preferred embodiment, domain setup module 430 is also configured as the domain of highlight color object
SetAccessible parameters are revised as true.
In a preferred embodiment, the color parameter of pre-configured color is hexadecimal color value, including RGB and
Opacity.
In a preferred embodiment, highlight color generates in drawing process.
In embodiments of the present invention, using Paint objects by pre-configured color transfer into the domain of highlighted color object, if
Put corresponding highlight color.The modification kernel mentioned relative to prior art or the authority modification color using net person designer
Mode, the present invention implement provide method need not change the component of platform in itself, it is versatile, suitable for a variety of
The platform of version, reduce and occur because of the probability for the problem of incompatible version causes function not realize.Further, using the present invention
The method that embodiment provides need not increase control in relevant device or system and be installed, and save flow, and can save
Increase the memory space of control for modification highlight color in the prior art, improve the speed of color modification.Also, using prewired
Color can arbitrarily be changed according to the selection of user or other demands by putting the Paint objects of color, will not be changed in each color
When all redefine and refresh webpage, the performance of equipment or system corresponding to raising.
In the specification that this place provides, numerous specific details are set forth.It is to be appreciated, however, that the implementation of the present invention
Example can be put into practice in the case of these no details.In some instances, known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this description.
Similarly, it will be appreciated that in order to simplify the disclosure and help to understand one or more of each inventive aspect,
Above in the description to the exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the method for the disclosure should be construed to reflect following intention:I.e. required guarantor
The application claims of shield features more more than the feature being expressly recited in each claim.It is more precisely, such as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following embodiment are expressly incorporated in the embodiment, wherein each claim is in itself
Separate embodiments all as the present invention.
Those skilled in the art, which are appreciated that, to be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more equipment different from the embodiment.Can be the module or list in embodiment
Member or component be combined into a module or unit or component, and can be divided into addition multiple submodule or subelement or
Sub-component.In addition at least some in such feature and/or process or unit exclude each other, it can use any
Combination is to this specification(Including adjoint claim, summary and accompanying drawing)Disclosed in all features and so disclosed appoint
Where all processes or unit of method or equipment are combined.Unless expressly stated otherwise, this specification(Including adjoint power
Profit requirement, summary and accompanying drawing)Disclosed in each feature can be by providing the alternative features of identical, equivalent or similar purpose come generation
Replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included some features rather than further feature, but the combination of the feature of different embodiments means in of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
One of meaning mode can use in any combination.
The all parts embodiment of the present invention can be realized with hardware, or to be run on one or more processor
Software module realize, or realized with combinations thereof.It will be understood by those of skill in the art that it can use in practice
Microprocessor or digital signal processor(DSP)To realize in the device of setting highlight color according to embodiments of the present invention
The some or all functions of some or all parts.The present invention is also implemented as being used to perform method as described herein
Some or all equipment or program of device(For example, computer program and computer program product).Such reality
The program of the existing present invention can store on a computer-readable medium, or can have the form of one or more signal.
Such signal can be downloaded from internet website and obtained, and either be provided or in the form of any other on carrier signal
There is provided.
It should be noted that the present invention will be described rather than limits the invention for above-described embodiment, and ability
Field technique personnel can design alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between bracket should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" before element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of some different elements and being come by means of properly programmed computer real
It is existing.In if the unit claim of equipment for drying is listed, several in these devices can be by same hardware branch
To embody.The use of word first, second, and third does not indicate that any order.These words can be explained and run after fame
Claim.
Claims (10)
- A kind of 1. method that highlight color is set, applied in the equipment or system that possess highlighted function, in equipment or system The color of high bright part be adjusted, including:Reflection obtains the domain of the highlight color object in web displaying control;Generate the paintbrush object of pre-configured color and be transferred in the domain of the highlight color object, to set highlighted face accordingly Color;Wherein, the reflection obtains the domain of the highlight color object in web displaying control, including:WebViewClassic classes or WebView classes are assigned to pair of web displaying control class WebViewOrClassic classes As;The mTouchHightlightPaint objects reflected in WebViewOrClassic, result is assigned to the highlighted picture of touch Field object mTouchHightlightPaintField;The paintbrush object of the pre-configured color of generation is simultaneously transferred in the domain of the highlight color object, corresponding high to set Bright color, including:The paintbrush object of pre-configured color is generated, mTouchHightlightPaintField is called, by the paintbrush object transmission To mTouchHightlightPaintField, to set corresponding highlight color.
- 2. the method according to claim 11, wherein, after the domain of the acquisition highlight color object, in addition to:The domain of the highlight color object is arranged to addressable open domain.
- 3. according to the method for claim 2, wherein, the domain by the highlight color object is arranged to addressable public affairs Open domain, including:The setAccessible parameters in the domain of the highlight color object are revised as true.
- 4. according to the method described in any one of claims 1 to 3, wherein, the color parameter of the pre-configured color enters for 16 The color value of system, including RGB and opacity.
- 5. according to the method described in any one of claims 1 to 3, wherein, the highlight color generates in drawing process.
- A kind of 6. device that highlight color is set, applied in the equipment or system that possess highlighted function, in equipment or system The color of high bright part be adjusted, including:Acquisition module, it is configured to the domain that reflection obtains the highlight color object in web displaying control;Color setup module, configuration generate the paintbrush object of pre-configured color and are transferred in the domain of the highlight color object, To set corresponding highlight color;Wherein, the acquisition module is additionally configured to:WebViewClassic classes or WebView classes are assigned to pair of web displaying control class WebViewOrClassic classes As;The mTouchHightlightPaint objects reflected in WebViewOrClassic, result is assigned to the highlighted picture of touch Field object mTouchHightlightPaintField;The color setup module is additionally configured to:The paintbrush object of pre-configured color is generated, mTouchHightlightPaintField is called, by the paintbrush object transmission To mTouchHightlightPaintField, to set corresponding highlight color.
- 7. device according to claim 6, wherein, in addition to:Domain setup module, it is configured to the domain for the highlight color object that the acquisition module obtains being arranged to addressable disclosure Domain.
- 8. device according to claim 7, wherein, the domain setup module is additionally configured to the highlight color object The setAccessible parameters in domain are revised as true.
- 9. according to the device described in any one of claim 6 to 8, wherein, the color parameter of the pre-configured color enters for 16 The color value of system, including RGB and opacity.
- 10. according to the device described in any one of claim 6 to 8, wherein, the highlight color generates in drawing process.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310535193.6A CN103631581B (en) | 2013-11-01 | 2013-11-01 | The method and device of highlight color is set |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310535193.6A CN103631581B (en) | 2013-11-01 | 2013-11-01 | The method and device of highlight color is set |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103631581A CN103631581A (en) | 2014-03-12 |
CN103631581B true CN103631581B (en) | 2017-11-24 |
Family
ID=50212679
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310535193.6A Active CN103631581B (en) | 2013-11-01 | 2013-11-01 | The method and device of highlight color is set |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103631581B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104268152B (en) * | 2014-09-01 | 2018-07-10 | 可牛网络技术(北京)有限公司 | A kind of webpage exhibiting method and device |
CN104765860A (en) * | 2015-04-21 | 2015-07-08 | 广州市久邦数码科技有限公司 | Alphabetical index system for highlighting application program name and implementation method thereof |
CN108563382A (en) * | 2018-02-26 | 2018-09-21 | 挖财网络技术有限公司 | Screenshotss method and device based on android system |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080046845A1 (en) * | 2006-06-23 | 2008-02-21 | Rohit Chandra | Method and Apparatus for Controlling the Functionality of a Highlighting Service |
KR20110091379A (en) * | 2010-02-05 | 2011-08-11 | 삼성전자주식회사 | Method and apparatus for selecting hyperlinks |
CN102024028B (en) * | 2010-11-22 | 2014-04-02 | 百度在线网络技术(北京)有限公司 | Method and equipment for distinctly displaying main contents of webpage on mobile terminal |
-
2013
- 2013-11-01 CN CN201310535193.6A patent/CN103631581B/en active Active
Non-Patent Citations (1)
Title |
---|
MFC Button控件自绘制----详细讲解;1179647817;《百度文库》;20120528;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN103631581A (en) | 2014-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109032739B (en) | A kind of interface display method, terminal and computer storage medium | |
JP6671483B2 (en) | Method and apparatus for controlling smart devices and computer storage media | |
CN105632414B (en) | Method for controlling backlight thereof, device and equipment in a kind of terminal device start process | |
CN105957125B (en) | A kind of processing method and mobile terminal of icon text | |
CN102096631B (en) | Interface testing method and device | |
CN106569856B (en) | A kind of loading method and device of application view resource file | |
CN105094786B (en) | Method and system based on JavaScript customized web page | |
CN105138226B (en) | A kind of desktop management method and apparatus of intelligent terminal | |
CN106502689A (en) | A kind of display methods of status bar and device | |
CN103631581B (en) | The method and device of highlight color is set | |
CN104462312A (en) | Web page displaying method and browser client side | |
CN107276866A (en) | Home appliance match somebody with somebody network method, device and home appliance | |
US20160188552A1 (en) | Method, device and mobile terminal for processiong webpage in night mode | |
CN104537021B (en) | The method and browser client of browser background are set | |
CN104346403A (en) | Browser page display method and device as well as browser and terminal | |
CN104268152A (en) | Method and device for displaying webpage | |
CN103488646A (en) | Method and device for browsing webpages with mobile terminal browser under weak light source | |
CN105528389A (en) | A logic control method and device based on mobile phone browser core | |
CN105701165B (en) | Browser model switching method and switching device | |
CN106855800A (en) | A kind of display methods of interface element background picture, device and smart machine | |
CN102932612A (en) | Method and system for adjusting user-oriented image quality of television | |
CN102957681A (en) | Embedded browser, intelligent household appliance and intelligent system of internet of things | |
CN104156240A (en) | Client skin template changing method and device, client and electronic device | |
CN106599257A (en) | Page shortcut realization method and electronic equipment | |
CN106598629A (en) | Coloring method and device based on Andriod system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20220715 Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015 Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park) Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd. Patentee before: Qizhi software (Beijing) Co.,Ltd. |