Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The background color flash doesn't show up when displaying a TOP in the background. #27

Open
franklin113 opened this issue May 3, 2022 · 0 comments

Comments

@franklin113
Copy link

franklin113 commented May 3, 2022

A naive implementation could be:
`

	par_color 			= '{}*'.format(parColors)
	over_ride_color 	= parent().pars(par_color)

	
	# disabled top backdrops for a moment
	ui.panes[0].showBackdropTOPs = False  

	# change background color (0.1, 0.105, 0.12)
	ui.colors['worksheet.bg'] 	= over_ride_color
	
	# reenable the background tops in the delay script
	delay_script 				= "ui.colors['worksheet.bg'] = args[0]\nui.panes[0].showBackdropTOPs = True"
	
	# want to change the background color back
	run(delay_script, self.Defaultcolor, delayFrames = self.Flash_duration)		

`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant