|
|
@ -194,13 +194,14 @@ public class XBorderStyleWidgetCreator extends XWidgetCreator{ |
|
|
|
titleCreator.setBorder(new BottomLineBorder(color, thickness)); |
|
|
|
titleCreator.setBorder(new BottomLineBorder(color, thickness)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (bodyXCreator instanceof XBorderStyleWidgetCreator) { |
|
|
|
// 主体背景的生效范围暂时保持原样,不作用于包含标题区域的整体范围内
|
|
|
|
XBorderStyleWidgetCreator styledBodyXCreator = (XBorderStyleWidgetCreator) bodyXCreator; |
|
|
|
// if (bodyXCreator instanceof XBorderStyleWidgetCreator) {
|
|
|
|
Background background4Painting = styledBodyXCreator.getBackground4Painting(); |
|
|
|
// XBorderStyleWidgetCreator styledBodyXCreator = (XBorderStyleWidgetCreator) bodyXCreator;
|
|
|
|
|
|
|
|
// Background background4Painting = styledBodyXCreator.getBackground4Painting();
|
|
|
|
styledBodyXCreator.setBackground4Painting(null); // body不绘制背景
|
|
|
|
//
|
|
|
|
titleParent.setBackground4Painting(background4Painting); // 容器绘制完整背景
|
|
|
|
// styledBodyXCreator.setBackground4Painting(null); // body不绘制背景
|
|
|
|
} |
|
|
|
// titleParent.setBackground4Painting(background4Painting); // 容器绘制完整背景
|
|
|
|
|
|
|
|
// }
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|