Browse Source

fixes issue 1138: nicklist altBackgroundColour should be under "ui" not "nicklist"

git-svn-id: http://svn.dmdirc.com/trunk@3899 00569f92-eb28-0410-84fd-f71c24880f
tags/0.6
Gregory Holmes 16 years ago
parent
commit
8fde0a983d

+ 1
- 1
src/com/dmdirc/config/prefs/PreferencesManager.java View File

@@ -427,7 +427,7 @@ public class PreferencesManager {
427 427
                 "ui", "nicklistforegroundcolour", "false:1", "Nicklist foreground colour",
428 428
                 "Foreground colour to use for the nicklist"));
429 429
         category.addSetting(new PreferencesSetting(PreferencesType.OPTIONALCOLOUR,
430
-                "nicklist", "altBackgroundColour", "false:f0f0f0", "Alternate background colour",
430
+                "ui", "altBackgroundColour", "false:f0f0f0", "Alternate background colour",
431 431
                 "Background colour to use for every other nicklist entry"));
432 432
         category.addSetting(new PreferencesSetting(PreferencesType.BOOLEAN,
433 433
                 "ui", "sortByMode", "true", "Sort nicklist by user mode",

+ 3
- 4
src/com/dmdirc/ui/swing/ChannelFrame.java View File

@@ -110,7 +110,7 @@ public final class ChannelFrame extends InputTextFrame implements MouseListener,
110 110
         getConfigManager().addChangeListener("ui", "nicklistbackgroundcolour",
111 111
                 this);
112 112
         getConfigManager().addChangeListener("ui", "backgroundcolour", this);
113
-        getConfigManager().addChangeListener("nicklist", "altBackgroundColour",
113
+        getConfigManager().addChangeListener("ui", "altBackgroundColour",
114 114
                 this);
115 115
 
116 116
         commandParser =
@@ -343,12 +343,11 @@ public final class ChannelFrame extends InputTextFrame implements MouseListener,
343 343
     public void configChanged(final String domain, final String key) {
344 344
         super.configChanged(domain, key);
345 345
 
346
-        if (("ui".equals(domain) || "nicklist".equals(domain)) &&
347
-                ("altBackgroundColour".equals(key) ||
346
+        if ("altBackgroundColour".equals(key) ||
348 347
                 "nicklistbackgroundcolour".equals(key) ||
349 348
                 "backgroundcolour".equals(key) ||
350 349
                 "nicklistforegroundcolour".equals(key) ||
351
-                "foregroundcolour".equals(key))) {
350
+                "foregroundcolour".equals(key)) {
352 351
             nickList.setBackground(getConfigManager().getOptionColour("ui",
353 352
                     "nicklistbackgroundcolour",
354 353
                     getConfigManager().getOptionColour("ui", "backgroundcolour",

+ 3
- 3
src/com/dmdirc/ui/swing/components/renderers/NicklistRenderer.java View File

@@ -69,9 +69,9 @@ public final class NicklistRenderer extends DefaultListCellRenderer implements
69 69
         config.addChangeListener("ui", "shownickcoloursinnicklist", this);
70 70
         config.addChangeListener("ui", "nicklistbackgroundcolour", this);
71 71
         config.addChangeListener("ui", "backgroundcolour", this);
72
-        config.addChangeListener("nicklist", "altBackgroundColour", this);
72
+        config.addChangeListener("ui", "altBackgroundColour", this);
73 73
         altBackgroundColour =
74
-                config.getOptionColour("nicklist", "altBackgroundColour",
74
+                config.getOptionColour("ui", "altBackgroundColour",
75 75
                 config.getOptionColour("ui", "nicklistbackgroundcolour",
76 76
                 config.getOptionColour("ui", "backgroundcolour",
77 77
                 Color.WHITE)));
@@ -119,7 +119,7 @@ public final class NicklistRenderer extends DefaultListCellRenderer implements
119 119
 
120 120
         } else {
121 121
             altBackgroundColour =
122
-                    config.getOptionColour("nicklist", "altBackgroundColour",
122
+                    config.getOptionColour("ui", "altBackgroundColour",
123 123
                     config.getOptionColour("ui", "nicklistbackgroundcolour",
124 124
                     config.getOptionColour("ui", "backgroundcolour",
125 125
                     Color.WHITE)));

Loading…
Cancel
Save