setDialogStyle method
Sets some dialog styles for dia
.
Implementation
static void setDialogStyle(Element dia) {
if (attr == null) {
initAttrFromDefaults();
}
dia.style
..background = attr[DIALOG_BACKGROUND]
..padding = "12px 16px 12px 16px"
..margin = "1em auto" // will center dialog along x
..border = "0" //"1px solid rgba(0, 100, 0, 0.3);"//"0"
..borderTop = "1px solid ${attr[DIALOG_TOPBAR_COLOR]}"
..borderRadius = "${attr[DIALOG_BORDER_RADIUS]}px"
..boxShadow = attr[DIALOG_BOX_SHADOW]
..fontSize = "${attr[DIALOG_TEXT_FONTSIZE]}px"
..lineHeight = "100%"
..opacity = attr[DIALOG_WIN_OPACITY];
}