
/********************************************************************/
/***  General widget sizes and layout.                            ***/
/***  Styles for these widgets are defined in Ballistic.css.      ***/
/********************************************************************/

* {
    font-size: 12pt;
}


/* Standard Push Button */
QPushButton {
    font-family: "Zero Hour";
    height: 30px;
    padding: 2px 5px 2px 5px;
    border-width: 2px;
    border-radius: 15px;
}


/* Tool Button   -- TODO: Needs work */
QToolButton {
    font-family: "Zero Hour";
    padding: 2px 5px 2px 5px;
    border-width: 2px;
    border-radius: 15px;
}

QToolButton[popupMode="1"] {
    padding-right: 20px;   /* make way for the popup button */
}


/* Check box */
QCheckBox::indicator {
    width: 20px;
    height: 20px;
    border-width: 2px;
}


/* Radio button */
QRadioButton::indicator {
    width: 20px;
    height: 20px;
    border-width: 2px;
    border-radius: 12px;
}


/* Text box */
QLineEdit {
    height: 30px;
    padding: 0px 5px 0px 5px;
    border-width: 2px;
    border-radius: 3px;
    box-shadow: 5px 5px 5px darkgrey inset;   /* Not supported - yet */
}


/* Group box */
QGroupBox {
    border-radius: 8px;
}


/* Combo box */
QComboBox {
    height: 30px;
    padding: 0px 5px 0px 5px;
    border-width: 2px;
    border-radius: 6px;
    qproperty-iconSize: 20px;
}

QComboBox::drop-down {
    width: 30px;
    height: 30px;
    margin: -1px -1px -1px 0px;   /* To compensate for border */
    border-width: 1px;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

QComboBox::down-arrow {
    width: 19px;
    height: 13px;
}

QComboBox QAbstractItemView {
    border-width: 1px;
}

/*QComboBox QAbstractItemView::item {      This should work, but it doesn't :(
    height: 30px;
}*/


/* Menu */
QMenu {
    border-width: 1px;
    /*border-radius: 3px;*/
}

QMenu::separator {
    height: 1px;
    margin: 3px;
}

QMenu::item {
    padding: 2px 25px 2px 20px;
}

QMenu::item:selected {
    border-radius: 3px;
}

QMenu::indicator {
    width: 13px;
    height: 13px;
    margin-left: 3px;
}


/* Scroll box and scrollbar */
QScrollArea {
    /*border: 1px solid rgb(128, 0, 0);*/
}

QScrollBar:vertical {
    width: 24px;
    margin: 24px 0px 24px 0px;
}

QScrollBar:horizontal {
    height: 24px;
    margin: 0px 24px 0px 24px;
}

QScrollBar::handle {
    /*border: 1px solid rgb(86, 0, 0);*/
    border-radius: 5px;
}

QScrollBar::handle:vertical   { min-height: 20px; }
QScrollBar::handle:horizontal { min-width:  20px; }

QScrollBar::add-line, QScrollBar::sub-line {
    width: 22px; /* total minus border */
    height: 22px;
    /*border: 1px solid rgb(86, 0, 0);*/
}

QScrollBar::sub-line:vertical {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
QScrollBar::add-line:vertical {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}
QScrollBar::sub-line:horizontal {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
QScrollBar::add-line:horizontal {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}

QScrollBar::up-arrow, QScrollBar::down-arrow {
    width: 19px;
    height: 13px;
}
QScrollBar::left-arrow, QScrollBar::right-arrow {
    width: 13px;
    height: 19px;
}

/* Tab bar */
QTabBar::tab {
    mix-width: 100px;
    padding: 2px 5px;
    border-width: 2px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}


/* Progress bar */
QProgressBar,
QProgressBar::chunk {
    border-radius: 6px;
}


/* Slider */
QSlider {
    height: 25px;
}

QSlider::groove:horizontal {
    border-width: 2px;
    border-radius: 4px;
}

QSlider::handle:horizontal {
    width: 12px;
    margin: -1px 0;
    border-radius: 4px;
}


/********************************************************************/
/***  General screen styles                                       ***/
/********************************************************************/

/* Header bar across the top of each screen */
#header {
    font-family: "Zero Hour";
    font-size: 17pt;
    text-transform: uppercase;
    padding: 8px 30px 8px 30px;
    text-shadow: grey 0.2em 0.2em 0.2em;
    border-style: solid;
    border-bottom-width: 2px;
    border-bottom-color: rgb(120, 0, 0);
    background: qlineargradient(x1: 0, y1: 0, x2: 1, y2: 0,
                                stop: 0 rgb(210, 0, 0),
                                stop: 0.8 rgb(220, 0, 0),
                                stop: 1 rgb(255, 100, 80));
}

#bottomPane {
    border-style: solid;
    border-top-width: 2px;
    border-top-color: rgb(120, 120, 120);
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
                                stop: 0 rgb(100, 100, 100),
                                stop: 0.49 rgb(85, 85, 85)
                                stop: 0.5 rgb(82, 82, 82)
                                stop: 1 rgb(73, 73, 73));
}

#bottomPane QPushButton {
    width: 140px;
}


/********************************************************************/
/***  Specific screen styles                                      ***/
/********************************************************************/

TitleScreen QPushButton {
    width: 290px;
    height: 45px;
    max-width: 300px;
}


/* The little X button for removing items in a list */
PlayerItemWidget #removeButton {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    padding: 0px;
    border-radius: 5px;
}

/* The placeholder widget for the lack of X button on the first item */
PlayerItemWidget #removeButtonPlaceholder {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
}