Changeset View
Changeset View
Standalone View
Standalone View
source/blender/editors/space_image/image_buttons.c
| Show First 20 Lines • Show All 1,071 Lines • ▼ Show 20 Lines | #endif | ||||
| } | } | ||||
| /* color management */ | /* color management */ | ||||
| if (color_management && (!BKE_imtype_requires_linear_float(imf->imtype) || | if (color_management && (!BKE_imtype_requires_linear_float(imf->imtype) || | ||||
| (show_preview && imf->flag & R_IMF_FLAG_PREVIEW_JPG))) { | (show_preview && imf->flag & R_IMF_FLAG_PREVIEW_JPG))) { | ||||
| prop = RNA_struct_find_property(imfptr, "display_settings"); | prop = RNA_struct_find_property(imfptr, "display_settings"); | ||||
| display_settings_ptr = RNA_property_pointer_get(imfptr, prop); | display_settings_ptr = RNA_property_pointer_get(imfptr, prop); | ||||
| col = uiLayoutColumn(layout, false); | uiLayout *box = uiLayoutBox(layout); | ||||
| uiItemL(col, IFACE_("Color Management"), ICON_NONE); | uiItemL(box, IFACE_("Color Management"), ICON_NONE); | ||||
| uiItemR(col, &display_settings_ptr, "display_device", 0, NULL, ICON_NONE); | uiItemR(box, &display_settings_ptr, "display_device", 0, NULL, ICON_NONE); | ||||
| uiTemplateColormanagedViewSettings(col, NULL, imfptr, "view_settings"); | uiTemplateColormanagedViewSettings(box, NULL, imfptr, "view_settings"); | ||||
| } | } | ||||
| } | } | ||||
| void uiTemplateImageStereo3d(uiLayout *layout, PointerRNA *stereo3d_format_ptr) | void uiTemplateImageStereo3d(uiLayout *layout, PointerRNA *stereo3d_format_ptr) | ||||
| { | { | ||||
| Stereo3dFormat *stereo3d_format = stereo3d_format_ptr->data; | Stereo3dFormat *stereo3d_format = stereo3d_format_ptr->data; | ||||
| uiLayout *col; | uiLayout *col; | ||||
| ▲ Show 20 Lines • Show All 224 Lines • Show Last 20 Lines | |||||