Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/interface/interface_regions.c
| Context not available. | |||||
| /* find the brightness difference between background and text colors */ | /* find the brightness difference between background and text colors */ | ||||
| tone_bg = rgb_to_grayscale(background_color); | tone_bg = rgb_to_luma(background_color); | ||||
| /* tone_fg = rgb_to_grayscale(main_color); */ | /* tone_fg = rgb_to_grayscale(main_color); */ | ||||
| rgb_tint(normal_color, 0.0f, 0.0f, tone_bg, 0.3f); /* a shade darker (to bg) */ | rgb_tint(normal_color, 0.0f, 0.0f, tone_bg, 0.3f); /* a shade darker (to bg) */ | ||||
| Context not available. | |||||