B4J Question MsgBox Textsize and Font

ThRuST

Well-Known Member
Licensed User
Longtime User
Is it possible to change the Text Size and a Custom Font for MsbBox 1 and MsgBox2 dialogs?
When I use CSS I am able to change the button design, but how do I change the rest?



msgBox2.JPG
 

ThRuST

Well-Known Member
Licensed User
Longtime User
This is the way to do it. I share my CSS theme which is for my own project, but you can style it as you like.

B4X:
.button {

    -fx-padding: 5 22 5 22;   
    -fx-border-color: #e2e2e2;
    -fx-border-width: 2;
    -fx-background-radius: 10;
    -fx-background-color: #231c2b;
    -fx-background-insets: 0 0 0 0, 0, 1, 2;
    -fx-font-family: Impact;
    -fx-font-size: 22px;
    -fx-text-fill: White;
-fx-effect: dropshadow( three-pass-box , rgba(0,0,0,0.6) , 10, 0.0 , 0 , 1 );

}

.button:hover {

    
-fx-background-color: #736680;

-fx-effect: dropshadow( three-pass-box , rgba(255,255,255,1) , 30, 0.0 , 0 , 1 );



}

.button:pressed {

-fx-background-color: #100d14;
  -fx-text-fill: #70558d;
}

.dialog-pane {
    -fx-background-color: #342940;
    -fx-font-family: Impact;
    -fx-font-size: 22px;

}

.dialog-pane .label {
    -fx-text-fill: #a18fb2;

}

.dialog-pane:header .header-panel {

}

.dialog-pane:header .header-panel .label {

}




msgBox2.JPG
 
Upvote 0
Top