This application relates to a control display method, device, computer readable storage medium and computer equipment, including: acquiring the first display parameters of the terminal's current display interface; receiving control display instructions, which include the display parameters of the control; and adjusting the display parameters of the control for the second display according to the first display parameters of the terminal's current display interface. Display parameters; control the control to display the content of the control according to the second display parameters. When the control needs to be displayed, the display parameters of the control are determined according to the display parameters of the current display interface, and the display contents of the control are displayed on the display interface of the terminal according to the display parameters of the control. This solves the problem that when the control needs to be displayed, a strong contrast between light and shade appears on the display interface, which seriously stimulates the eyes.
【技术实现步骤摘要】
控件显示方法、计算机可读存储介质和计算机设备
本申请涉及电子
,特别是涉及一种控件显示方法、装置、计算机可读存储介质和计算机设备。
技术介绍
随着电子技术的发展,电子产品成为了人们必不可少的通信工具,并通过电子产品中的应用来获取信息,或娱乐,因此眼睛需要会长时间的看电子产品的屏幕。目前,常见应用多是接近白色的界面底色,为了降低光线暗的情况下对人眼的伤害,往往会设计夜间模式,调为夜间模式时,界面会发生反色,大面积的白色底色会改变为接近于暗黑色,文字颜色由黑色改变白色,为以保护人眼虽然应用内的夜间模式可以一定程度的起到保护眼睛的作用,但仅限于应用内;当应用本身就是暗色界面,或者应用开启了夜间模式,而现在的移动设备的系统设计也多浅色设计,当需要显示控件时,例如弹出的微信消息、低电弹框、用户下拉通知中心或控制中心等系统控件时,导致显示界面上出现强烈的明暗对比,严重刺激眼睛的问题。
技术实现思路
基于此,有必要针对当需要显示控件时,导致显示界面上出现强烈的明暗对比,严重刺激眼睛的问题,提供一种控件显示方法、装置、计算机可读存储介质和计算机设备。一种控件显示方法,包括:获取终端当前的显示界面的第一显示参数;接收控件显示指令,所述控件显示指令包括控件的显示参数;根据终端当前的显示界面的第一显示参数,调整所述控件的显示参数为第二显示参数;控制所述控件按第二显示参数显示所述控件内容。在其中一个实施例中,根据终端当前的显示界面的第一显示参数,调整所述控件显示指令的显示参数为第二显示参数的步骤,包括:基于终端当前的显示界面的第一显示参数所处的显示参数区间,确定控件显示指令中的 ...
【技术保护点】
1.一种控件显示方法,包括:获取终端当前的显示界面的第一显示参数;接收控件显示指令,所述控件显示指令包括控件的显示参数;根据终端当前的显示界面的第一显示参数,调整所述控件的显示参数为第二显示参数;控制所述控件按第二显示参数显示所述控件内容。
【技术特征摘要】
1.一种控件显示方法,包括:获取终端当前的显示界面的第一显示参数;接收控件显示指令,所述控件显示指令包括控件的显示参数;根据终端当前的显示界面的第一显示参数,调整所述控件的显示参数为第二显示参数;控制所述控件按第二显示参数显示所述控件内容。2.根据权利要求1所述的控件显示方法,其特征在于,根据终端当前的显示界面的第一显示参数,调整所述控件显示指令的显示参数为第二显示参数的步骤,包括:基于终端当前的显示界面的第一显示参数所处的显示参数区间,确定控件显示指令中的第二显示参数。3.根据权利要求2所述的控件显示方法,其特征在于,基于终端当前的显示界面的第一显示参数所处的显示参数区间,确定控件显示指令中的第二显示参数之前,还包括:获取各显示参数值;根据获取的各显示参数值确定各显示参数区间。4.根据权利要求2所述的控件显示方法,其特征在于,基于终端当前的显示界面的第一显示参数所处的显示参数区间,确定控件显示指令中的第二显示参数,包括:基于终端当前的显示界面的第一显示参数所处的显示参数区间,确定与所述显示参数区间对应的控件主题;将所述控件主题下的显示参数,确定为所述控件的第二显示参数。5.根据权利要求1-4任一项所述的控件显示方法,其特征在于...
【专利技术属性】
技术研发人员:陈盼,
申请(专利权)人:深圳市万普拉斯科技有限公司,
类型:发明
国别省市:广东,44
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。