OmegaT の背景に画像を表示します。
メインウィンドウに背景設定した場合、MATCHES などの個別ペインを透過対象外に指定可能にした
EDITOR は先行対応済み
| @@ -402,7 +402,31 @@ | ||
| 402 | 402 | if (c.isShowing() && c.isOpaque()) { |
| 403 | 403 | if (exclude.contains(Parts.EDITOR) && c instanceof JTextPane && |
| 404 | 404 | c.equals(getJTextPaneFromInstantStartView())) { |
| 405 | - // INSTANT_START を除く | |
| 405 | + // skip INSTANT_START | |
| 406 | + } else if (exclude.contains(Parts.EDITOR) && c instanceof JEditorPane && | |
| 407 | + c.equals(getJEditorPaneFromEditorView())) { | |
| 408 | + // skip EDITOR | |
| 409 | + } else if (exclude.contains(Parts.MATCHES) && c instanceof JEditorPane && | |
| 410 | + c.equals(getJEditorPane(Parts.MATCHES))) { | |
| 411 | + // skip MATCHES | |
| 412 | + } else if (exclude.contains(Parts.GLOSSARY) && c instanceof JEditorPane && | |
| 413 | + c.equals(getJEditorPane(Parts.GLOSSARY))) { | |
| 414 | + // skip GLOSSARY | |
| 415 | + } else if (exclude.contains(Parts.NOTES) && c instanceof JEditorPane && | |
| 416 | + c.equals(getJEditorPane(Parts.NOTES))) { | |
| 417 | + // skip NOTES | |
| 418 | + } else if (exclude.contains(Parts.COMMENTS) && c instanceof JEditorPane && | |
| 419 | + c.equals(getJEditorPane(Parts.COMMENTS))) { | |
| 420 | + // skip COMMENTS | |
| 421 | + } else if (exclude.contains(Parts.MACHINE_TRANSLATE) && c instanceof JEditorPane && | |
| 422 | + c.equals(getJEditorPane(Parts.MACHINE_TRANSLATE))) { | |
| 423 | + // skip MACHINE_TRANSLATE | |
| 424 | + } else if (exclude.contains(Parts.DICTIONARY) && c instanceof JEditorPane && | |
| 425 | + c.equals(getJEditorPane(Parts.DICTIONARY))) { | |
| 426 | + // skip DICTIONARY | |
| 427 | + } else if (exclude.contains(Parts.MULTIPLE_TRANS) && c instanceof JEditorPane && | |
| 428 | + c.equals(getJEditorPane(Parts.MULTIPLE_TRANS))) { | |
| 429 | + // skip MULTIPLE_TRANS | |
| 406 | 430 | } else { |
| 407 | 431 | c.setOpaque(false); |
| 408 | 432 | } |