Customize RichTextLabel scrollbar

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By IvanVoirol

I want to edit the theme of a RichTextLabel scrollbar, but I can’t find anyway to do it.
I can’t even get get_v_scroll() to work to modify its theme… I only need a rich text with a themed scrollbar.
Any ideas?

:bust_in_silhouette: Reply From: exuin

Make a new theme and set the richtextlabel’s theme to that theme. On the new theme, click “edit theme” and “add item”. If you select type “vscrollbar”, you can customize the vscrollbar. This will also edit the vscrollbar on the richtextlabel node.

Try using: label.scroll_to_line(label.get_line_count())
It should work, at least if you’re using Godot 4.x