The scrollbars in Duilib are mainly in uiscrollbar. h and uiscrollbar. CPP. The width of the scrollbars is set to the default 16. If you want to change the width of the scroll bar directly, you can change the macro definition directly inside the constructor

enum
		{ 
			DEFAULT_SCROLLBAR_SIZE = 10,
			DEFAULT_TIMERID = 10,
		};
Copy the code

Setting DEFAULT_SCROLLBAR_SIZE to 10 or whatever you want is fairly straightforward

Of course, people with ideas can add a property of their own, code changes, the following blog for reference

www.cnblogs.com/lyfh/p/5472…

Shenzhen programmer exchange group, welcome high-end personage to enter

550846167