Bug - Fixed Fix multiple issues with Text Colors panel in Preferences

philmasterplus

Active member
This patch fixes three issues with the Text Colors panel in the Preferences dialog:
  • The "Default Color Set" and "Dark Color Set" buttons are clipped and look ugly. I added an extra JPanel subclass to separate the buttons from the the other inputs, which solved the issue. (see attachments)
    before: before.png after: after.png
  • Clicking either button will now immediately update† the font colors shown in the Preferences panel itself
  • Fixed a glitch with Dark Color Set (config string). Now it works as intended.
†Actually, it updates after a slight delay. Much better than shutting down and restarting mafia to see the changes, though!

P.S. While working on this, I found that setting LEFT_ALIGNMENT causes the buttons to be aligned to the right, and RIGHT_ALIGNMENT to align them to the left. Does anyone have a clue why this is happening?

P.S. Woot lambda expressions!
 

Attachments

  • philmasterplus-pref-ui-font-color-panel.patch
    7.6 KB · Views: 1
Top