The look of the SpkToolbar is defined by the elements of the "Appearance" property. In the demo folder, there is a project "AppearanceEditor" which you can use to modify every feature of the Appearance. Do all the changes that you need - you can see their effect in the SpkToolbar sample of the appearance editor.
When you are finished go to the page "Import / Export" of the appearance editor, click "Export to Pascal code" and "Copy". Then paste the code into your application so that it is used by the Appearance property of the SpkToolbar. (The "Export to/Import from xml" functionality is incomplete since it does not use files ATM).
If you think this is a particularly nice design which other users might be interested in as well, you should post the code here in the forum along with a screenshot. I check it and if I agree I add'll it to the predefined appearances of the toolbar. Please propose also a name to be used in the "Style" property of the toolbar, but avoid attributes like "Modern" etc which change their meaning year after year.
You must select the Style which comes closest to your request, and using the Appearance editor, you change the elements that you need. Paste the exported Pascal code here in the forum, and I can add its settings to the SpkToolbar units so that it is available as a new Style.
I thought someone knows the code in the background of the toolbar. To optimize the design to a real -> flat design. (like the current UI in MS Office)The original author has gone away. None of the current Lazarus developers know the code very well, or at least don't have enough time/motivation to make big changes to the component.
where I can find the new repository?https://sourceforge.net/p/lazarus-ccr/svn/HEAD/tree/components/spktoolbar/
Maybe do better: instead of one CornerRadius, add 3 props: CornerRadius, IndentOfFirstTabFromLeft, IndentBetweenTabs.Sure. But these properties are used at a variety of places and are interdependent, and I don't want to spend this evening on this... Happy to accept your patch, though.
procedure TForm1.Button1Click(Sender: TObject); begin SpkToolbar1.Appearance.Tab.CornerRadius := 0; end;
I added a new property CaptionHeight to the TabAppearance. It is automatically determined by the height of the TabHeaderFont when CaptionHeight is at its default value, -1. Otherwise the tab height is set to this pixel value (no high-dpi scaling of this value done yet). The height of the total toolbar adapts automatically.