OmegaT の背景に画像を表示します。
透過除外 UI パーツ指定用のキーワードを "exceptions" から "exclude" に変更
| @@ -39,12 +39,12 @@ | ||
| 39 | 39 | private final String KEY_TARGET = "target"; |
| 40 | 40 | private final String KEY_OPACITY = "opacity"; |
| 41 | 41 | private final String KEY_IMAGE = "image"; |
| 42 | - private final String KEY_EXCEPTIONS = "exceptions"; | |
| 42 | + private final String KEY_EXCEPTIONS = "exclude"; | |
| 43 | 43 | |
| 44 | 44 | private String target = "mainWindow"; |
| 45 | 45 | private float opacity = 0.5f; |
| 46 | 46 | private String image = ""; |
| 47 | - private List<String> exceptions = new ArrayList<String>(); | |
| 47 | + private List<String> exclude = new ArrayList<String>(); | |
| 48 | 48 | |
| 49 | 49 | public SimpleImage(Map config) { |
| 50 | 50 | if (config.containsKey(KEY_TARGET)) { |
| @@ -65,7 +65,7 @@ | ||
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | if (config.containsKey(KEY_EXCEPTIONS)) { |
| 68 | - exceptions = (List<String>) config.get(KEY_EXCEPTIONS); | |
| 68 | + exclude = (List<String>) config.get(KEY_EXCEPTIONS); | |
| 69 | 69 | } |
| 70 | 70 | } |
| 71 | 71 |
| @@ -75,19 +75,19 @@ | ||
| 75 | 75 | return; |
| 76 | 76 | } |
| 77 | 77 | |
| 78 | - if (exceptions.contains("menubar")) { | |
| 78 | + if (exclude.contains("menubar")) { | |
| 79 | 79 | ui.setMakeTransparentMenubar(false); |
| 80 | 80 | } |
| 81 | 81 | |
| 82 | - if (exceptions.contains("statusbar")) { | |
| 82 | + if (exclude.contains("statusbar")) { | |
| 83 | 83 | ui.setMakeTransparentStatusbar(false); |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | - if (exceptions.contains("buttonpanel")) { | |
| 86 | + if (exclude.contains("buttonpanel")) { | |
| 87 | 87 | ui.setMakeTransparentButtonPanel(false); |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | - if (exceptions.contains("panetitlebar")) { | |
| 90 | + if (exclude.contains("panetitlebar")) { | |
| 91 | 91 | ui.setMakeTransparentPaneTitlebar(false); |
| 92 | 92 | } |
| 93 | 93 |