Blender V4.3
resources.cc File Reference
#include <cmath>
#include <cstdlib>
#include <cstring>
#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_vector.h"
#include "BLI_utildefines.h"
#include "BKE_addon.h"
#include "BKE_appdir.hh"
#include "BKE_main.hh"
#include "BKE_mesh_runtime.hh"
#include "BLO_userdef_default.h"
#include "BLF_api.hh"
#include "ED_screen.hh"
#include "UI_interface.hh"
#include "UI_interface_icons.hh"
#include "GPU_framebuffer.hh"
#include "interface_intern.hh"

Go to the source code of this file.

Functions

void ui_resources_init ()
 
void ui_resources_free ()
 
const ucharUI_ThemeGetColorPtr (bTheme *btheme, int spacetype, int colorid)
 
void UI_theme_init_default ()
 
void UI_style_init_default ()
 
void UI_SetTheme (int spacetype, int regionid)
 
bThemeUI_GetTheme ()
 
void UI_Theme_Store (bThemeState *theme_state)
 
void UI_Theme_Restore (const bThemeState *theme_state)
 
void UI_GetThemeColorShadeAlpha4ubv (int colorid, int coloffset, int alphaoffset, uchar col[4])
 
void UI_GetThemeColorBlend3ubv (int colorid1, int colorid2, float fac, uchar col[3])
 
void UI_GetThemeColorBlend3f (int colorid1, int colorid2, float fac, float r_col[3])
 
void UI_GetThemeColorBlend4f (int colorid1, int colorid2, float fac, float r_col[4])
 
void UI_FontThemeColor (int fontid, int colorid)
 
float UI_GetThemeValuef (int colorid)
 
int UI_GetThemeValue (int colorid)
 
float UI_GetThemeValueTypef (int colorid, int spacetype)
 
int UI_GetThemeValueType (int colorid, int spacetype)
 
void UI_GetThemeColor3fv (int colorid, float col[3])
 
void UI_GetThemeColor4fv (int colorid, float col[4])
 
void UI_GetThemeColorType4fv (int colorid, int spacetype, float col[4])
 
void UI_GetThemeColorShade3fv (int colorid, int offset, float col[3])
 
void UI_GetThemeColorShade3ubv (int colorid, int offset, uchar col[3])
 
void UI_GetThemeColorBlendShade3ubv (int colorid1, int colorid2, float fac, int offset, uchar col[3])
 
void UI_GetThemeColorShade4ubv (int colorid, int offset, uchar col[4])
 
void UI_GetThemeColorShadeAlpha4fv (int colorid, int coloffset, int alphaoffset, float col[4])
 
void UI_GetThemeColorBlendShade3fv (int colorid1, int colorid2, float fac, int offset, float col[3])
 
void UI_GetThemeColorBlendShade4fv (int colorid1, int colorid2, float fac, int offset, float col[4])
 
void UI_GetThemeColor3ubv (int colorid, uchar col[3])
 
void UI_GetThemeColorShade4fv (int colorid, int offset, float col[4])
 
void UI_GetThemeColor4ubv (int colorid, uchar col[4])
 
void UI_GetThemeColorType3fv (int colorid, int spacetype, float col[3])
 
void UI_GetThemeColorType3ubv (int colorid, int spacetype, uchar col[3])
 
void UI_GetThemeColorType4ubv (int colorid, int spacetype, uchar col[4])
 
bool UI_GetIconThemeColor4ubv (int colorid, uchar col[4])
 
void UI_GetColorPtrShade3ubv (const uchar cp[3], int offset, uchar r_col[3])
 
void UI_GetColorPtrBlendShade3ubv (const uchar cp1[3], const uchar cp2[3], float fac, int offset, uchar r_col[3])
 
void UI_ThemeClearColor (int colorid)
 
int UI_ThemeMenuShadowWidth ()
 
void UI_make_axis_color (const uchar col[3], const char axis, uchar r_col[3])
 

Variables

static bThemeState g_theme_state
 

Function Documentation

◆ UI_FontThemeColor()

◆ UI_GetColorPtrBlendShade3ubv()

void UI_GetColorPtrBlendShade3ubv ( const unsigned char cp1[3],
const unsigned char cp2[3],
float fac,
int offset,
unsigned char r_col[3] )

Get a 3 byte color, blended and shaded between two other char color pointers.

Definition at line 1494 of file resources.cc.

References b, CLAMP, and floor().

Referenced by color3ubv_from_seq(), draw_strips_background(), and UI_make_axis_color().

◆ UI_GetColorPtrShade3ubv()

void UI_GetColorPtrShade3ubv ( const unsigned char cp[3],
int offset,
unsigned char r_col[3] )

Shade a 3 byte color (same as UI_GetColorPtrBlendShade3ubv with 0.0 factor).

Definition at line 1477 of file resources.cc.

References b, CLAMP, and int.

Referenced by color3ubv_from_seq(), draw_strip_offsets(), draw_strips_background(), and strip_data_outline_params_set().

◆ UI_GetIconThemeColor4ubv()

bool UI_GetIconThemeColor4ubv ( int colorid,
unsigned char col[4] )

◆ UI_GetTheme()

◆ UI_GetThemeColor3fv()

void UI_GetThemeColor3fv ( int colorid,
float col[3] )

Get three color values, scaled to 0.0-1.0 range.

Definition at line 1227 of file resources.cc.

Referenced by UI_ThemeClearColor().

◆ UI_GetThemeColor3ubv()

◆ UI_GetThemeColor4fv()

void UI_GetThemeColor4fv ( int colorid,
float col[4] )

Get four color values, scaled to 0.0-1.0 range.

Definition at line 1235 of file resources.cc.

◆ UI_GetThemeColor4ubv()

◆ UI_GetThemeColorBlend3f()

void UI_GetThemeColorBlend3f ( int colorid1,
int colorid2,
float fac,
float r_col[3] )

◆ UI_GetThemeColorBlend3ubv()

void UI_GetThemeColorBlend3ubv ( int colorid1,
int colorid2,
float fac,
uchar col[3] )

Definition at line 1162 of file resources.cc.

◆ UI_GetThemeColorBlend4f()

◆ UI_GetThemeColorBlendShade3fv()

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 1341 of file resources.cc.

References b, CLAMP, col, float, floorf, g_theme_state, bThemeState::spacetype, bThemeState::theme, and UI_ThemeGetColorPtr().

Referenced by DRW_globals_update().

◆ UI_GetThemeColorBlendShade3ubv()

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 1287 of file resources.cc.

References blend, CLAMP, col, floorf, g_theme_state, bThemeState::spacetype, bThemeState::theme, 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().

◆ UI_GetThemeColorBlendShade4fv()

void UI_GetThemeColorBlendShade4fv ( int colorid1,
int colorid2,
float fac,
int offset,
float col[4] )

Definition at line 1361 of file resources.cc.

◆ UI_GetThemeColorShade3fv()

◆ UI_GetThemeColorShade3ubv()

◆ UI_GetThemeColorShade4fv()

void UI_GetThemeColorShade4fv ( int colorid,
int offset,
float col[4] )

Get four color values, range 0.0-1.0, complete with shading offset for the RGB components.

Definition at line 1393 of file resources.cc.

◆ UI_GetThemeColorShade4ubv()

void UI_GetThemeColorShade4ubv ( int colorid,
int offset,
uchar col[4] )

◆ UI_GetThemeColorShadeAlpha4fv()

void UI_GetThemeColorShadeAlpha4fv ( int colorid,
int coloffset,
int alphaoffset,
float col[4] )

Definition at line 1321 of file resources.cc.

◆ UI_GetThemeColorShadeAlpha4ubv()

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 1143 of file resources.cc.

◆ UI_GetThemeColorType3fv()

void UI_GetThemeColorType3fv ( int colorid,
int spacetype,
float col[3] )

Get a theme color from specified space type.

Definition at line 1423 of file resources.cc.

References col, float, g_theme_state, bThemeState::theme, and UI_ThemeGetColorPtr().

◆ UI_GetThemeColorType3ubv()

void UI_GetThemeColorType3ubv ( int colorid,
int spacetype,
uchar col[3] )

Definition at line 1431 of file resources.cc.

References col, g_theme_state, bThemeState::theme, and UI_ThemeGetColorPtr().

Referenced by knife_init_colors().

◆ UI_GetThemeColorType4fv()

void UI_GetThemeColorType4fv ( int colorid,
int spacetype,
float col[4] )

Get four color values from specified space type, scaled to 0.0-1.0 range.

Definition at line 1244 of file resources.cc.

References col, float, g_theme_state, bThemeState::theme, and UI_ThemeGetColorPtr().

Referenced by blender::ed::sculpt_paint::paint_draw_curve_cursor().

◆ UI_GetThemeColorType4ubv()

void UI_GetThemeColorType4ubv ( int colorid,
int spacetype,
uchar col[4] )

◆ UI_GetThemeValue()

int UI_GetThemeValue ( int colorid)

◆ UI_GetThemeValuef()

◆ UI_GetThemeValueType()

int UI_GetThemeValueType ( int colorid,
int spacetype )

◆ UI_GetThemeValueTypef()

float UI_GetThemeValueTypef ( int colorid,
int spacetype )

Definition at line 1215 of file resources.cc.

References float, g_theme_state, bThemeState::theme, and UI_ThemeGetColorPtr().

◆ UI_make_axis_color()

void UI_make_axis_color ( const uchar col[3],
const char axis,
uchar r_col[3] )

◆ ui_resources_free()

void ui_resources_free ( )

Definition at line 52 of file resources.cc.

References UI_icons_free().

Referenced by UI_exit().

◆ ui_resources_init()

void ui_resources_init ( )

Definition at line 47 of file resources.cc.

References UI_icons_init().

Referenced by UI_init().

◆ UI_SetTheme()

◆ UI_style_init_default()

void UI_style_init_default ( )

Definition at line 1100 of file resources.cc.

References BLI_freelistN(), and uiStyleInit().

Referenced by preferences_reset_default_theme_exec().

◆ UI_theme_init_default()

void UI_theme_init_default ( )

Initialize default theme.

Note
When you add new colors, created & saved themes need initialized use function below, #init_userdef_do_versions.

Definition at line 1079 of file resources.cc.

References bTheme::active_theme_area, BLI_addhead(), BLI_findstring(), BLI_listbase_rotate_first(), MEMCPY_STRUCT_AFTER, bTheme::name, offsetof, STRNCPY, U_theme_default, and UI_SetTheme().

Referenced by preferences_reset_default_theme_exec().

◆ UI_Theme_Restore()

◆ UI_Theme_Store()

void UI_Theme_Store ( bThemeState * theme_state)

For the rare case we need to temp swap in a different theme (off-screen render).

Definition at line 1134 of file resources.cc.

References g_theme_state.

Referenced by color3ubv_from_seq(), draw_seq_in_view(), ED_view3d_depth_override(), ED_view3d_draw_offscreen(), region_background_is_transparent(), vicon_keytype_draw_wrapper(), and view3d_opengl_select_ex().

◆ UI_ThemeClearColor()

◆ UI_ThemeGetColorPtr()

const uchar * UI_ThemeGetColorPtr ( bTheme * btheme,
int spacetype,
int colorid )

Only for buttons in theme editor!

Definition at line 61 of file resources.cc.

References ThemeSpace::act_marker, ThemeSpace::act_spline, ThemeSpace::active, ThemeSpace::active_object, ThemeSpace::active_strip, ThemeSpace::after_current_frame, ThemeSpace::anim_active, ThemeSpace::anim_non_active, ThemeSpace::anim_preview_range, ThemeSpace::asset_shelf, ThemeSpace::audio, ThemeAssetShelf::back, ThemeSpace::back, uiPanelColors::back, ThemeSpace::back_grad, ThemeSpace::background_type, ThemeSpace::before_current_frame, 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_passepartout, 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_mode_select, ThemeSpace::edge_seam, ThemeSpace::edge_select, ThemeSpace::edge_sharp, ThemeSpace::edge_width, ThemeSpace::edited_object, ThemeSpace::editmesh_active, ThemeUI::editor_border, ThemeUI::editor_outline, ThemeUI::editor_outline_active, 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_mode_select, ThemeSpace::face_retopology, ThemeSpace::face_select, ThemeSpace::facedot_size, ThemeSpace::freestyle_edge_mark, ThemeSpace::freestyle_face_mark, g_theme_state, 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, ThemeSpace::header, uiPanelColors::header, ThemeAssetShelf::header_back, ThemeSpace::header_text, ThemeSpace::header_text_hi, ThemeSpace::header_title, ThemeSpace::hilite, ThemeUI::icon_autokey, 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, uiWidgetColors::item, ThemeSpace::keyborder, ThemeSpace::keyborder_select, ThemeSpace::keytype_breakdown, ThemeSpace::keytype_breakdown_select, ThemeSpace::keytype_extreme, ThemeSpace::keytype_extreme_select, ThemeSpace::keytype_generated, ThemeSpace::keytype_generated_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::node_zone_foreach_geometry_element, ThemeSpace::node_zone_repeat, ThemeSpace::node_zone_simulation, 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, 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, bThemeState::regionid, RGN_TYPE_ASSET_SHELF, RGN_TYPE_ASSET_SHELF_HEADER, 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::simulated_frames, 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, 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, ThemeSpace::text, uiWidgetColors::text, ThemeSpace::text_hi, uiWidgetColors::text_sel, 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_PASSEPARTOUT, 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_MODE_SELECT, TH_EDGE_SEAM, TH_EDGE_SELECT, TH_EDGE_SHARP, TH_EDGE_WIDTH, TH_EDITED_OBJECT, TH_EDITMESH_ACTIVE, TH_EDITOR_BORDER, TH_EDITOR_OUTLINE, TH_EDITOR_OUTLINE_ACTIVE, TH_EMPTY, TH_FACE, TH_FACE_BACK, TH_FACE_DOT, TH_FACE_FRONT, TH_FACE_MODE_SELECT, TH_FACE_RETOPOLOGY, TH_FACE_SELECT, TH_FACEDOT_SIZE, TH_FRAME_AFTER, TH_FRAME_BEFORE, 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_TEXT, TH_HEADER_TEXT_HI, TH_HILITE, TH_ICON_AUTOKEY, 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_GENERATED, TH_KEYTYPE_GENERATED_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_NODE_ZONE_FOREACH_GEOMETRY_ELEMENT, TH_NODE_ZONE_REPEAT, TH_NODE_ZONE_SIMULATION, 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_SEQ_TRANSITION, TH_SHADE1, TH_SHADE2, TH_SIMULATED_FRAMES, 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_WIDGET_TEXT_HIGHLIGHT, TH_WIDGET_TEXT_SELECTION, TH_WIRE, TH_WIRE_EDIT, TH_WIRE_INNER, bThemeState::theme, ThemeSpace::time_gp_keyframe, ThemeSpace::time_keyframe, ThemeSpace::time_marker_line, ThemeSpace::time_marker_line_selected, ThemeSpace::time_scrub_background, ThemeSpace::title, ThemeSpace::transform, ThemeSpace::transition, 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::wcol_text, 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().

◆ UI_ThemeMenuShadowWidth()

int UI_ThemeMenuShadowWidth ( )

Return shadow width outside menus and popups.

Definition at line 1521 of file resources.cc.

References int, ThemeUI::menu_shadow_width, bTheme::tui, UI_GetTheme(), and UI_SCALE_FAC.

Referenced by widget_softshadow().

Variable Documentation

◆ g_theme_state