Black look and Feel

Developer discussion regarding MapTool 1.4

Moderators: dorpond, trevor, Azhrei

Forum rules
Posting now open to all registered forum users.
Post Reply
Arpheus
Kobold
Posts: 2
Joined: Wed Oct 21, 2015 2:26 am

Black look and Feel

Post by Arpheus »

Hello,
I have been playing RPG games for many years and recently found out about the virtual table tops which are really great. Since our group made an own RPG system which is running in Excel with complicated formulas to create a pretty realistic character the other virtual tabletops are not an option since they cannot be adapted as much as MapTool, so I started reading about MapTool and tested it and it seems pretty decent.
But there was one thing that I had to change really fast and that is the color of the client :)

It is pretty easy for a programmer to change the look and feel of MapTool and so I hope that one of the experienced MapTool programmers can integrate an option to choose between the standard look and feel and at least also this black one.

This is how my client looks now.
Image

I am not sure if everything is perfect with the black color since I have been using MapTool for like 8 hours overall and therefore don't have much experience with it. What definitely should be changed is the chat Text color which while writing is white but once you confirm it is black.

What I changed is not much. I used the HiFiLookAndFeel from http://www.jtattoo.net. They offer these look and feels under the GNU license (If your are an open source developer you can use it under the terms and conditions of the GNU General Public License version 2.0 or later as published by the Free Software Foundation) so I guess we are fine to integrate the look and feel into MapTool.

I downloaded the 1.4 version from GitHub and did the following changes:
In the file "maptool\build.gradle" I added the following line after the other compile statements. This imports the JTattoo look and feels

Code: Select all

compile	'com.jtattoo:JTattoo:1.6.11'

In the file "maptool\maptool\src\main\java\net\rptools\maptool\client\MapTool.java" I changed the following code:

Code: Select all

				
			String lafname;
			if (MAC_OS_X) {
				UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
				menuBar = new AppMenuBar();
				//lafname = "net.rptools.maptool.client.TinyLookAndFeelMac";  // white look and feel 
				lafname = "com.jtattoo.plaf.hifi.HiFiLookAndFeel";          // thats the black look and feel
				UIManager.setLookAndFeel(lafname);
				macOSXicon();
			}
			// If running on Windows based OS, CJK font is broken when using TinyLAF.
			//			else if (WINDOWS) {
			//				UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
			//				menuBar = new AppMenuBar();
			//			}
			else {
				//lafname = "de.muntjak.tinylookandfeel.TinyLookAndFeel";   // <-- white look 
                                //lafname = "javax.swing.plaf.metal.MetalLookAndFeel";      // <-- another possible mostly white Look and Feel
				lafname = "com.jtattoo.plaf.hifi.HiFiLookAndFeel";          // thats the black look and feel
				UIManager.setLookAndFeel(lafname);
				menuBar = new AppMenuBar();
			}




Since I had problems with building and creating a release version of the project I disabled some test code in the file
"maptool\maptool\src\test\java\net\rptools\maptool\client\AppUtilTest.java". That should not be done and I'm sure that won't be neccessary for the MapTool programmers. I just wanted to have a fast result.

I did only run it on my windows 8.1 machine and didn't test alot so far. My hopes are that maybe one day someone finds or creates an awesome look and feel which truely fits to fantasy RPGs. But that black one is a good start in my opinion since at least for me the white version makes it really hard to get into the mood of a thrilling atmosphere in certain situations. In my opinion the look of Fantasy Grounds is really decent :)

Best regards,
Jonathan

User avatar
aliasmask
RPTools Team
Posts: 9024
Joined: Tue Nov 10, 2009 6:11 pm
Location: Bay Area

Re: Black look and Feel

Post by aliasmask »

Is there a way to get the .theme file of this LaF?

Arpheus
Kobold
Posts: 2
Joined: Wed Oct 21, 2015 2:26 am

Re: Black look and Feel

Post by Arpheus »

I know of no way to to get a .theme File from it. You want to replace the Default.Theme so that you may run the black look without coding? Would be great if that could work but I didn't find a .theme file for that look and feel and there is already a Default.Theme file in the MapTool client but at least in my opinion it seems to get ignored, maybe because it is in the wrong folder.

Post Reply

Return to “MapTool 1.4”