Browse Source

PrefsComponentFactory checkboxes now have transparent backgrounds.

Doing this fixes several UI inconsistancies where the background colour
of the checkbox is incorrect, transparency solves this issue without
needing to change the background colour sindividually.

Fixes CLIENT-310

Change-Id: Ia7da36ffdfadfc2744322203d123fc6805513504
Reviewed-on: http://gerrit.dmdirc.com/2177
Reviewed-by: Chris Smith <chris@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
tags/0.7rc1
Greg Holmes 12 years ago
parent
commit
e4a7acd9b7
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/com/dmdirc/addons/ui_swing/PrefsComponentFactory.java

+ 1
- 0
src/com/dmdirc/addons/ui_swing/PrefsComponentFactory.java View File

167
             final PreferencesSetting setting) {
167
             final PreferencesSetting setting) {
168
         final JCheckBox option = new JCheckBox();
168
         final JCheckBox option = new JCheckBox();
169
         option.setSelected(Boolean.parseBoolean(setting.getValue()));
169
         option.setSelected(Boolean.parseBoolean(setting.getValue()));
170
+        option.setOpaque(false);
170
         option.addChangeListener(new ChangeListener() {
171
         option.addChangeListener(new ChangeListener() {
171
 
172
 
172
             /** {@inheritDoc} */
173
             /** {@inheritDoc} */

Loading…
Cancel
Save