0

I have created my application toolbar with application.e4xmi.

enter image description here

And thereafter I tweaked my .css as below

/* JavaFX CSS - Main CSS-File */
.root {
-fx-base: rgb(222, 234, 247);
-fx-background: rgb(222, 234, 247);
}
 
.tab {
-fx-background-color: linear-gradient(to top, -fx-base, derive(-fx-base,30%));
}
 
.menu-bar {
-fx-background-color: linear-gradient(to bottom, -fx-base, derive(-fx-base,30%));
}
.tool-bar  > .container{
}
.tool-bar:vertical {
}

.tool-bar:horizontal {
-fx-background: #ececec;
-fx-base: #ececec;
}

.tree-view{
-fx-focus-color: #f21a3f;
}

/*.table-view {
-fx-control-inner-background:  rgb(222, 234, 247);
-fx-table-cell-border-color:derive(-fx-base,+10%);
-fx-table-header-border-color:derive(-fx-base,+20%);
} */
 
.split-pane:horizontal > * > .split-pane-divider {
-fx-control-inner-background : rgb(255, 255, 255);
-fx-border-color: transparent -fx-base transparent -fx-base;
-fx-background-color: transparent, derive(-fx-base,20%);
-fx-background-insets: 0, 0 1 0 1;
}
 
.my-gridpane {
-fx-background-color: radial-gradient(radius 100%, derive(-fx-base,20%), derive(-fx-base,-20%));
}
 
.separator-label {
-fx-text-fill: orange;
}

Now I am trying to change background color of high-lighted area of toolbar in my eclipse RCP application.

enter image description here

Any suggestion would be appreciated.

aakib mogul
  • 53
  • 1
  • 9

1 Answers1

0

You can use a define a CSS and add this CSS to your product:

.MTrimBar {
    background-color: #000000; 
}
Suresha C
  • 3
  • 2