How to make Toolbars of apps thinner

As the image shows, the default toolbar width of kde apps is relatively larger than window title bar.

When I was using plasma 5, since I could not find any setting that changes that, I removed the line ScreenScaleFactors under [KScreen] in ~/.config/kdeglobals and the toolbar became as thin as the title bar. But when I repeat this modification this in plasma 6, it doesn’t work. How can I change that width.

If you right-click on a button on the toolbar, there’s an option to change the icon size to 16px. That will make the buttons a bit shorter. Other than this, there isn’t really another way to do what you want, short of modifying the code.

…Which is possible! Maybe our toolbars are too thick. If you feel like it’s a UI improvement for everyone, feel free to work on that and propose it as a change.