UI: Remove unused theme properties
There are many accumulated unused properties in theme. Generally, it's a mess, lot of copy-paste errors and leftovers between editors, shared functions with no actual use, etc. Some were just added and never used, like Pattern and Layout nodes, which were meant to be used with Texture Nodes I believe, but it never happened. Overall 19 properties removed: - 3D Viewport: Edge UV Face Select - 3D Viewport: Last Selected Point - Dope Sheet/Timeline: Value Sliders - Dope Sheet/Timeline: View Sliders - Nonlinear Animation: View Sliders - Video Sequencer: Window Sliders - Graph Editor/Drivers: Window Sliders - Graph Editor/Drivers: Vertex Bevel - Graph Editor/Drivers: Vertex Group Unreferenced - Image/UV Editor: Vertex Bevel - Image/UV Editor: Vertex Group Unreferenced - Image/UV Editor: Freestyle Face Mask - Image/UV Editor: Face Retopology - Image/UV Editor: Face Orientation Front - Image/UV Editor: Face Orientation Back - Node Editors: Selected Text - Node Editors: Pattern Node - Node Editors: Layout Node - Video Sequencer: Draw Action --- Details: - Made Vertex Bevel and Vertex Group Unreferenced colors in `rna_def_userdef_theme_spaces_vertex` optional, so that they don't appear in Graph Editor and UV Editor theme properties, where they're unused. - Same thing in `rna_def_userdef_theme_spaces_face` for face attributes (Freestyle Mark, Retopology), so that they don't appear in UV Editor, where they're unused. Also did same for face orientation colors, but used different argument for them, since they could be used in future (remember seeing PR for this). Pull Request: https://projects.blender.org/blender/blender/pulls/143782
This commit is contained in:

committed by
Nika Kutsniashvili

parent
5dc5bd5a2b
commit
15567f597d
@@ -348,7 +348,6 @@ const bTheme U_theme_default = {
|
||||
.edge_mode_select = RGBA(0xffd800ff),
|
||||
.edge_seam = RGBA(0xdb2512ff),
|
||||
.edge_sharp = RGBA(0x00ffffff),
|
||||
.edge_facesel = RGBA(0x4b4b4bff),
|
||||
.edge_crease = RGBA(0xcc0099ff),
|
||||
.edge_bevel = RGBA(0x00a5ffff),
|
||||
.face = RGBA(0xffffff02),
|
||||
@@ -380,7 +379,6 @@ const bTheme U_theme_default = {
|
||||
.act_spline = RGBA(0xdb2512ff),
|
||||
.nurb_sel_uline = RGBA(0xf0ff40ff),
|
||||
.nurb_sel_vline = RGBA(0xf090a0ff),
|
||||
.lastsel_point = RGBA(0xffffffff),
|
||||
.vertex_size = 3,
|
||||
.edge_width = 1,
|
||||
.outline_width = 1,
|
||||
@@ -615,7 +613,6 @@ const bTheme U_theme_default = {
|
||||
.face = RGBA(0xffffff0a),
|
||||
.face_select = RGBA(0xff85003c),
|
||||
.face_dot = RGBA(0xff8500ff),
|
||||
.freestyle_face_mark = RGBA(0x7fff7f33),
|
||||
.vertex_size = 3,
|
||||
.edge_width = 1,
|
||||
.outline_width = 1,
|
||||
@@ -721,8 +718,6 @@ const bTheme U_theme_default = {
|
||||
.nodeclass_texture = RGBA(0x79461dff),
|
||||
.nodeclass_shader = RGBA(0x2b652bff),
|
||||
.nodeclass_script = RGBA(0x203c3cff),
|
||||
.nodeclass_pattern = RGBA(0x6c696fff),
|
||||
.nodeclass_layout = RGBA(0x6c696fff),
|
||||
.nodeclass_geometry = RGBA(0x1d725eff),
|
||||
.nodeclass_attribute = RGBA(0x1d2546ff),
|
||||
.node_zone_simulation = RGBA(0x66416233),
|
||||
|
@@ -447,7 +447,6 @@
|
||||
edge_sharp="#00ffff"
|
||||
edge_crease="#cc0099"
|
||||
edge_bevel="#00a5ff"
|
||||
edge_facesel="#4b4b4b"
|
||||
freestyle_edge_mark="#7fff7f"
|
||||
face="#00000012"
|
||||
face_select="#ffa30033"
|
||||
@@ -463,7 +462,6 @@
|
||||
nurb_sel_uline="#f0ff40"
|
||||
nurb_sel_vline="#f090a0"
|
||||
act_spline="#db2512"
|
||||
lastsel_point="#ffffff"
|
||||
extra_edge_len="#ff6149"
|
||||
extra_edge_angle="#cccc00"
|
||||
extra_face_angle="#b3b3ff"
|
||||
@@ -521,15 +519,11 @@
|
||||
<ThemeGraphEditor
|
||||
grid="#5e5e5e"
|
||||
time_scrub_background="#808080e6"
|
||||
window_sliders="#969696"
|
||||
channels_region="#999999"
|
||||
vertex="#000000"
|
||||
vertex_select="#ff8500"
|
||||
vertex_active="#ffffff"
|
||||
vertex_size="6"
|
||||
vertex_bevel="#000000"
|
||||
vertex_unreferenced="#000000"
|
||||
lastsel_point="#ffffff"
|
||||
>
|
||||
<space>
|
||||
<ThemeSpaceGeneric
|
||||
@@ -590,7 +584,6 @@
|
||||
<nla_editor>
|
||||
<ThemeNLAEditor
|
||||
grid="#5e5e5e"
|
||||
view_sliders="#969696"
|
||||
nla_track="#424242"
|
||||
active_action="#cc701a66"
|
||||
active_action_unset="#9987614d"
|
||||
@@ -642,8 +635,6 @@
|
||||
<ThemeDopeSheet
|
||||
grid="#4d4d4d"
|
||||
time_scrub_background="#808080e6"
|
||||
value_sliders="#000000"
|
||||
view_sliders="#969696"
|
||||
channels="#707070ff"
|
||||
channels_selected="#60c04044"
|
||||
long_key="#1a151580"
|
||||
@@ -703,17 +694,11 @@
|
||||
vertex="#000000"
|
||||
vertex_select="#ff8500"
|
||||
vertex_size="3"
|
||||
vertex_bevel="#000000"
|
||||
vertex_unreferenced="#000000"
|
||||
face="#ffffff0a"
|
||||
face_select="#ff85003c"
|
||||
face_mode_select="#00000000"
|
||||
face_dot="#ff8500"
|
||||
facedot_size="3"
|
||||
freestyle_face_mark="#7fff7f33"
|
||||
face_retopology="#50c8ff1e"
|
||||
face_back="#ff0000b3"
|
||||
face_front="#0000ffb3"
|
||||
editmesh_active="#ffffff40"
|
||||
wire_edit="#c0c0c0"
|
||||
edge_width="1"
|
||||
@@ -755,7 +740,6 @@
|
||||
<sequence_editor>
|
||||
<ThemeSequenceEditor
|
||||
grid="#404040"
|
||||
window_sliders="#a0a0a0"
|
||||
movie_strip="#4d6890"
|
||||
movieclip_strip="#8f4c4c"
|
||||
image_strip="#8f744b"
|
||||
@@ -780,7 +764,6 @@
|
||||
keyframe_generated_selected="#a28962"
|
||||
keyframe_border="#000000ff"
|
||||
keyframe_border_selected="#000000ff"
|
||||
draw_action="#50c8ff"
|
||||
preview_back="#000000"
|
||||
metadatabg="#000000"
|
||||
metadatatext="#ffffff"
|
||||
@@ -888,7 +871,6 @@
|
||||
wire="#1a1a1aff"
|
||||
wire_inner="#8d8d8d"
|
||||
wire_select="#ffffffb3"
|
||||
selected_text="#7f7f7f"
|
||||
node_backdrop="#666666ff"
|
||||
converter_node="#4482a3"
|
||||
color_node="#8e8e3f"
|
||||
@@ -907,8 +889,6 @@
|
||||
texture_node="#99673d"
|
||||
shader_node="#4c864c"
|
||||
script_node="#405c5c"
|
||||
pattern_node="#6c696f"
|
||||
layout_node="#6c696f"
|
||||
geometry_node="#3d937e"
|
||||
attribute_node="#001566"
|
||||
simulation_zone="#66416233"
|
||||
|
@@ -272,7 +272,6 @@ void Resources::update_theme_settings(const DRWContext *ctx, const State &state)
|
||||
UI_GetThemeColor4fv(TH_EDGE_SHARP, gb.colors.edge_sharp);
|
||||
UI_GetThemeColor4fv(TH_EDGE_CREASE, gb.colors.edge_crease);
|
||||
UI_GetThemeColor4fv(TH_EDGE_BEVEL, gb.colors.edge_bweight);
|
||||
UI_GetThemeColor4fv(TH_EDGE_FACESEL, gb.colors.edge_face_select);
|
||||
UI_GetThemeColor4fv(TH_FACE, gb.colors.face);
|
||||
UI_GetThemeColor4fv(TH_FACE_SELECT, gb.colors.face_select);
|
||||
UI_GetThemeColor4fv(TH_FACE_MODE_SELECT, gb.colors.face_mode_select);
|
||||
|
@@ -104,7 +104,6 @@ enum ThemeColorID {
|
||||
TH_EDGE_SELECT, /* Stands for edge selection, not edge select mode. */
|
||||
TH_EDGE_MODE_SELECT,
|
||||
TH_EDGE_SEAM,
|
||||
TH_EDGE_FACESEL,
|
||||
TH_FACE,
|
||||
TH_FACE_SELECT, /* Stands for face selection, not face select mode. */
|
||||
TH_FACE_MODE_SELECT,
|
||||
@@ -142,7 +141,6 @@ enum ThemeColorID {
|
||||
TH_HANDLE_SEL_AUTOCLAMP,
|
||||
|
||||
TH_ACTIVE_SPLINE,
|
||||
TH_ACTIVE_VERT, /* equivalent of TH_EDITMESH_ACTIVE for splines */
|
||||
|
||||
TH_SYNTAX_B,
|
||||
TH_SYNTAX_V,
|
||||
@@ -190,9 +188,7 @@ enum ThemeColorID {
|
||||
TH_NODE_FILTER,
|
||||
TH_NODE_VECTOR,
|
||||
TH_NODE_TEXTURE,
|
||||
TH_NODE_PATTERN,
|
||||
TH_NODE_SCRIPT,
|
||||
TH_NODE_LAYOUT,
|
||||
TH_NODE_SHADER,
|
||||
TH_NODE_INTERFACE,
|
||||
TH_NODE_CONVERTER,
|
||||
|
@@ -426,9 +426,6 @@ const uchar *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colorid)
|
||||
case TH_EDITMESH_ACTIVE:
|
||||
cp = ts->editmesh_active;
|
||||
break;
|
||||
case TH_EDGE_FACESEL:
|
||||
cp = ts->edge_facesel;
|
||||
break;
|
||||
case TH_FACE:
|
||||
cp = ts->face;
|
||||
break;
|
||||
@@ -565,9 +562,6 @@ const uchar *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colorid)
|
||||
case TH_ACTIVE_SPLINE:
|
||||
cp = ts->act_spline;
|
||||
break;
|
||||
case TH_ACTIVE_VERT:
|
||||
cp = ts->lastsel_point;
|
||||
break;
|
||||
|
||||
case TH_HANDLE_FREE:
|
||||
cp = btheme->common.curves.handle_free;
|
||||
@@ -656,15 +650,9 @@ const uchar *UI_ThemeGetColorPtr(bTheme *btheme, int spacetype, int colorid)
|
||||
case TH_NODE_TEXTURE:
|
||||
cp = ts->nodeclass_texture;
|
||||
break;
|
||||
case TH_NODE_PATTERN:
|
||||
cp = ts->nodeclass_pattern;
|
||||
break;
|
||||
case TH_NODE_SCRIPT:
|
||||
cp = ts->nodeclass_script;
|
||||
break;
|
||||
case TH_NODE_LAYOUT:
|
||||
cp = ts->nodeclass_layout;
|
||||
break;
|
||||
case TH_NODE_GEOMETRY:
|
||||
cp = ts->nodeclass_geometry;
|
||||
break;
|
||||
|
@@ -1400,10 +1400,6 @@ static int node_get_colorid(TreeDrawContext &tree_draw_ctx, const bNode &node)
|
||||
return TH_NODE_SHADER;
|
||||
case NODE_CLASS_SCRIPT:
|
||||
return TH_NODE_SCRIPT;
|
||||
case NODE_CLASS_PATTERN:
|
||||
return TH_NODE_PATTERN;
|
||||
case NODE_CLASS_LAYOUT:
|
||||
return TH_NODE_LAYOUT;
|
||||
case NODE_CLASS_GEOMETRY:
|
||||
return TH_NODE_GEOMETRY;
|
||||
case NODE_CLASS_ATTRIBUTE:
|
||||
|
@@ -303,7 +303,7 @@ typedef struct ThemeSpace {
|
||||
unsigned char vertex[4], vertex_select[4], vertex_active[4], vertex_bevel[4],
|
||||
vertex_unreferenced[4];
|
||||
unsigned char edge[4], edge_select[4], edge_mode_select[4];
|
||||
unsigned char edge_seam[4], edge_sharp[4], edge_facesel[4], edge_crease[4], edge_bevel[4];
|
||||
unsigned char edge_seam[4], edge_sharp[4], edge_crease[4], edge_bevel[4];
|
||||
/** Solid faces. */
|
||||
unsigned char face[4], face_select[4], face_mode_select[4], face_retopology[4];
|
||||
unsigned char face_back[4], face_front[4];
|
||||
@@ -322,7 +322,7 @@ typedef struct ThemeSpace {
|
||||
char _pad10[4];
|
||||
|
||||
unsigned char nurb_uline[4], nurb_vline[4];
|
||||
unsigned char act_spline[4], nurb_sel_uline[4], nurb_sel_vline[4], lastsel_point[4];
|
||||
unsigned char act_spline[4], nurb_sel_uline[4], nurb_sel_vline[4];
|
||||
|
||||
/** Dope-sheet. */
|
||||
unsigned char ds_ipoline[4];
|
||||
@@ -355,7 +355,6 @@ typedef struct ThemeSpace {
|
||||
unsigned char nodeclass_output[4], nodeclass_filter[4];
|
||||
unsigned char nodeclass_vector[4], nodeclass_texture[4];
|
||||
unsigned char nodeclass_shader[4], nodeclass_script[4];
|
||||
unsigned char nodeclass_pattern[4], nodeclass_layout[4];
|
||||
unsigned char nodeclass_geometry[4], nodeclass_attribute[4];
|
||||
|
||||
unsigned char node_zone_simulation[4];
|
||||
|
@@ -2505,7 +2505,9 @@ static void rna_def_userdef_theme_asset_shelf(BlenderRNA *brna)
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
}
|
||||
|
||||
static void rna_def_userdef_theme_spaces_vertex(StructRNA *srna, const bool has_vertex_active)
|
||||
static void rna_def_userdef_theme_spaces_vertex(StructRNA *srna,
|
||||
const bool has_vertex_active,
|
||||
const bool has_vertex_attributes)
|
||||
{
|
||||
PropertyRNA *prop;
|
||||
|
||||
@@ -2531,15 +2533,17 @@ static void rna_def_userdef_theme_spaces_vertex(StructRNA *srna, const bool has_
|
||||
RNA_def_property_ui_text(prop, "Vertex Size", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "vertex_bevel", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Vertex Bevel", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
if (has_vertex_attributes) {
|
||||
prop = RNA_def_property(srna, "vertex_bevel", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Vertex Bevel", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "vertex_unreferenced", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Vertex Group Unreferenced", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
prop = RNA_def_property(srna, "vertex_unreferenced", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Vertex Group Unreferenced", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_def_userdef_theme_spaces_edge(StructRNA *srna)
|
||||
@@ -2577,18 +2581,15 @@ static void rna_def_userdef_theme_spaces_edge(StructRNA *srna)
|
||||
RNA_def_property_ui_text(prop, "Edge Bevel", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_gpu_update");
|
||||
|
||||
prop = RNA_def_property(srna, "edge_facesel", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Edge UV Face Select", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "freestyle_edge_mark", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Freestyle Edge Mark", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
}
|
||||
|
||||
static void rna_def_userdef_theme_spaces_face(StructRNA *srna)
|
||||
static void rna_def_userdef_theme_spaces_face(StructRNA *srna,
|
||||
const bool has_face_attributes,
|
||||
const bool has_face_orientation)
|
||||
{
|
||||
PropertyRNA *prop;
|
||||
|
||||
@@ -2617,25 +2618,29 @@ static void rna_def_userdef_theme_spaces_face(StructRNA *srna)
|
||||
RNA_def_property_ui_text(prop, "Face Dot Size", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "freestyle_face_mark", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 4);
|
||||
RNA_def_property_ui_text(prop, "Freestyle Face Mark", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
if (has_face_attributes) {
|
||||
prop = RNA_def_property(srna, "freestyle_face_mark", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 4);
|
||||
RNA_def_property_ui_text(prop, "Freestyle Face Mark", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "face_retopology", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 4);
|
||||
RNA_def_property_ui_text(prop, "Face Retopology", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
prop = RNA_def_property(srna, "face_retopology", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 4);
|
||||
RNA_def_property_ui_text(prop, "Face Retopology", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
}
|
||||
|
||||
prop = RNA_def_property(srna, "face_back", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 4);
|
||||
RNA_def_property_ui_text(prop, "Face Orientation Back", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
if (has_face_orientation) {
|
||||
prop = RNA_def_property(srna, "face_back", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 4);
|
||||
RNA_def_property_ui_text(prop, "Face Orientation Back", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "face_front", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 4);
|
||||
RNA_def_property_ui_text(prop, "Face Orientation Front", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
prop = RNA_def_property(srna, "face_front", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 4);
|
||||
RNA_def_property_ui_text(prop, "Face Orientation Front", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
}
|
||||
}
|
||||
|
||||
static void rna_def_userdef_theme_spaces_paint_curves(StructRNA *srna)
|
||||
@@ -2773,9 +2778,9 @@ static void rna_def_userdef_theme_space_view3d(BlenderRNA *brna)
|
||||
|
||||
/* Mesh Object specific */
|
||||
|
||||
rna_def_userdef_theme_spaces_vertex(srna, false);
|
||||
rna_def_userdef_theme_spaces_vertex(srna, false, true);
|
||||
rna_def_userdef_theme_spaces_edge(srna);
|
||||
rna_def_userdef_theme_spaces_face(srna);
|
||||
rna_def_userdef_theme_spaces_face(srna, true, true);
|
||||
|
||||
prop = RNA_def_property(srna, "extra_edge_len", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 3);
|
||||
@@ -2850,12 +2855,6 @@ static void rna_def_userdef_theme_space_view3d(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Active Spline", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "lastsel_point", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "lastsel_point");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Last Selected Point", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
/* Armature Object specific. */
|
||||
|
||||
prop = RNA_def_property(srna, "bone_pose", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
@@ -2971,19 +2970,13 @@ static void rna_def_userdef_theme_space_graph(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Scrubbing/Markers Region", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "window_sliders", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "shade1");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Window Sliders", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "channels_region", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "shade2");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Channels Region", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
rna_def_userdef_theme_spaces_vertex(srna, true);
|
||||
rna_def_userdef_theme_spaces_vertex(srna, true, false);
|
||||
}
|
||||
|
||||
static void rna_def_userdef_theme_space_file(BlenderRNA *brna)
|
||||
@@ -3340,12 +3333,6 @@ static void rna_def_userdef_theme_space_node(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Wire Select", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "selected_text", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "shade2");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Selected Text", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "node_backdrop", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "syntaxl");
|
||||
RNA_def_property_array(prop, 4);
|
||||
@@ -3457,18 +3444,6 @@ static void rna_def_userdef_theme_space_node(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Script Node", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "pattern_node", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "nodeclass_pattern");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Pattern Node", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "layout_node", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "nodeclass_layout");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Layout Node", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "geometry_node", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "nodeclass_geometry");
|
||||
RNA_def_property_array(prop, 3);
|
||||
@@ -3551,8 +3526,8 @@ static void rna_def_userdef_theme_space_image(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Grid", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
rna_def_userdef_theme_spaces_vertex(srna, false);
|
||||
rna_def_userdef_theme_spaces_face(srna);
|
||||
rna_def_userdef_theme_spaces_vertex(srna, false, false);
|
||||
rna_def_userdef_theme_spaces_face(srna, false, false);
|
||||
|
||||
prop = RNA_def_property(srna, "editmesh_active", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 4);
|
||||
@@ -3657,12 +3632,6 @@ static void rna_def_userdef_theme_space_seq(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Grid", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "window_sliders", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "shade1");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Window Sliders", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "movie_strip", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "movie");
|
||||
RNA_def_property_array(prop, 3);
|
||||
@@ -3805,12 +3774,6 @@ static void rna_def_userdef_theme_space_seq(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Keyframe Border Selected", "Color of selected keyframe border");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "draw_action", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "bone_pose");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Draw Action", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "preview_back", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "preview_back");
|
||||
RNA_def_property_array(prop, 3);
|
||||
@@ -3872,18 +3835,6 @@ static void rna_def_userdef_theme_space_action(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Scrubbing/Markers Region", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "value_sliders", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "face");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Value Sliders", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "view_sliders", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "shade1");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "View Sliders", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "channels", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "shade2");
|
||||
RNA_def_property_array(prop, 4);
|
||||
@@ -4044,12 +3995,6 @@ static void rna_def_userdef_theme_space_nla(BlenderRNA *brna)
|
||||
RNA_def_property_ui_text(prop, "Grid", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "view_sliders", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "shade1");
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "View Sliders", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "nla_track", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_float_sdna(prop, nullptr, "nla_track");
|
||||
RNA_def_property_array(prop, 3);
|
||||
|
Reference in New Issue
Block a user