Thread: how can i change my gui theme to black?

Results 1 to 4 of 4
  1. #1 how can i change my gui theme to black? 
    Registered Member Throat's Avatar
    Join Date
    Aug 2009
    Posts
    486
    Thanks given
    7
    Thanks received
    1
    Rep Power
    1

    I wan't to change it to black, but in the same style as the blue one, so does anyone have the code for it?
    Reply With Quote  
     

  2. #2  
    Donator

    Join Date
    Jul 2009
    Posts
    1,453
    Thanks given
    27
    Thanks received
    13
    Rep Power
    69
    Hey there.

    If using battlescape client, try this: (remember backups)

    This is renamed, if someone could un-rename, it would be great.

    In RSApplet.java, seach for this:
    Code:
        final void createClientFrame(int i, int j)
    The void wil look something like this:
    Code:
        final void createClientFrame(int i, int j)
        {
            myWidth = j;
            myHeight = i;
    
    	JFrame.setDefaultLookAndFeelDecorated(true);
    	MetalLookAndFeel.setCurrentTheme(new BlackWTheme());
    
    	JMenuBar menubar = new JMenuBar();
    	frame = new JFrame("Dragon PVP");
    
    	frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    	frame.setLayout(new BorderLayout());
    	frame.setJMenuBar(menubar);
    	frame.setResizable(false);
    
    	menubar.add(new GUI());
    
    	JPanel gamePanel = new JPanel();
    	gamePanel.setLayout(new BorderLayout());
    	gamePanel.add(this);
    	gamePanel.setPreferredSize(new Dimension(765, 503));
    
    	frame.getContentPane().add(gamePanel, BorderLayout.CENTER);
    	frame.pack();
    	frame.setVisible(true);
    
            graphics = getGameComponent().getGraphics();
            fullGameScreen = new RSImageProducer(myWidth, myHeight, getGameComponent());
            startRunnable(this, 1);
        }
    The thing here, you want to change is this:
    Code:
    	JFrame.setDefaultLookAndFeelDecorated(true);
    	MetalLookAndFeel.setCurrentTheme(new BlackWTheme());
    Where the code says new, put
    Code:
    BlackWTheme
    So the code will look liike the one i posted just above^

    Now, add this:


    To your theme folder in your client.
    [Only registered and activated users can see links. ]

    goodluck
    Reply With Quote  
     

  3. #3  
    Registered Member Throat's Avatar
    Join Date
    Aug 2009
    Posts
    486
    Thanks given
    7
    Thanks received
    1
    Rep Power
    1
    Thanks
    Reply With Quote  
     

  4. #4  
    Donator

    Join Date
    Jul 2009
    Posts
    1,453
    Thanks given
    27
    Thanks received
    13
    Rep Power
    69
    You might want to click the "thanks" button at my post, so it registers your thanking x)

    Anyway, it was a pleasure
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •