Problem in changing scene color

I want to change the theme of the application window. I have used RadialGradient in scene creation. Now i want to change the theme by changing scene color.

Hi,
If you want to change the color of your radial gradient dynamically, you can depend on the -fx-base color.,
Suppose, you have the style class to apply for gradient as
.sceneGradient{
     -fx-base: red;
     -fx-background-color:radial-gradient(center 10% 10%, radius 100%, derive(-fx-base,90%) 10%, derive(-fx-base,-10%) 90%);
}In the above class, the base color is red. I can change the theme by changing the base color dynamically.
So please check the below SSCCE (Short, Self Contained, Correct Example) code
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Insets;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
public class RadialGradientForScene  extends Application {
     Stage stage;
     Scene scene;
     StackPane root;
     public static void main(String[] args) {
         Application.launch(args);
     @Override
     public void start(Stage stage) throws Exception {
        this.stage = stage;
        this.stage.setWidth(600);
        this.stage.setHeight(600);
         root = new StackPane();
         root.getStyleClass().add("sceneGradient");
         this.scene = new Scene(root, Color.LINEN);
         scene.getStylesheets().add("styles/template.css");
         stage.setTitle("Radial Gradient Scene");
         stage.setScene(this.scene);
         stage.show();
         VBox vb = new VBox();
         vb.setSpacing(15);
         vb.setPadding(new Insets(15));
         vb.getChildren().addAll(getButton("Red", Color.RED),
                                 getButton("Blue", Color.BLUE),
                                 getButton("Green", Color.GREEN),
                                 getButton("Yellow", Color.YELLOW),
                                       getButton("Black", Color.BLACK) );
         root.getChildren().add(vb);
     private Button getButton(String title, final Color color){
          Button btn = new Button(title);
          btn.setOnAction(new EventHandler<ActionEvent>() {
               @Override
               public void handle(ActionEvent paramT) {
                                //On click of button, i am changing the base color accordingly
                    root.setStyle("-fx-base:"+rgbToHex(color)+";");
          return btn;
     public String rgbToHex(Color color) {
          int i = (int)Math.round((double)color.getRed() * 255D);
        int j = (int)Math.round((double)color.getGreen() * 255D);
        int k = (int)Math.round((double)color.getBlue() * 255D);
         return "#"+toHex(i)+toHex(j)+toHex(k) ;
     private String toHex(int code){
          String str ="0123456789ABCDEF";
          return str.charAt(code/16)+""+str.charAt(code%16);
}I hope this can help you to answer you question.
Happy Coding :)
Regards,
Sai Pradeep Dandem.

Similar Messages

  • Weird dual monitor problem with changing image colors

    I have dual monitors, same brand and type, same color settings and adjustments, and so far image was the same on both of them. Nothing regarding monitors or color preferences I have changed, but suddenly I started having this weird problem. Example:
    1. Here is the screenshot. I have pure red image, palettes and layers panel are on the second monitor.
    2. I start dragging image window to the other monitor and STILL HOLDING the mouse button (like I said, dragging)
    3. And when I release the mouse color suddenly changes.
    If I pick window and drag again color returns to normal. As soon as I release the mouse color changes.
    This is only happening on second monitor.
    I re-installed graphic drivers, and also re-installed Photoshop CC 2014.
    I also changed settings so the image both monitors show is the same (duplicate screen in windows) and there is no problem then. If I return to extended display problems FIXES. But as soon as I lock the computer, and login again the problem shows up again.
    Any ideas what should I do or how to fix it?

    I see your using Window have two displays.  I not sure how windows handle profiles for both displays.  Your displays are the the same models.  My Displays are physically about the same size  bothe 16:9. One displays 1920x1080 pixels the other 1360 x 768 so the resolution are quite different requires me to create special wallpaper. to make sean looks seamless or image on have the same composition.
    I notice that when I drag a window between displays a size difference but the color consistent. When I release the mouse button I see a color shift and a screen capture  shows this. And if I drag the split  window the cole os once again consistent.   I think what we are seeing is more a Windows thing not a Photoshop thing. 
    I'm using Windows 7 and CC 2014.  I do notice my window drags over the toolbar and under the pallets on the second display. Your window drags under your toolbar.

  • Problem with changing background colors in JPanels

    Hi,
    I have made an applet with Grid Layout and I have added JPanels in each grid. I have assigned a background color to all panels.
    Now what i am trying to do is, change the clicked JPanel's background color to "blue" on a mouse click and convert the previous changed JPanel's background to originally assigned color.
    This is the code that I have used:
    JPanel temp=null, m;
    String tempc, m_color;
    public void mouseClicked(MouseEvent me)
              m=(JPanel)me.getComponent();
              if(m!=temp)
              m_color=m.getBackground().toString();   // retaining current background color so as to change later
              m.setBackground(Color.blue);
                   if(temp!=null) 
                        temp.setBackground(Color.getColor(tempc));  // change back to original color
              tempc=m_color;       //tempc and m_color are Strings
              temp=m;               //temp and m are JPanels
         }When I am executing the above logic, background color changes to blue on a mouse click but the previously changed JPanel is not changing back to original color.
    Can anyone please tell where is the above logic going wrong??
    Thanks
    Rohan

    Hi Camickr,
    I tried to do it without changing Color to Strings but i was getting an error in the line temp.setBackground(Color.tempc);, so i decided to change it to String and retrieve it's value in the method.
    SSCCE for my code is:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.text.*;
    import java.lang.reflect.InvocationTargetException;
    <applet code="test" width=400 height=400>
    </applet>
    public class test extends JApplet
         JPanel t[][]=new JPanel[8][8];
         JPanel p[][];
         public void init()
         try{
         SwingUtilities.invokeAndWait(new Runnable()
              public void run()
                   t=makeGUI(8,8);
                   logic(t,8,8);
         }catch(InterruptedException e){e.printStackTrace();}
         catch(InvocationTargetException e){e.printStackTrace();}
    /* Board*/
    private JPanel[][] makeGUI(int rows, int cols)
        p = new JPanel[rows][cols];
        Container contentPane = getContentPane();
        contentPane.setLayout(new GridLayout(rows, cols));
        for (int i = 0; i < rows; i++)
          for (int j = 0; j < cols; j++)
            p[i][j] = new JPanel();
            contentPane.add(p[i][j]);
            if (i % 2 == j % 2)
              p[i][j].setBackground(Color.white);
              else
              p[i][j].setBackground(Color.darkGray);
         return p;
    private void logic(JPanel p[][], int rows, int cols)     
              for (int i = 0; i < rows; i++)
              for (int j = 0; j < cols; j++)
              final int k=i, l=j;
              p[i][j].addMouseListener(new MouseListener()
                   JPanel temp=null,m;
                   String tempc, m_color;
                   public void mouseClicked(MouseEvent me)
                        m=(JPanel)me.getComponent();
                        if(m!=temp)
                        m_color=m.getBackground().toString();     //retaining current background color
                        m.setBackground(Color.blue);
                        if(temp!=null)     // this method sets the panel
                             {               //     to its original color
                             temp.setBackground(Color.getColor(tempc));
                        tempc=m_color;     //color Strings
                        temp=m;          //JPanels
                   public void mouseEntered(MouseEvent me){}
                   public void mouseExited(MouseEvent me){}
                   public void mousePressed(MouseEvent me){}
                   public void mouseReleased(MouseEvent me){}
    }

  • With IOS 7.0 How do you change the Color Red, that shows up on the Calendar to another color? People with certain eye problems cannot tolerate the color Red.

    How do you change the Color Red, that shows up on various points of the Calendar to another color? Persons with certain eye problems have visual irritations that can be caused by the color Red. This problem came up with the update to IOS 7.0.

    Sorry but you cant

  • Problems to change color Portlets in the Collaboration Suite

    Hello:
    I have one problem I need Customizing Fonts Color but I follow the steps in the Oracle® Collaboration Suite Administrator's Guide customizations to the logos, colors, and fonts used in various Oracle Collaboration Suite interfaces.
    But when I change the font color to the "porlet header page" and click apply only change this color in some portlets but not in all the portlets....
    How I fix That
    Thanks
    Karla .

    I use the portlet style in the builder. Where I find the .xss .
    Olso I follow the steps in the administrator guide:
    Use the Portal style editor tool to customize the appearance of the Por
    tal home page:
    a. Use the “Style Element Type” drop-down list to view style settings for various style elements (Common, Portlets, Tabs, and Items).
    b. Within each style element type, use the Style Element Properties tool to customize style properties.
    c. Click the Apply button to apply your changes and preview the result in the Preview section.
    Thanks
    KB

  • Problem with changing calenders and reminders colors

    Hello,
    Somehow the colors of my two of four calendar just changed them self. I've four calendar:
    Day Off (mark in yellow), Home (mark as purple), Work (mark as blue) and School (mark in green).
    The two calendar of Home and Work swap their color so Home is mark in blue and Work as purple.
    I've tried to change it colors many time, tried difference ones two but it keep turning back. Only this two calendar infected.
    Same problem in reminder. it keep turning orange from purple.
    All attemps in iPhone and in iCloud.com failed.
    Appreciate help.

    even "increment and decrement" buttons of JScrollbar are getting updated with "Button.background" colorWhen you invoke the updateComponentTreeUI() method I believe the code updates the properties of components that use the UIResource interface. The default Colors for components use the ColorUIResource class. See [url http://www.camick.com/java/blog.html?name=uimanager-defaults]UIManager Defaults.
    So to prevent a component from being changed you need to replace the ColorUIResource with a Color class for the buttons in question.
    You might be able to use Darryl's [url http://www.camick.com/java/blog.html?name=swing-utils]Swing Utils class. You can use the class to get all the JButton components used by the scrollbar. Then for each button you could replace the background by using code like:
    button.setBackground( new Color(button.getBackground().getRGB(), true) );

  • I am having a problem changing a color in a selected area. Using the Quick Selection tool I am able to select the area I wish to change. Using the Brush tool, color, color mode and click drag in my selected area, nothing happens, no color changes.   I hav

    I am having a problem changing a color in a selected area. Using the Quick Selection tool I am able to select the area I wish to change. Using the Brush tool, color, color mode and click drag in my selected area, nothing happens, no color changes. I have viewed some videos and read numerous articles but haven't found the one to help me. Please point me in the best direction. Thank you Vincent TC

    For the sake of clarity and to save people time, Todd is asking about the behaviour of the Patch tool when using it to repair the area next to the young lad's head.  Todd gets a blurred dark tone pretty much regardless of the options he uses.
    IMO that's what I would expect to happen because of the close proximity of the other image elements i.e. the lad's neck and the strong lines of his shirt.  I would not choose to use the Patch tool in this situation.  Content Aware Fill makes a better stab at it. 

  • Change to Color problems

    Here's my issue:
    I have a guy wearing a bright green shirt in a scene. I can change the color of the shirt to a variety of colors except black. White doesn't work either. I've tried a bunch of different things and looked all over for an answer, but I'm coming up short. Anyone have a suggestion? Thank you!
    I'm using CS 5.5 on a Mac, btw.

    What Mylenium said,
    I would think the best solution would be to mask out the shirt, then use tint, Black and White, or one fo the Hue/Saturation/curves etc type effect. If I am not mistaken (and I very well might be) I dont think that Black and White are seen as "Colours" as such - that is probably why it is not a choice.
    Pierre

  • Problem of Change Color in JTable ....

    Hi, i have a JTable contain a lot of data, HOW i change the color of some font of the data in the JTable ??
    Thank You.
    Regards,
    Kenny

    What is the criteria for changing font/colours ?? Is it everything in one column ? Everything in one row depending upon the value in one column ?
    I posted something similar to this, with a solution, not too long ago if you want to search the forum.
    Garry.

  • Changing Submenu Color

    Hi Anybody
    I'm using CS3.  I want to change the color of an existing Submenu.  When I follow the instructions on the Training Disk using Photoshop the color changes but the submenu doesn't work anymore.
    Can anyone help me.  I want to keep changing the color on this Submenu (Film Submenu) for different projects.
    Thanks in advance,
    Frank

    Thanks Hunt
    Yes I want to change the background color in a submenu. I know how to 
    change everything else.
    But Since I wrote this I learned something else and that may be the 
    problem.  This submenu as most that come with the Encore program has a  video that
    plays when on screen, TV only.  I followed the video link with  windows
    explorer and found it in the Library file of Encore CS3.  It plays  but you
    can't change the color. So although I see my color change on the program 
    preview when it is burned to disk the video plays in the original green color of 
    the video.  (Film Submenu under Entertainment)
    These are things that they don't tell you in any book you buy or on the 
    training disk.
    Can the matching video have its color changed to match the new color of the
    Submenu Background?
    Thanks
    Frank
    In a message dated 2/18/2011 12:28:35 P.M. Eastern Standard Time, 
    [email protected] writes:
    Frank,
    Just to make sure that I am following what you  need, and what you are
    doing, you wish to change the color in a Scene  Selection Menu, that is accessed
    from the Main Menu. Is that  correct?
    You wish to change what, the background color, the color  of Text or the
    color of graphics (or all)?
    The easiest way to  change the colors of everything in any Menu (the
    exception being the  Sub-picture Highlights of a Button), is to Dbl-click on that
    Menu (this  applies to either a Main Menu, or a Scene Selection/Sub-Menu),
    to get it into  the En Menu Editing Panel. Now, Rt-click on that Menu and
    choose Edit in  Photoshop. This does several things, and not all are evident,
    unless you look  carefully:
    A link is created to that Menu (if you  look, when in PS, you will see a
    rather odd file name - that is the link)
    PS is launched
    The Menu LINK (a PSD), will Open in  PS
    There, you can edit, as is required. When done, you  will want to hit Save,
    so that the changes can follow the link back to En.* Do  NOT do a Save_As,
    or you will not follow that link back to  En.
    For the actual color of Sub-picture Highlights, you can do  that in the
    Menu Editing Panel, via Color Sets.
    If you are  attempting to change some other aspect, just correct me, and we
    can help you  get what you want. If there is something different needed,
    maybe post a  screen-cap of your Menu Editing Panel, and also that Menu Open
    in PS, with all  Layer Sets twirled open?
    Good  luck,
    Hunt
    I have encountered a little glitch,  when doing a Save with a linked
    Menu, from PS. Under some, unidentified cases,  the Save does not update the
    Menu in En. This is irregular, and intermittent,  and the "why" has never been
    found. Through experiments, I found that if one  did three (3) Saves, the
    link always updated. Just doing two (2) did not fix  things, when that glitch
    surfaced. Because of this anomaly, I have developed a  habit of doing the
    three (3) Saves. What I do is twirl open all Layer Sets  that I will be
    working with in PS, make my edits, and then hit Ctrl-S (Save).  Now, I begin
    closing my Layer Sets, and hit Ctrl+S again. When I have closed  all Layer Sets,
    I hit Ctrl+S one more time. Note: If you have not made any  changes,
    Edit>Save will be grayed out, but Ctrl+S still  works.
    I wish that I could track down what the criteria were, for  the failure to
    update in En, but that has eluded me, and many others. It seems  that
    certain folk get bitten by this issue, more than others - some have never 
    experienced it. Whatever triggers it, the three (3) Saves has always been 100% 
    effective for  me.

  • My Excel with PowerPivots acts weird, it hangs when i try to change font color

    Hi 
    I am facing a weird issue using PowerPivot in my workbook, there is a worksheet named Charts in my workbook and all the charts i am using resides in that worksheet. Whenever i try to change the font color in that sheet, my excel's color palette goes blur
    and then everything just freezes and turns black. This problem is happening only with Charts worksheet, when i try to change the color in other sheets, it works just, the problem is only with Charts sheet. File
    size is 16 MB, there are just 10 pivot tables with some calculations and some calculated fields. There are no add-ins other than PowerPivot. 
    Thanks,
    Shanker

    Hi,
    In regarding of the issue, please provide us more information to assist you better.
    Do you receive any error message?
    Which Excel version are you using?  Excel 2013 or other?
    Which workbook format are you using? XLS or XLSX?
    Are you performing any specific task?
    According to your description, this issue seems only occur with the special worksheet "Charts".
    Firstly, I recommend we copy all of the content to a new/blank Excel file to test.
    If it works fine, this issue might be caused by the "Charts" workbook itself. We'd better check the "Charts" workbook. Or re-build the file with a new workbook.
    If it still makes Excel hang with a new file, this issue might due to the content. Please check the content first.
    Secondly, we could follow below KB to troubleshoot this issue:
    https://support2.microsoft.com/kb/2758592/en-us?wa=wsignin1.0
    Thirdly, if the issue still exists, we may try to collect the Event log and App crash dump file to do advanced troubleshooting.
    Event log:
    http://windows.microsoft.com/en-US/windows7/Open-Event-Viewer
    App crash dump file:
    First enable app crash dump collection by copying following words into notepad, saving it as dump.reg and importing
    it:
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\localdumps\EXCEL.EXE]
    "DumpFolder"=hex(2):63,00,3a,00,5c,00,63,00,72,00,61,00,73,00,68,00,64,00,75,\
      00,6d,00,70,00,73,00,00,00
    "DumpCount"=dword:00000010
    "DumpType"=dword:00000001
    "CustomDumpFlags"=dword:00000000
    Then, open Excel
    to repro the issue. If crash issue appeared, please find the crashdump file under c:\.
    To further help you, please upload this file into Skydrive and shared the link here.
    Also, you can try to analyze dump by yourself if you would like to:
    How to analyze app crash dump file:
    http://blogs.technet.com/b/askperf/archive/2007/05/29/basic-debugging-of-an-application-crash.aspx
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Some questions about how to change scenes

    i have something like the following:
    fxml (view/main/MainMenu.fxml):
    <Scene fx:controller="view.main.CtrlMainMenu" xmlns:fx="http://javafx.com/fxml" stylesheets="view/main/main.css">
        <GridPane xmlns:fx="http://javafx.com/fxml" alignment="center" id="backgorund" hgap="10" vgap="10">
            <!--other panes -->
            <VBox spacing="8" GridPane.columnIndex="0" GridPane.rowIndex="1">
                <Button text="Start" onAction="#Start"/>
                <Button text="Options" onAction="#Options"/>
                <Button text="Exit" onAction="#Exit"/>
            </VBox>
        </GridPane>
    </Scene>main loop (cotroller/main.java):
    public class main extends Application{
        public static void main(String[] args){
            launch(main.class, args);
        public void start(Stage stage) throws Exception{
            stage.setTitle(CtrlLanguage.get(CtrlLanguage.TITLE));
            CtrlMainMenu main = new CtrlMainMenu();
            Scene scene = main.main();          //don't know how to make Scene scene = (Scene)FXMLLoader.load(getClass().getResource("MainMenu.fxml")); work on here since MainMenu.fxml is in view/main while the main class is in controller and ended up putting CtrlMainMenu in the view although is not very correct
            stage.setScene(scene);
            stage.setWidth(1080);
            stage.setHeight(720);
            stage.show();
    }view controller (view/main/CtrlMainMenu.java):
    public class CtrlMainMenu{
        //other buttons actions
        public Scene main() throws Exception{
            return (Scene)FXMLLoader.load(getClass().getResource("MainMenu.fxml"));
        @FXML protected void Start(ActionEvent event){
        @FXML protected void Options(ActionEvent event){
        @FXML protected void Exit(ActionEvent event){
            System.exit(0);          //is there any other way to finish the program than using a system.exit?
    }got few questions currently:
    1. i'd like to be able to keep using CtrlMainMenu for other buttons while the ones that appear there go to the main (since will be reusing those classes from other scenes)
    tried adding fx:controller on panes instead of the scene, but it doesnt work at all (it crashes) else directly in CtrlMainMenu change the scenes of the stage, but then, i have to send the stage to every controller i use? (or how do i know the stage of the scene?)
    and in the case of options, i'd like after done, go back to the previous scene, is that possible? if so, how?
    2.if i want to implement languages, how do i do to change the text? tried with setText() but depending on where do i put it, it crashes, so dont know where do i have to put it
    3.im doing a game that may have different number of players, so, is there some way to erase/hide/add data from a gridpane with fxml?

    1. ok, found the way to change scenes, with this way:
    @FXML protected void Start(ActionEvent event) throws Exception{
         Node node = (Node)event.getSource();
         Stage stage = (Stage)node.getScene().getWindow();
         Scene scene = (Scene)FXMLLoader.load(getClass().getResource("../view/main/MainMenu.fxml"));     //this is just an example, will change to go to another scene
         stage.setScene(scene);
         stage.show();
    }but now i have another problem, when i click on the button the stage scene is changed, but the scene is transformed to a very small one at the top left (the size seems the same as when i dont put the set width/height on the stage when creating it), the stage size remains the same, and when i resize the window, it gets "repaired"
    the options, i thought on using a pane over the current pane so this way instead of going back would be just removing that new pane, would that work well?
    2. found about languages that is by using <Label text="%myText"/> and java.util.ResourceBundle but don't know how to use it, can someone provide me an example, please?
    3. still haven't looked on it...

  • I am unable to change the color of text in an email I replay to or compose. I am on 31.6.0 release of Thunderbird.

    When I receive, reply or compose email. I no longer am able to see or change the color of text. I select to change the text from black to Red (or any other color) and the text just stays black, The color seletor box will show the last select color, but never actually changes the text color in an email. Also in received email, when the sender has indicated their replies to me are in another color, All the text only appears as black. I never had this problem in the past, not sure what has happened. I did restart Thunderbird with add-ons disabled and this did not change the problem.

    Hello, maybe the question need to move by a moderator to thunderbird support ?
    https://support.mozilla.org/en-US/questions/thunderbird?owner=all
    thank you
    [moderator note: question thread has been moved from Firefox queue to Thunderbird queue]

  • How to change text color in CS4

    Hey everyone. I know I'm not fluent in Dreamweaver, but had DW8 before upgrading to CS4 and I'm pretty handy with it. In version 8, if I wanted to change a text color, I simply highlighted the text and picked a color. No worries.
    However in CS4, I seem to be only have that ability in my CSS properties, (not HTML properties). Then when I try to change the color, it gives me a dialogue box asking questions such as "new CSS", "for this page only", etc. and I don't understand what I'm supposed to do.
    Can someone tell me in a user-friendly way (step-by-step), how to simply change a text color on a page? I went to the help topics and it said to use the 'color-picker', but that takes me back to my original problem.
    I'm either doing something terribly wrong, or ADOBE has made a simple task into brain surgery!
    Thanks in advance for assistance!
    Mark

    Beginning with CS3, DW became more compliant with W3C web standards which call for content (HTML) being separate from style (CSS).  Thus you now have two properties boxes: one for HTML content and another for CSS styles.
    Create a few CSS classes using the CSS style panel.
    CSS:
    .red {color: red}
    .blue {color: blue}
    .green {color: green}
    Highlight a word or sentence on your page and apply the appropriate class to your HTML.
    HTML:
    <p class="red"> this is red text</p>
    <p class="blue"> this is blue text with <span class="green">GREEN WORDS</span> in the middle</p>
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • I need to change the color of the font in my Bookmark Toolbar. Unable to read all bookmarks.

    No longer have a question about editing the Bookmarks Toolbar. I may be dense, but I have not discovered how I may change the text (font) color when using View, Bookmarks, Custom. I see the capability to choose to use text and image, but not to change the color of the text. The ability to "bold" the text would probably be sufficient. I will revisit the Getting Started page and select other background colors to try and alleviate the problem. Persona or thema colors conflict with black text (for my older eyes - I have a vision problem.).

    You can make such a change with code in userChrome.css
    Add code to [http://kb.mozillazine.org/UserChrome.css userChrome.css] below the @namespace line.<br />
    See http://kb.mozillazine.org/Editing_configuration#How_to_edit_configuration_files
    <pre><nowiki>@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */
    #personal-bookmarks .toolbarbutton-text {
    color: black !important;
    background-color: -moz-dialog !important;
    font-size: 11pt !important;
    font-weight: bold;
    </nowiki></pre>
    You can adjust the values or leave out things that you do not want to change.

Maybe you are looking for