OmegaT の背景に画像を表示します。
透過除外指定の解釈が逆になっていたバグを修正
| @@ -41,7 +41,7 @@ | ||
| 41 | 41 | private final String KEY_TARGET = "target"; |
| 42 | 42 | private final String KEY_OPACITY = "opacity"; |
| 43 | 43 | private final String KEY_IMAGE = "image"; |
| 44 | - private final String KEY_EXCEPTIONS = "exclude"; | |
| 44 | + private final String KEY_EXCLUDE = "exclude"; | |
| 45 | 45 | |
| 46 | 46 | private String target = "mainWindow"; |
| 47 | 47 | private float opacity = 0.5f; |
| @@ -66,8 +66,8 @@ | ||
| 66 | 66 | image = (String) config.get(KEY_IMAGE); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - if (config.containsKey(KEY_EXCEPTIONS)) { | |
| 70 | - exclude = (List<String>) config.get(KEY_EXCEPTIONS); | |
| 69 | + if (config.containsKey(KEY_EXCLUDE)) { | |
| 70 | + exclude = (List<String>) config.get(KEY_EXCLUDE); | |
| 71 | 71 | } |
| 72 | 72 | } |
| 73 | 73 |
| @@ -85,10 +85,10 @@ | ||
| 85 | 85 | |
| 86 | 86 | public void transparent(EnumSet<Parts> exclude) { |
| 87 | 87 | if (exclude != null) { |
| 88 | - makeTransparentMenubar = exclude.contains(Parts.MenuBar); | |
| 89 | - makeTransparentButtonPanel = exclude.contains(Parts.ButtonPanel); | |
| 90 | - makeTransparentStatusbar = exclude.contains(Parts.StatusBar); | |
| 91 | - makeTransparentPaneTitlebar = exclude.contains(Parts.PaneTitleBar); | |
| 88 | + makeTransparentMenubar = !exclude.contains(Parts.MenuBar); | |
| 89 | + makeTransparentButtonPanel = !exclude.contains(Parts.ButtonPanel); | |
| 90 | + makeTransparentStatusbar = !exclude.contains(Parts.StatusBar); | |
| 91 | + makeTransparentPaneTitlebar = !exclude.contains(Parts.PaneTitleBar); | |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | 94 | transparent(); |