Jump to content

Change standart theme uni_windows11


artem_niko

Recommended Posts

Hello to all!

I'm interesting standart theme uni_windows11.

All ok, but, caption in UniForm is to march:

image.png.3099b1511ae9dfd1528e3dfad4320861.png

I need make hit small, for example:

image.png.67bcb284ad9a52e71476d8936626c2a9.png

I mean:

1. Make height caption in UniForm small;

2. Set position of UniForm.Caption on horizontall midlle.

I'm not change standart theme, I think, may be, this is somebody bug.

 

How change size and position caption in UniForm in theme uni_windows11?

uni-xtheme-uni_windows11.css

Link to comment
Share on other sites

9 minutes ago, Sherzod said:

Hello,

Can you try?

procedure TMainForm.UniFormCreate(Sender: TObject);
begin
  JSInterface.JSConfig('titleAlign', ['center']);
end;

 

Thank's, this work too :) :

image.png.7359b6c434bbf99a042c91f0d5e808c4.png

But, if I want set UniForm.Caption on horizontall middle, for this exist property:

UniForm.CaptionAlign=taCenter.

But, early, I was talk about middlle by vertical + change height UniForm.Caption (use CSS or JS).

Like this:

image.png.0f2a7ed71471da0c8ba5fec56cd06c29.png

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...