Bug Errors in Windows Classic L&F

superechidna

New member
This bug has been present for several versions but has been reproduced in rev20796.
I quite like the look of old Windows and the update for a more compact familiar UI was a welcome one, however in the Windows Classic L&F the icons and text are all offset. The familiar icon on the main window is correctly rendered.

All of the familiar icons are pushed to the right and are cut off which is unique to Windows Classic L&F. This happens whenever left-clicking the current familiar icon in mafia. The familiar lists/filters initially come up looking fine, but whenever moused over will be offset to the right as well. This offset of the lists/filters seems to occur in more L&Fs than just Windows Classic. The menu is perfectly functional and this is purely a visual error.

Steps to reproduce:
1. Change mafia to Windows Classic Java L&F
2. Click the current familiar icon on the GUI

kolmafia20796_screenshot.png

If this is a failure on my part, I apologize. I know that Java GUI is fiddly in the best of cases.
 
Last edited:

fronobulax

Developer
Staff member
I don't get any icons in that space, let alone icons that don't display as I hope. Could this be something triggered by a KoL profile setting?
 

superechidna

New member
I don't get any icons in that space, let alone icons that don't display as I hope. Could this be something triggered by a KoL profile setting?
I started a QF run so I can't test it out, but I can log on later today with an alt to try and figure it out. What do you mean by a KoL profile setting? As in, a setting in the base game unrelated to mafia? The icons that display are only my "Favorite" familiars.
 

fronobulax

Developer
Staff member
In KoL the Options page has some settings that have effected mafia displays.

But the missing information is that you have selected Favorite familiars. When I explicitly selected Classic Windows, set some favorites and clicked, I can reproduce the problem.

I don't see it when running with the default OS L&F which makes me ask what is the difference between the default OS L&F for Windows 10 and Windows Classic?
 

superechidna

New member
It's not a large amount of differences, mostly it's that the buttons have outlines with shadows which makes them easier to differentiate for me. Again, it's purely a visual preference for me. It's not just the favorite familiar icons being offset, however. The filters/text are also pushed far to the right and cut off when moused over.

I've made two screenshots of Classic and OS Default to show the difference on my alt. Here I specifically moused over the top three options [(none), stat gain, and item drop] in the menu to show how the text is pushed over to the right regardless of L&F. The favorite familiar icons for the are just permanently offset along with the filter texts when using Windows Classic. It seems that it still offsets the text to the right when using the Windows 10 appearance but it just has much more padding so it's alright.

Steps Taken:
1. With mafia open, click on current familiar to bring up familiar menu
2. Mouse over the first three modifier options for familiars.

Windows Classic:
kolmafia20796_screenshot2.png

Default OS look and feel (Windows 10):
kolmafia20796_screenshot2_win10.png
 

MCroft

Developer
Staff member
While I added LAF options in Mafia, I don’t have access to a Windows machine and that’s not a LaF I have to test with. It’s pretty old and only available on Windows machines. I don’t know how well-supported it is.

I have three probably unsatisfactory options for you.
  • Find a theme that‘s suitable from the new, ridiculously long list we added last year.
  • Try an updated JVM, and hope that whatever defect in the theme is resolved.
  • call it a LAF bug and report it to openJDK
 

superechidna

New member
Alright, I appreciate the help a lot! I'll look into maybe another theme that fits my fancy. I had a feeling it was something not really in the domain of mafia.
 
Top