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 = IMB_colormanagement_get_luminance(background_color); | ||||
| /* tone_fg = rgb_to_grayscale(main_color); */ | /* tone_fg = rgb_to_grayscale(main_color); */ | ||||
| /* mix the colors */ | /* mix the colors */ | ||||
| Context not available. | |||||
| /* override text-style */ | /* override text-style */ | ||||
| fstyle_header.shadow = 1; | fstyle_header.shadow = 1; | ||||
| fstyle_header.shadowcolor = rgb_to_luma(tip_colors[UI_TIP_LC_MAIN]); | fstyle_header.shadowcolor = | ||||
| IMB_colormanagement_get_luminance(tip_colors[UI_TIP_LC_MAIN]); | |||||
| fstyle_header.shadx = fstyle_header.shady = 0; | fstyle_header.shadx = fstyle_header.shady = 0; | ||||
| fstyle_header.shadowalpha = 1.0f; | fstyle_header.shadowalpha = 1.0f; | ||||
| Context not available. | |||||