Jump to content

Rounded corners in UniForm


artem_niko

Recommended Posts

13 minutes ago, jrp said:

Themes like uni_mac and uni_mac_yosemite have rounded corners forms

You mean this?

45696643_.thumb.png.9a6d94b73d5d3728d7fdfbaa5238f160.png

.x-theme-color {
  background-color:#ededed;
  border-color: white #777 #777 white !important;
  border-width: 0px 1px 0px 1px !important;
  border-radius: 2px;
}

 

If "yes", how I can apply this to my theme?

 

Link to comment
Share on other sites

On 4/20/2022 at 9:46 PM, artem_niko said:

I know about UniMainModule.Theme and I am not about this.

I asked about how make rounded corners using CSS or JS events.

1- Add to CSS Customs ServerModule

.rounded {
border-radius: 10px;
}

See below:
}Clip2.png.9bfcb5b9ac7ffd24f9c9e8ba45b3661a.png

2- LayOut set CLS to "rounded" class. Without the "", of course.

This is not the best option and I really have abandoned. A prefer to make the whole form transparent and place a background image since this option won't work in all themes.

See result below:

 

Clip4.jpg

Edited by Fred Montier
typos
  • Thanks 2
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...