Merge pull request #116545 from passivestar/help-separators
Tweaks to EditorHelp separator colors
This commit is contained in:
commit
343f1329ed
3 changed files with 6 additions and 2 deletions
|
|
@ -219,8 +219,8 @@ void EditorHelp::_update_theme_item_cache() {
|
|||
theme_cache.qualifier_color = get_theme_color(SNAME("qualifier_color"), SNAME("EditorHelp"));
|
||||
theme_cache.type_color = get_theme_color(SNAME("type_color"), SNAME("EditorHelp"));
|
||||
theme_cache.override_color = get_theme_color(SNAME("override_color"), SNAME("EditorHelp"));
|
||||
theme_cache.primary_hr_color = Color(theme_cache.title_color, 0.25);
|
||||
theme_cache.secondary_hr_color = Color(theme_cache.comment_color, 0.25);
|
||||
theme_cache.primary_hr_color = get_theme_color(SNAME("primary_hr_color"), SNAME("EditorHelp"));
|
||||
theme_cache.secondary_hr_color = get_theme_color(SNAME("secondary_hr_color"), SNAME("EditorHelp"));
|
||||
|
||||
theme_cache.doc_font = get_theme_font(SNAME("doc"), EditorStringName(EditorFonts));
|
||||
theme_cache.doc_bold_font = get_theme_font(SNAME("doc_bold"), EditorStringName(EditorFonts));
|
||||
|
|
|
|||
|
|
@ -2337,6 +2337,8 @@ void ThemeClassic::populate_editor_styles(const Ref<EditorTheme> &p_theme, Edito
|
|||
p_theme->set_color("code_bg_color", "EditorHelp", p_config.dark_color_3);
|
||||
p_theme->set_color("kbd_bg_color", "EditorHelp", p_config.dark_color_1);
|
||||
p_theme->set_color("param_bg_color", "EditorHelp", p_config.dark_color_1);
|
||||
p_theme->set_color("primary_hr_color", "EditorHelp", p_config.base_color.lerp(p_config.mono_color_font, p_config.dark_theme ? 0.14 : 0.24));
|
||||
p_theme->set_color("secondary_hr_color", "EditorHelp", p_config.base_color.lerp(p_config.mono_color_font, p_config.dark_theme ? 0.12 : 0.22));
|
||||
p_theme->set_constant(SceneStringName(line_separation), "EditorHelp", Math::round(6 * EDSCALE));
|
||||
p_theme->set_constant(SceneStringName(paragraph_separation), "EditorHelp", Math::round(10 * EDSCALE));
|
||||
p_theme->set_constant("table_h_separation", "EditorHelp", 16 * EDSCALE);
|
||||
|
|
|
|||
|
|
@ -2651,6 +2651,8 @@ void ThemeModern::populate_editor_styles(const Ref<EditorTheme> &p_theme, Editor
|
|||
p_theme->set_color("code_bg_color", "EditorHelp", _get_base_color(p_config, 1.6, 0.8));
|
||||
p_theme->set_color("kbd_bg_color", "EditorHelp", p_config.dark_color_1);
|
||||
p_theme->set_color("param_bg_color", "EditorHelp", p_config.dark_color_1);
|
||||
p_theme->set_color("primary_hr_color", "EditorHelp", p_config.base_color.lerp(p_config.mono_color_font, p_config.dark_theme ? 0.14 : 0.24));
|
||||
p_theme->set_color("secondary_hr_color", "EditorHelp", p_config.base_color.lerp(p_config.mono_color_font, p_config.dark_theme ? 0.12 : 0.22));
|
||||
p_theme->set_constant(SceneStringName(line_separation), "EditorHelp", Math::round(6 * EDSCALE));
|
||||
p_theme->set_constant(SceneStringName(paragraph_separation), "EditorHelp", Math::round(10 * EDSCALE));
|
||||
p_theme->set_constant("table_h_separation", "EditorHelp", 16 * EDSCALE);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue