Property Search: Add "search match" theme color
We will use a highlight on panel headers to convey that they have a search match, so this commit initializes the theme color for the properties editor. Differential Revision: https://developer.blender.org/D8854
This commit is contained in:
parent
6b29c3fa07
commit
f59ce4d55c
Notes:
blender-bot
2023-02-14 06:57:56 +01:00
Referenced by issue #77824, Properties Search Implementation
|
@ -262,6 +262,7 @@ const bTheme U_theme_default = {
|
|||
.icon_folder = RGBA(0xe3c16eff),
|
||||
},
|
||||
.space_properties = {
|
||||
.match = RGBA(0x5680c2ff),
|
||||
.back = RGBA(0x42424200),
|
||||
.title = RGBA(0xd4d4d4ff),
|
||||
.text = RGBA(0xe6e6e6ff),
|
||||
|
|
|
@ -845,7 +845,9 @@
|
|||
</ThemeSequenceEditor>
|
||||
</sequence_editor>
|
||||
<properties>
|
||||
<ThemeProperties>
|
||||
<ThemeProperties
|
||||
match="#5680c2"
|
||||
>
|
||||
<space>
|
||||
<ThemeSpaceGeneric
|
||||
back="#b3b3b3"
|
||||
|
|
|
@ -236,6 +236,8 @@ static void do_versions_theme(const UserDef *userdef, bTheme *btheme)
|
|||
*/
|
||||
{
|
||||
/* Keep this block, even when empty. */
|
||||
|
||||
FROM_DEFAULT_V4_UCHAR(space_properties.match);
|
||||
}
|
||||
|
||||
#undef FROM_DEFAULT_V4_UCHAR
|
||||
|
|
|
@ -2952,7 +2952,7 @@ static void rna_def_userdef_theme_space_node(BlenderRNA *brna)
|
|||
static void rna_def_userdef_theme_space_buts(BlenderRNA *brna)
|
||||
{
|
||||
StructRNA *srna;
|
||||
// PropertyRNA *prop;
|
||||
PropertyRNA *prop;
|
||||
|
||||
/* space_buts */
|
||||
|
||||
|
@ -2961,6 +2961,11 @@ static void rna_def_userdef_theme_space_buts(BlenderRNA *brna)
|
|||
RNA_def_struct_clear_flag(srna, STRUCT_UNDO);
|
||||
RNA_def_struct_ui_text(srna, "Theme Properties", "Theme settings for the Properties");
|
||||
|
||||
prop = RNA_def_property(srna, "match", PROP_FLOAT, PROP_COLOR_GAMMA);
|
||||
RNA_def_property_array(prop, 3);
|
||||
RNA_def_property_ui_text(prop, "Search Match", "");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
rna_def_userdef_theme_spaces_main(srna);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue