HbDialog {
    max-width:expr(var(hb-param-screen-width)-2*var(hb-param-margin-gene-screen));
    max-height:expr(var(hb-param-screen-height)-2*var(hb-param-margin-gene-screen));
}

HbDialog::heading {
    max-height:expr(var(hb-param-text-height-primary)+2*var(hb-param-margin-gene-popup));
}

HbDialog::controls {
    min-width:expr(var(hb-param-screen-short-edge)-2*var(hb-param-margin-gene-screen));
}

HbDialog::content {
    left:-var(hb-param-margin-gene-popup);
    right:var(hb-param-margin-gene-popup);
    top:-var(hb-param-margin-gene-popup);
    bottom:var(hb-param-margin-gene-popup);
}

HbDialog > HbListWidget {
    left:-var(hb-param-margin-gene-popup-list);
    right:var(hb-param-margin-gene-popup-list);
    top:-var(hb-param-margin-gene-popup-list);
    bottom:var(hb-param-margin-gene-popup-list);
}
