Jump to content

Change color of UnimTabPanel1


mohsami333

Recommended Posts

Hi,

I need to change the font color,backgroud color, font, fontcolor   of tabbar in Tabpaneel.

I tried many things but not working,

 .ColorTabBar 
{
  color: #212529 !important;
   background-color: #ffc107 !important;
   border-color: #ffc107 !important; 
   box-shadow: 0 0 0 0.2rem rgba(222, 170, 12, 0.5) !important;
  
}

Please note toch theme selected: material

need some support

 

 

image.png.906e1be6e1ab0247a68dad1ddbbf26e1.png 

Link to comment
Share on other sites

52 minutes ago, mohsami333 said:

also I need to change font 

image.png.61fdc85f90747b172b86a674781bcc61.png

 

1. 

procedure TMainmForm.UnimFormCreate(Sender: TObject);
begin
  UnimTabPanel1.JSInterface.JSConfig('cls', ['customTabPanel']);
end;

2. CustomCSS ->

.customTabPanel .x-toolbar {
  background-color: green;
}

.customTabPanel .x-tab:not(.x-active) {
  color: white;
}

.customTabPanel .x-tab.x-active {
  color: green;
  font-style: italic;
  text-decoration: underline;
  font-weight: bold;
}

 

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...