Blender
V3.3
|
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_userdef_types.h"
#include "BLI_blenlib.h"
#include "BLI_math.h"
#include "BLI_utildefines.h"
#include "BKE_addon.h"
#include "BKE_appdir.h"
#include "BKE_main.h"
#include "BKE_mesh_runtime.h"
#include "BLO_readfile.h"
#include "BLF_api.h"
#include "ED_screen.h"
#include "UI_interface.h"
#include "UI_interface_icons.h"
#include "GPU_framebuffer.h"
#include "interface_intern.h"
Go to the source code of this file.
Macros | |
#define | theme_active g_theme_state.theme |
#define | theme_spacetype g_theme_state.spacetype |
#define | theme_regionid g_theme_state.regionid |
Typedefs | |
typedef void(* | VectorDrawFunc) (int x, int y, int w, int h, float alpha) |
Variables | |
static struct bThemeState | g_theme_state |
#define theme_active g_theme_state.theme |
Definition at line 49 of file resources.c.
#define theme_regionid g_theme_state.regionid |
Definition at line 51 of file resources.c.
#define theme_spacetype g_theme_state.spacetype |
Definition at line 50 of file resources.c.
Definition at line 40 of file resources.c.
void UI_FontThemeColor | ( | int | fontid, |
int | colorid | ||
) |
Sets the font color (for anything fancy use UI_GetThemeColor[Fancy] then BLF_color).
Definition at line 1134 of file resources.c.
References BLF_color4ubv(), color, and UI_GetThemeColor4ubv().
Referenced by clip_draw_dopesheet_channels(), draw_grid_unit_name(), draw_horizontal_scale_indicators(), draw_marker_texts(), draw_selected_name(), draw_vertical_scale_indicators(), draw_viewport_name(), drawviewborder(), DRW_draw_region_engine_info(), DRW_stats_draw(), ED_info_draw_stats(), ED_region_cache_draw_curfra_label(), ED_region_image_metadata_draw(), ED_region_info_draw_multiline(), ED_scene_draw_fps(), format_draw_color(), and region_draw_status_text().
void UI_GetColorPtrBlendShade3ubv | ( | const unsigned char | cp1[3], |
const unsigned char | cp2[3], | ||
unsigned char | col[3], | ||
float | fac, | ||
int | offset | ||
) |
Get a 3 byte color, blended and shaded between two other char color pointers.
Definition at line 1429 of file resources.c.
References usdtokens::b(), CLAMP, col, blender::math::floor(), usdtokens::g(), offset, and r.
Referenced by color3ubv_from_seq(), and UI_make_axis_color().
void UI_GetColorPtrShade3ubv | ( | const unsigned char | cp1[3], |
unsigned char | col[3], | ||
int | offset | ||
) |
Shade a 3 byte color (same as UI_GetColorPtrBlendShade3ubv with 0.0 factor).
Definition at line 1412 of file resources.c.
References usdtokens::b(), CLAMP, col, usdtokens::g(), offset, and r.
Referenced by color3ubv_from_seq(), draw_color_strip_band(), draw_seq_background(), draw_seq_handle(), draw_seq_outline(), draw_seq_text_overlay(), and draw_sequence_extensions_overlay().
bool UI_GetIconThemeColor4ubv | ( | int | colorid, |
unsigned char | col[4] | ||
) |
Get theme color for coloring monochrome icons.
Definition at line 1386 of file resources.c.
References col, RGN_TYPE_NAV_BAR, RGN_TYPE_WINDOW, SPACE_FILE, SPACE_OUTLINER, SPACE_PROPERTIES, TH_ICON_FUND, theme_active, theme_regionid, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by UI_icon_get_theme_color().
Get current theme.
Definition at line 1067 of file resources.c.
Referenced by animedit_get_yscale_factor(), color3ubv_from_seq(), eyedropper_draw_cursor_text_ex(), icon_draw_size(), blender::ed::space_node::node_draw_link_bezier(), outliner_draw_hierarchy_lines_recursive(), panel_draw_aligned_backdrop(), panel_draw_highlight_border(), panel_title_color_get(), set_pchan_colorset(), tselem_draw_icon(), ui_draw_but(), ui_draw_but_HSV_v(), ui_draw_pie_center(), UI_icons_reload_internal_textures(), UI_panel_category_draw_all(), UI_ThemeMenuShadowWidth(), UI_view2d_scrollers_draw_ex(), uiDefButAlert(), vicon_collection_color_draw(), vicon_colorset_draw(), vicon_strip_color_draw(), widget_draw_extra_mask(), widget_draw_icon(), widget_softshadow(), widget_state(), widget_state_label(), widget_state_option_menu(), widget_type(), wm_block_create_about(), wm_block_splash_image_roundcorners_add(), wm_drop_operator_draw(), and wm_drop_redalert_draw().
Get three color values, scaled to 0.0-1.0 range.
Definition at line 1165 of file resources.c.
References col, float(), theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by acf_generic_dataexpand_color(), acf_generic_root_color(), acf_group_color(), acf_summary_color(), clip_draw_dopesheet_main(), curve_draw_stroke_3d(), blender::ed::space_node::draw_background_color(), draw_fcurve_selected_handle_vertices(), draw_primitive_view(), draw_seq_in_view(), draw_single_handle(), draw_timeline_seq(), ED_region_do_draw(), ED_region_grid_draw(), ED_view3d_background_color_get(), gizmo_axis_draw(), gizmo_mesh_bisect_setup(), gizmo_mesh_extrude_setup(), gizmo_mesh_placement_setup(), gizmo_mesh_spin_init_setup(), gizmo_mesh_spin_redo_setup(), graph_refresh_fcurve_colors(), immUniformThemeColor3(), immUniformThemeColorAlpha(), nla_strip_get_color_inside(), outliner_draw_highlights(), OVERLAY_mode_transfer_cache_populate(), plane_track_colors(), region_draw_emboss(), region_draw_status_text(), seq_draw_image_origin_and_outline(), set_fcurve_vertex_color(), tool_generic_create_gizmo(), track_channel_color(), track_colors(), UI_ThemeClearColor(), UI_view2d_dot_grid_draw(), WIDGETGROUP_armature_spline_setup(), WIDGETGROUP_camera_setup(), WIDGETGROUP_empty_image_setup(), WIDGETGROUP_forcefield_setup(), WIDGETGROUP_light_area_setup(), WIDGETGROUP_light_spot_setup(), WIDGETGROUP_light_target_setup(), WIDGETGROUP_mesh_preselect_edgering_setup(), WIDGETGROUP_mesh_preselect_elem_setup(), and WIDGETGROUP_xform_shear_setup().
void UI_GetThemeColor3ubv | ( | int | colorid, |
unsigned char | col[3] | ||
) |
Get the 3 or 4 byte values.
Definition at line 1323 of file resources.c.
References col, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by color3ubv_from_seq(), draw_fcurve_handles(), draw_seq_handle(), draw_seq_outline(), drawLine(), drawSnapping(), DRW_cache_cursor_get(), DRW_text_edit_mesh_measure_stats(), gizmo_ruler_draw(), knifetool_draw_angle(), knifetool_draw_visible_distances(), motion_path_cache(), outliner_draw_iconrow_number(), outliner_draw_tree_element(), transform_draw_cursor_draw(), UI_make_axis_color(), UI_panel_category_draw_all(), view2d_draw_lines(), widget_draw_extra_mask(), widget_state_label(), and WIDGETGROUP_navigate_setup().
Get four color values, scaled to 0.0-1.0 range.
Definition at line 1173 of file resources.c.
References col, float(), theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by draw_background(), draw_fcurve_active_handle_vertices(), draw_keylist_ui_data_init(), DRW_globals_update(), ED_region_grid_draw(), ED_screen_draw_edges(), file_draw_preview(), blender::ed::space_node::frame_node_draw(), gizmo2d_get_axis_color(), gizmo2d_resize_setup(), gizmo2d_rotate_setup(), gizmo2d_xform_setup(), gizmo_get_axis_color(), gpencil_primitive_arc(), gpencil_primitive_bezier(), gpencil_primitive_circle(), gpencil_primitive_line(), gpencil_primitive_rectangle(), icon_draw_rect_input(), icon_draw_size(), imm_draw_box_checker_2d(), immUniformThemeColor(), nla_action_get_color(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_hidden(), blender::ed::space_node::node_draw_link_bezier(), blender::ed::space_node::node_socket_outline_color_get(), blender::ed::space_node::nodelink_batch_draw(), outliner_back(), outliner_draw_highlights(), outliner_draw_iconrow_doit(), outliner_draw_tree_element(), outliner_icon_background_colors(), OVERLAY_edit_gpencil_cache_init(), OVERLAY_edit_uv_cache_init(), panel_draw_aligned_backdrop(), panel_draw_highlight_border(), radial_control_paint_cursor(), region_clear_color(), stitch_draw(), ui_draw_but_CURVE(), ui_draw_but_CURVEPROFILE(), ui_draw_but_HISTOGRAM(), UI_panel_category_draw_all(), widget_pulldownbut(), and wm_drop_redalert_draw().
void UI_GetThemeColor4ubv | ( | int | colorid, |
unsigned char | col[4] | ||
) |
Get the color, in char pointer.
Definition at line 1352 of file resources.c.
References col, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by ANIM_channel_draw(), camera_view3d_reconstruction(), console_line_data(), console_textview_const_colors(), draw_bone_name(), draw_channel_strips(), draw_current_frame(), draw_keyframe_shape(), draw_markers_background(), file_draw_invalid_asset_library_hint(), file_draw_invalid_library_hint(), file_draw_list(), file_draw_preview(), marker_color_get(), outliner_draw_tree_element(), overlay_gpencil_draw_stroke_color_name(), OVERLAY_object_name(), panel_title_color_get(), report_line_data(), slider_draw(), UI_FontThemeColor(), UI_panel_category_draw_all(), UI_view2d_scrollers_draw_ex(), view3d_ob_drop_draw_activate(), and widgetbase_draw_ex().
Definition at line 1111 of file resources.c.
References CLAMP, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Definition at line 1100 of file resources.c.
References CLAMP, col, floorf, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by immUniformThemeColorBlend(), outliner_draw_hierarchy_lines(), and outliner_draw_tree_element().
Definition at line 1122 of file resources.c.
References CLAMP, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_panel(), and blender::ed::space_node::node_draw_hidden().
void UI_GetThemeColorBlendShade3fv | ( | int | colorid1, |
int | colorid2, | ||
float | fac, | ||
int | offset, | ||
float | col[3] | ||
) |
Get four color values, range 0.0-1.0, complete with shading offset for the RGB components and blending.
Definition at line 1279 of file resources.c.
References usdtokens::b(), CLAMP, col, float(), floorf, usdtokens::g(), offset, r, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by DRW_globals_update().
void UI_GetThemeColorBlendShade3ubv | ( | int | colorid1, |
int | colorid2, | ||
float | fac, | ||
int | offset, | ||
unsigned char | col[3] | ||
) |
Get three color values, range 0-255, complete with shading offset for the RGB components and blending.
Definition at line 1225 of file resources.c.
References blend(), CLAMP, col, floorf, offset, theme_active, theme_spacetype, UI_ThemeGetColorPtr(), and unit_float_to_uchar_clamp_v3.
Referenced by blender::ed::space_node::frame_node_draw_label(), and UI_view2d_multi_grid_draw().
void UI_GetThemeColorBlendShade4fv | ( | int | colorid1, |
int | colorid2, | ||
float | fac, | ||
int | offset, | ||
float | col[4] | ||
) |
Definition at line 1299 of file resources.c.
References Freestyle::a, usdtokens::b(), CLAMP, col, float(), floorf, usdtokens::g(), offset, r, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by DRW_color_background_blend_get(), DRW_globals_update(), immUniformThemeColorBlendShade(), blender::ed::space_node::node_draw_basis(), blender::ed::space_node::node_draw_extra_info_panel(), and blender::ed::space_node::node_draw_hidden().
Get the color, range 0.0-1.0, complete with shading offset.
Definition at line 1191 of file resources.c.
References usdtokens::b(), CLAMP, col, float(), usdtokens::g(), offset, r, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by acf_generic_channel_color(), acf_gpd_color(), acf_gpencil_channel_color(), acf_mask_color(), acf_nla_controls_color(), acf_nlatrack_color(), ED_region_grid_draw(), and WIDGETGROUP_navigate_setup().
Definition at line 1208 of file resources.c.
References usdtokens::b(), CLAMP, col, usdtokens::g(), offset, r, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by draw_dividers(), draw_seq_outline(), draw_view_axis(), drawAutoKeyWarning(), and view2d_draw_lines().
Get four color values, range 0.0-1.0, complete with shading offset for the RGB components.
Definition at line 1331 of file resources.c.
References Freestyle::a, usdtokens::b(), CLAMP, col, float(), usdtokens::g(), offset, r, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by draw_current_frame(), draw_tile_background(), DRW_globals_update(), immUniformThemeColorShade(), outliner_draw_highlights(), OVERLAY_edit_uv_cache_init(), OVERLAY_grid_cache_init(), and panel_draw_aligned_widgets().
Definition at line 1241 of file resources.c.
References usdtokens::b(), CLAMP, col, usdtokens::g(), offset, r, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by draw_marker_texts(), OVERLAY_edit_uv_cache_init(), and report_line_data().
Definition at line 1259 of file resources.c.
References Freestyle::a, usdtokens::b(), CLAMP, col, float(), usdtokens::g(), r, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by ANIM_draw_action_framerange(), draw_keyframe_shape(), DRW_globals_update(), blender::ed::space_node::frame_node_draw(), and immUniformThemeColorShadeAlpha().
void UI_GetThemeColorShadeAlpha4ubv | ( | int | colorid, |
int | coloffset, | ||
int | alphaoffset, | ||
unsigned char | col[4] | ||
) |
Get four color values ranged between 0 and 255; includes the alpha channel.
Definition at line 1081 of file resources.c.
References Freestyle::a, usdtokens::b(), CLAMP, col, usdtokens::g(), r, theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by immThemeColorShadeAlpha().
Get a theme color from specified space type.
Definition at line 1361 of file resources.c.
References col, float(), bThemeState::spacetype, theme_active, and UI_ThemeGetColorPtr().
Referenced by update_reports_display_invoke().
Definition at line 1369 of file resources.c.
References col, bThemeState::spacetype, theme_active, and UI_ThemeGetColorPtr().
Referenced by knife_init_colors().
Get four color values from specified space type, scaled to 0.0-1.0 range.
Definition at line 1182 of file resources.c.
References col, float(), bThemeState::spacetype, theme_active, and UI_ThemeGetColorPtr().
Referenced by paint_draw_curve_cursor().
Definition at line 1377 of file resources.c.
References col, bThemeState::spacetype, theme_active, and UI_ThemeGetColorPtr().
Referenced by uiTemplateReportsBanner(), and uiTemplateStatusInfo().
int UI_GetThemeValue | ( | int | colorid | ) |
Get individual values, not scaled.
Definition at line 1147 of file resources.c.
References theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by imm_draw_box_checker_2d(), and OVERLAY_background_cache_init().
float UI_GetThemeValuef | ( | int | colorid | ) |
Get individual values, not scaled.
Definition at line 1141 of file resources.c.
References theme_active, theme_spacetype, and UI_ThemeGetColorPtr().
Referenced by draw_fcurve_handle_vertices(), draw_fcurve_keyframe_vertices(), draw_fcurve_samples(), draw_spline_points(), draw_tracks_motion_and_error_curves(), drawEdgeSlide(), drawSnapping(), drawVertSlide(), DRW_globals_update(), ED_view3d_cursor_snap_draw_util(), EDBM_preselect_edgering_draw(), OVERLAY_edit_uv_cache_init(), OVERLAY_outline_cache_init(), and stitch_draw().
int UI_GetThemeValueType | ( | int | colorid, |
int | spacetype | ||
) |
Definition at line 1159 of file resources.c.
References bThemeState::spacetype, theme_active, and UI_ThemeGetColorPtr().
Referenced by blender::ed::space_node::node_draw_space(), and blender::ed::space_node::node_link_bezier_handles().
float UI_GetThemeValueTypef | ( | int | colorid, |
int | spacetype | ||
) |
Definition at line 1153 of file resources.c.
References bThemeState::spacetype, theme_active, and UI_ThemeGetColorPtr().
Definition at line 1462 of file resources.c.
References BLI_assert, col, TH_AXIS_X, TH_AXIS_Y, TH_AXIS_Z, UI_GetColorPtrBlendShade3ubv(), and UI_GetThemeColor3ubv().
Referenced by drawLine(), and transform_draw_cursor_draw().
void UI_SetTheme | ( | int | spacetype, |
int | regionid | ||
) |
Internal (blender) usage only, for init and set active.
Definition at line 1045 of file resources.c.
References bThemeState::regionid, RGN_TYPE_WINDOW, SPACE_PROPERTIES, SPACE_VIEW3D, bThemeState::spacetype, theme_active, theme_regionid, and theme_spacetype.
Referenced by color3ubv_from_seq(), draw_seq_in_view(), DRW_draw_select_id(), ED_region_do_draw(), ED_region_do_layout(), ED_view3d_depth_override(), ED_view3d_draw_offscreen(), graph_refresh_fcurve_colors(), UI_theme_init_default(), vicon_keytype_draw_wrapper(), view3d_opengl_select_ex(), wm_draw_window_onscreen(), wm_paintcursor_draw(), and wm_region_draw_overlay().
Definition at line 1038 of file resources.c.
References BLI_freelistN(), and uiStyleInit().
Referenced by preferences_reset_default_theme_exec().
Initialize default theme.
Definition at line 1022 of file resources.c.
References bTheme::active_theme_area, BLI_addtail(), BLI_findstring(), MEM_callocN, NULL, U_theme_default, and UI_SetTheme().
Referenced by preferences_reset_default_theme_exec().
void UI_Theme_Restore | ( | struct bThemeState * | theme_state | ) |
Definition at line 1076 of file resources.c.
References g_theme_state.
Referenced by color3ubv_from_seq(), draw_seq_in_view(), ED_view3d_depth_override(), ED_view3d_draw_offscreen(), vicon_keytype_draw_wrapper(), and view3d_opengl_select_ex().
void UI_Theme_Store | ( | struct bThemeState * | theme_state | ) |
For the rare case we need to temp swap in a different theme (off-screen render).
Definition at line 1072 of file resources.c.
References g_theme_state.
Referenced by color3ubv_from_seq(), draw_seq_in_view(), ED_view3d_depth_override(), ED_view3d_draw_offscreen(), vicon_keytype_draw_wrapper(), and view3d_opengl_select_ex().
void UI_ThemeClearColor | ( | int | colorid | ) |
Clear the frame-buffer using the input colorid.
Definition at line 1448 of file resources.c.
References col, GPU_clear_color(), and UI_GetThemeColor3fv().
Referenced by action_channel_region_draw(), action_main_region_draw(), clip_channels_region_draw(), clip_main_region_draw(), console_main_region_draw(), dopesheet_region_draw(), draw_background(), blender::ed::spreadsheet::draw_spreadsheet_in_region(), ED_region_do_draw(), file_main_region_draw(), graph_channel_region_draw(), graph_main_region_draw(), graph_region_draw(), info_main_region_draw(), nla_channel_region_draw(), nla_main_region_draw(), outliner_main_region_draw(), region_clear_color(), region_draw_status_text(), report_textview_begin(), script_main_region_draw(), sequencer_preview_clear(), spreadsheet_footer_region_draw(), and text_main_region_draw().
Only for buttons in theme editor!
Definition at line 67 of file resources.c.
References ThemeSpace::act_marker, ThemeSpace::act_spline, ThemeSpace::active, ThemeSpace::active_object, ThemeSpace::active_strip, ThemeSpace::anim_active, ThemeSpace::anim_non_active, ThemeSpace::anim_preview_range, ThemeSpace::audio, uiPanelColors::back, ThemeSpace::back, ThemeSpace::back_grad, ThemeSpace::background_type, BLI_assert, BLI_findindex(), ThemeSpace::bone_locked_weight, ThemeSpace::bone_pose, ThemeSpace::bone_pose_active, ThemeSpace::bone_solid, ThemeSpace::bundle_solid, ThemeSpace::button, ThemeSpace::button_text, ThemeSpace::button_text_hi, ThemeSpace::button_title, ThemeSpace::camera, ThemeSpace::camera_path, ThemeSpace::cframe, ThemeSpace::clipping_border_3d, ThemeSpace::color_strip, ThemeSpace::console_cursor, ThemeSpace::console_error, ThemeSpace::console_info, ThemeSpace::console_input, ThemeSpace::console_output, ThemeSpace::console_select, copy_v4_v4_uchar(), ThemeSpace::dis_marker, ThemeSpace::ds_channel, ThemeSpace::ds_ipoline, ThemeSpace::ds_subchannel, ED_region_is_overlap(), ThemeSpace::edge, ThemeSpace::edge_bevel, ThemeSpace::edge_crease, ThemeSpace::edge_facesel, ThemeSpace::edge_seam, ThemeSpace::edge_select, ThemeSpace::edge_sharp, ThemeSpace::edited_object, ThemeSpace::editmesh_active, ThemeUI::editor_outline, ThemeSpace::effect, ELEM, ThemeSpace::empty, error(), ThemeSpace::execution_buts, ThemeSpace::extra_edge_angle, ThemeSpace::extra_edge_len, ThemeSpace::extra_face_angle, ThemeSpace::extra_face_area, ThemeSpace::face, ThemeSpace::face_back, ThemeSpace::face_dot, ThemeSpace::face_front, ThemeSpace::face_select, ThemeSpace::facedot_size, ThemeSpace::freestyle_edge_mark, ThemeSpace::freestyle_face_mark, ThemeUI::gizmo_a, ThemeUI::gizmo_b, ThemeUI::gizmo_hi, ThemeUI::gizmo_primary, ThemeUI::gizmo_secondary, ThemeUI::gizmo_view_align, ThemeSpace::gp_vertex, ThemeSpace::gp_vertex_select, ThemeSpace::gp_vertex_size, ThemeSpace::grid, ThemeSpace::grid_levels, ThemeSpace::group, ThemeSpace::group_active, ThemeSpace::handle_align, ThemeSpace::handle_auto, ThemeSpace::handle_auto_clamped, ThemeSpace::handle_free, ThemeSpace::handle_sel_align, ThemeSpace::handle_sel_auto, ThemeSpace::handle_sel_auto_clamped, ThemeSpace::handle_sel_free, ThemeSpace::handle_sel_vect, ThemeSpace::handle_vect, ThemeSpace::handle_vertex, ThemeSpace::handle_vertex_select, ThemeSpace::handle_vertex_size, uiPanelColors::header, ThemeSpace::header, ThemeSpace::header_text, ThemeSpace::header_text_hi, ThemeSpace::header_title, ThemeSpace::hilite, ThemeUI::icon_collection, ThemeUI::icon_folder, ThemeUI::icon_modifier, ThemeUI::icon_object, ThemeUI::icon_object_data, ThemeUI::icon_scene, ThemeUI::icon_shading, ThemeSpace::image, ThemeSpace::info_debug, ThemeSpace::info_debug_text, ThemeSpace::info_error, ThemeSpace::info_error_text, ThemeSpace::info_info, ThemeSpace::info_info_text, ThemeSpace::info_operator, ThemeSpace::info_operator_text, ThemeSpace::info_property, ThemeSpace::info_property_text, ThemeSpace::info_selected, ThemeSpace::info_selected_text, ThemeSpace::info_warning, ThemeSpace::info_warning_text, ThemeSpace::keyborder, ThemeSpace::keyborder_select, ThemeSpace::keytype_breakdown, ThemeSpace::keytype_breakdown_select, ThemeSpace::keytype_extreme, ThemeSpace::keytype_extreme_select, ThemeSpace::keytype_jitter, ThemeSpace::keytype_jitter_select, ThemeSpace::keytype_keyframe, ThemeSpace::keytype_keyframe_select, ThemeSpace::keytype_movehold, ThemeSpace::keytype_movehold_select, ThemeSpace::lamp, ThemeSpace::lastsel_point, ThemeSpace::line_numbers, ThemeSpace::list, ThemeSpace::list_text, ThemeSpace::list_text_hi, ThemeSpace::list_title, ThemeSpace::lock_marker, ThemeSpace::loop_normal, ThemeSpace::marker, ThemeSpace::marker_outline, ThemeSpace::mask, ThemeSpace::match, ThemeSpace::meta, ThemeSpace::metadatabg, ThemeSpace::metadatatext, ThemeSpace::movie, ThemeSpace::movieclip, ThemeSpace::navigation_bar, ThemeSpace::nla_meta, ThemeSpace::nla_meta_sel, ThemeSpace::nla_sound, ThemeSpace::nla_sound_sel, ThemeSpace::nla_track, ThemeSpace::nla_transition, ThemeSpace::nla_transition_sel, ThemeSpace::nla_tweakdupli, ThemeSpace::nla_tweaking, ThemeSpace::nodeclass_attribute, ThemeSpace::nodeclass_filter, ThemeSpace::nodeclass_geometry, ThemeSpace::nodeclass_layout, ThemeSpace::nodeclass_output, ThemeSpace::nodeclass_pattern, ThemeSpace::nodeclass_script, ThemeSpace::nodeclass_shader, ThemeSpace::nodeclass_texture, ThemeSpace::nodeclass_vector, ThemeSpace::noodle_curving, ThemeSpace::normal, NULL, ThemeSpace::nurb_sel_uline, ThemeSpace::nurb_sel_vline, ThemeSpace::nurb_uline, ThemeSpace::nurb_vline, ThemeSpace::obcenter_dia, ThemeSpace::outline_width, ThemeSpace::paint_curve_handle, ThemeSpace::paint_curve_pivot, ThemeSpace::panelcolors, ThemeSpace::path_after, ThemeSpace::path_before, ThemeSpace::path_keyframe_after, ThemeSpace::path_keyframe_before, ThemeSpace::preview_back, ThemeSpace::preview_stitch_active, ThemeSpace::preview_stitch_edge, ThemeSpace::preview_stitch_face, ThemeSpace::preview_stitch_stitchable, ThemeSpace::preview_stitch_unstitchable, ThemeSpace::preview_stitch_vert, red, RGN_TYPE_CHANNELS, RGN_TYPE_EXECUTE, RGN_TYPE_FOOTER, RGN_TYPE_HEADER, RGN_TYPE_NAV_BAR, RGN_TYPE_PREVIEW, RGN_TYPE_WINDOW, ThemeSpace::row_alternate, ThemeSpace::scene, ThemeSpace::sel_marker, ThemeSpace::select, ThemeSpace::selected_highlight, ThemeSpace::selected_object, ThemeSpace::selected_strip, ThemeSpace::shade1, ThemeSpace::shade2, ThemeSpace::skin_root, SPACE_ACTION, bTheme::space_action, SPACE_CLIP, bTheme::space_clip, SPACE_CONSOLE, bTheme::space_console, SPACE_FILE, bTheme::space_file, SPACE_GRAPH, bTheme::space_graph, SPACE_IMAGE, bTheme::space_image, SPACE_INFO, bTheme::space_info, SPACE_NLA, bTheme::space_nla, SPACE_NODE, bTheme::space_node, SPACE_OUTLINER, bTheme::space_outliner, bTheme::space_preferences, SPACE_PROPERTIES, bTheme::space_properties, SPACE_SEQ, bTheme::space_sequencer, SPACE_SPREADSHEET, bTheme::space_spreadsheet, SPACE_STATUSBAR, bTheme::space_statusbar, SPACE_TEXT, bTheme::space_text, SPACE_TOPBAR, bTheme::space_topbar, SPACE_USERPREF, SPACE_VIEW3D, bTheme::space_view3d, bThemeState::spacetype, ThemeSpace::speaker, ThemeSpace::strip, ThemeSpace::strip_select, uiPanelColors::sub_back, ThemeSpace::syntaxb, ThemeSpace::syntaxc, ThemeSpace::syntaxd, ThemeSpace::syntaxl, ThemeSpace::syntaxn, ThemeSpace::syntaxr, ThemeSpace::syntaxs, ThemeSpace::syntaxv, ThemeSpace::tab_active, ThemeSpace::tab_back, ThemeSpace::tab_inactive, ThemeSpace::tab_outline, uiWidgetColors::text, ThemeSpace::text, ThemeSpace::text_hi, ThemeSpace::text_strip, TH_ACT_MARKER, TH_ACTIVE, TH_ACTIVE_OBJECT, TH_ACTIVE_SPLINE, TH_ACTIVE_VERT, TH_ANIM_ACTIVE, TH_ANIM_INACTIVE, TH_ANIM_PREVIEW_RANGE, TH_AXIS_X, TH_AXIS_Y, TH_AXIS_Z, TH_BACK, TH_BACK_GRAD, TH_BACKGROUND_TYPE, TH_BONE_LOCKED_WEIGHT, TH_BONE_POSE, TH_BONE_POSE_ACTIVE, TH_BONE_SOLID, TH_BUNDLE_SOLID, TH_BUTBACK, TH_BUTBACK_TEXT, TH_BUTBACK_TEXT_HI, TH_CAMERA, TH_CAMERA_PATH, TH_CFRAME, TH_CONSOLE_CURSOR, TH_CONSOLE_ERROR, TH_CONSOLE_INFO, TH_CONSOLE_INPUT, TH_CONSOLE_OUTPUT, TH_CONSOLE_SELECT, TH_DIS_MARKER, TH_DOPESHEET_CHANNELOB, TH_DOPESHEET_CHANNELSUBOB, TH_DOPESHEET_IPOLINE, TH_DRAWEXTRA_EDGEANG, TH_DRAWEXTRA_EDGELEN, TH_DRAWEXTRA_FACEANG, TH_DRAWEXTRA_FACEAREA, TH_EDGE, TH_EDGE_BEVEL, TH_EDGE_CREASE, TH_EDGE_FACESEL, TH_EDGE_SEAM, TH_EDGE_SELECT, TH_EDGE_SHARP, TH_EDITED_OBJECT, TH_EDITMESH_ACTIVE, TH_EDITOR_OUTLINE, TH_EMPTY, TH_FACE, TH_FACE_BACK, TH_FACE_DOT, TH_FACE_FRONT, TH_FACE_SELECT, TH_FACEDOT_SIZE, TH_FREESTYLE_EDGE_MARK, TH_FREESTYLE_FACE_MARK, TH_GIZMO_A, TH_GIZMO_B, TH_GIZMO_HI, TH_GIZMO_PRIMARY, TH_GIZMO_SECONDARY, TH_GIZMO_VIEW_ALIGN, TH_GP_VERTEX, TH_GP_VERTEX_SELECT, TH_GP_VERTEX_SIZE, TH_GRID, TH_GROUP, TH_GROUP_ACTIVE, TH_HANDLE_ALIGN, TH_HANDLE_AUTO, TH_HANDLE_AUTOCLAMP, TH_HANDLE_FREE, TH_HANDLE_SEL_ALIGN, TH_HANDLE_SEL_AUTO, TH_HANDLE_SEL_AUTOCLAMP, TH_HANDLE_SEL_FREE, TH_HANDLE_SEL_VECT, TH_HANDLE_VECT, TH_HANDLE_VERTEX, TH_HANDLE_VERTEX_SELECT, TH_HANDLE_VERTEX_SIZE, TH_HEADER, TH_HEADER_ACTIVE, TH_HEADER_TEXT, TH_HEADER_TEXT_HI, TH_HILITE, TH_ICON_COLLECTION, TH_ICON_FOLDER, TH_ICON_FUND, TH_ICON_MODIFIER, TH_ICON_OBJECT, TH_ICON_OBJECT_DATA, TH_ICON_SCENE, TH_ICON_SHADING, TH_INFO_DEBUG, TH_INFO_DEBUG_TEXT, TH_INFO_ERROR, TH_INFO_ERROR_TEXT, TH_INFO_INFO, TH_INFO_INFO_TEXT, TH_INFO_OPERATOR, TH_INFO_OPERATOR_TEXT, TH_INFO_PROPERTY, TH_INFO_PROPERTY_TEXT, TH_INFO_SELECTED, TH_INFO_SELECTED_TEXT, TH_INFO_WARNING, TH_INFO_WARNING_TEXT, TH_KEYBORDER, TH_KEYBORDER_SELECT, TH_KEYTYPE_BREAKDOWN, TH_KEYTYPE_BREAKDOWN_SELECT, TH_KEYTYPE_EXTREME, TH_KEYTYPE_EXTREME_SELECT, TH_KEYTYPE_JITTER, TH_KEYTYPE_JITTER_SELECT, TH_KEYTYPE_KEYFRAME, TH_KEYTYPE_KEYFRAME_SELECT, TH_KEYTYPE_MOVEHOLD, TH_KEYTYPE_MOVEHOLD_SELECT, TH_LIGHT, TH_LINENUMBERS, TH_LNORMAL, TH_LOCK_MARKER, TH_MARKER, TH_MARKER_OUTLINE, TH_MATCH, TH_METADATA_BG, TH_METADATA_TEXT, TH_NLA_META, TH_NLA_META_SEL, TH_NLA_SOUND, TH_NLA_SOUND_SEL, TH_NLA_TRACK, TH_NLA_TRANSITION, TH_NLA_TRANSITION_SEL, TH_NLA_TWEAK, TH_NLA_TWEAK_DUPLI, TH_NODE, TH_NODE_ATTRIBUTE, TH_NODE_COLOR, TH_NODE_CONVERTER, TH_NODE_CURVING, TH_NODE_DISTORT, TH_NODE_FILTER, TH_NODE_FRAME, TH_NODE_GEOMETRY, TH_NODE_GRID_LEVELS, TH_NODE_GROUP, TH_NODE_INPUT, TH_NODE_INTERFACE, TH_NODE_LAYOUT, TH_NODE_MATTE, TH_NODE_OUTPUT, TH_NODE_PATTERN, TH_NODE_SCRIPT, TH_NODE_SHADER, TH_NODE_TEXTURE, TH_NODE_VECTOR, TH_NORMAL, TH_NURB_SEL_ULINE, TH_NURB_SEL_VLINE, TH_NURB_ULINE, TH_NURB_VLINE, TH_OBCENTER_DIA, TH_OUTLINE_WIDTH, TH_PAINT_CURVE_HANDLE, TH_PAINT_CURVE_PIVOT, TH_PANEL_BACK, TH_PANEL_HEADER, TH_PANEL_SUB_BACK, TH_PATH_AFTER, TH_PATH_BEFORE, TH_PATH_KEYFRAME_AFTER, TH_PATH_KEYFRAME_BEFORE, TH_PREVIEW_BACK, TH_REDALERT, TH_ROW_ALTERNATE, TH_SCROLL_TEXT, TH_SEL_MARKER, TH_SELECT, TH_SELECT_ACTIVE, TH_SELECT_HIGHLIGHT, TH_SELECTED_OBJECT, TH_SEQ_ACTIVE, TH_SEQ_AUDIO, TH_SEQ_COLOR, TH_SEQ_EFFECT, TH_SEQ_IMAGE, TH_SEQ_MASK, TH_SEQ_META, TH_SEQ_MOVIE, TH_SEQ_MOVIECLIP, TH_SEQ_PREVIEW, TH_SEQ_SCENE, TH_SEQ_SELECTED, TH_SEQ_TEXT, TH_SHADE1, TH_SHADE2, TH_SKIN_ROOT, TH_SPEAKER, TH_STITCH_PREVIEW_ACTIVE, TH_STITCH_PREVIEW_EDGE, TH_STITCH_PREVIEW_FACE, TH_STITCH_PREVIEW_STITCHABLE, TH_STITCH_PREVIEW_UNSTITCHABLE, TH_STITCH_PREVIEW_VERT, TH_STRIP, TH_STRIP_SELECT, TH_SYNTAX_B, TH_SYNTAX_C, TH_SYNTAX_D, TH_SYNTAX_L, TH_SYNTAX_N, TH_SYNTAX_R, TH_SYNTAX_S, TH_SYNTAX_V, TH_TAB_ACTIVE, TH_TAB_BACK, TH_TAB_INACTIVE, TH_TAB_OUTLINE, TH_TEXT, TH_TEXT_HI, TH_THEMEUI, TH_TIME_GP_KEYFRAME, TH_TIME_KEYFRAME, TH_TIME_MARKER_LINE, TH_TIME_MARKER_LINE_SELECTED, TH_TIME_SCRUB_BACKGROUND, TH_TITLE, TH_TRANSFORM, TH_TRANSPARENT_CHECKER_PRIMARY, TH_TRANSPARENT_CHECKER_SECONDARY, TH_TRANSPARENT_CHECKER_SIZE, TH_UNDEFINED, TH_UV_SHADOW, TH_V3D_CLIPPING_BORDER, TH_VERTEX, TH_VERTEX_ACTIVE, TH_VERTEX_BEVEL, TH_VERTEX_SELECT, TH_VERTEX_SIZE, TH_VERTEX_UNREFERENCED, TH_VIEW_OVERLAY, TH_VNORMAL, TH_WIDGET_EMBOSS, TH_WIDGET_TEXT_CURSOR, TH_WIRE, TH_WIRE_EDIT, TH_WIRE_INNER, theme_active, theme_regionid, ThemeSpace::time_gp_keyframe, ThemeSpace::time_keyframe, ThemeSpace::time_marker_line, ThemeSpace::time_marker_line_selected, ThemeSpace::time_scrub_background, ThemeSpace::title, ThemeSpace::transform, ThemeUI::transparent_checker_primary, ThemeUI::transparent_checker_secondary, ThemeUI::transparent_checker_size, bTheme::tui, ThemeSpace::uv_shadow, ThemeSpace::vertex, ThemeSpace::vertex_active, ThemeSpace::vertex_bevel, ThemeSpace::vertex_normal, ThemeSpace::vertex_select, ThemeSpace::vertex_size, ThemeSpace::vertex_unreferenced, ThemeSpace::view_overlay, ThemeUI::wcol_scroll, ThemeUI::widget_emboss, ThemeUI::widget_text_cursor, ThemeSpace::wire, ThemeSpace::wire_edit, ThemeUI::xaxis, ThemeUI::yaxis, and ThemeUI::zaxis.
Referenced by UI_GetIconThemeColor4ubv(), UI_GetThemeColor3fv(), UI_GetThemeColor3ubv(), UI_GetThemeColor4fv(), UI_GetThemeColor4ubv(), UI_GetThemeColorBlend3f(), UI_GetThemeColorBlend3ubv(), UI_GetThemeColorBlend4f(), UI_GetThemeColorBlendShade3fv(), UI_GetThemeColorBlendShade3ubv(), UI_GetThemeColorBlendShade4fv(), UI_GetThemeColorShade3fv(), UI_GetThemeColorShade3ubv(), UI_GetThemeColorShade4fv(), UI_GetThemeColorShade4ubv(), UI_GetThemeColorShadeAlpha4fv(), UI_GetThemeColorShadeAlpha4ubv(), UI_GetThemeColorType3fv(), UI_GetThemeColorType3ubv(), UI_GetThemeColorType4fv(), UI_GetThemeColorType4ubv(), UI_GetThemeValue(), UI_GetThemeValuef(), UI_GetThemeValueType(), and UI_GetThemeValueTypef().
int UI_ThemeMenuShadowWidth | ( | void | ) |
Return shadow width outside menus and popups.
Definition at line 1456 of file resources.c.
References ThemeUI::menu_shadow_width, bTheme::tui, UI_DPI_FAC, and UI_GetTheme().
Referenced by widget_softshadow().
|
static |
Definition at line 40 of file resources.c.
Referenced by UI_Theme_Restore(), and UI_Theme_Store().