/*

A branding component can ship a stylesheet (like this one)
which is applied to parts of the Calamares user-interface.
In principle, all parts can be styled through CSS.
Missing parts should be filed as issues.

The IDs are based on the object names in the C++ code.
You can use the Debug Dialog to find out object names:
  - Open the debug dialog
  - Choose tab *Tools*
  - Click *Widget Tree* button
The list of object names is printed in the log.

Documentation for styling Qt Widgets through a stylesheet
can be found at
    https://doc.qt.io/qt-5/stylesheet-examples.html
    https://doc.qt.io/qt-5/stylesheet-reference.html
In Calamares, styling widget classes is supported (e.g.
using `QComboBox` as a selector).

This example stylesheet has all the actual styling commented out.
The examples are not exhaustive.

Use gammaray

*/


/* ########## MAIN APPLICATION WINDOW ########## */
#mainApp {
    background-color: #22272e;
    color: #96c5f6;
}

#mainText{
    font : bold 14px;
}

#sidebarApp {
    background-color: #22272e;
    color: #96c5f6;
}

#logoApp {
    background-color: #22272e;
    color: #96c5f6;
}

#sidebarMenuApp {
    padding: 3px;
    background-color: #22272e;
}

#view-button-back:hover {
    color: #96c5f6;
}
#view-button-next:hover {
    color: #96c5f6;
}
#view-button-cancel:hover {
    color: #96c5f6;
}


#debugButton {
    background-color: none;
    font: bold 8px;
    color: #96c5f6;
    height: 32px;
    border: none;
}

#debugButton:pressed {
    color: #7f3fbf;
}

#debugButton:hover {
    color: #7f3fbf;
}


#aboutButton {
    background-color: none;
    font: 14px;
    color: #96c5f6;
    height: 32px;
    border: none;
}

#aboutButton:pressed {
    color: #7f3fbf;
}

#aboutButton:hover {
    color: #7f3fbf;
}


#donateButton:hover {
    color: #7f3fbf;
}

#supportButton:hover {
    color: #7f3fbf;
}

#knownIssuesButton:hover {
    color: #7f3fbf;
}

#releaseNotesButton:hover {
    color: #7f3fbf;
}

#products {
    color: #96c5f6;
    padding-left: 5px;
    padding-right: 5px;
    padding-top: 5px;
    font: 15px;
}

#productScreenshot {
    padding-top: 1px;
    padding-bottom: 1px;
}

/*set to same as main app background-color and 1px to hide it*/
#productName {
    color: #96c5f6;
    padding-left: 40px;
    font: 16px;
}

#productDescription {
    color: #96c5f6;
    padding-left: 40px;
    padding-right: 40px;
    font: 14px;
}


QWidget {
    background-color: #22272e;
    color: #aaaaaa;
    font: 14px;
}

QScrollArea {
    background-color: #22272e;
    color: #aaaaaa;
    font: 14px;
}

QLabel {
    background-color: #22272e;
    color: #aaaaaa;
    font: 14px;
}

// QAbstractSpinBox {
// }
// QListWidget::item:alternate {
// }

/* ########## TOOLTIP ########## */

QToolTip {
    background-color: #22272e;
    color: #aaaaaa;
    font : 14px;
    padding: 3px;
    border: none;
}

QPushButton {
    color: #aaaaaa;
    font : 14px;
    padding: 10px;
}

// QPushButton:pressed {
// }
//
// QPushButton:hover {
// }

QDialogButtonBox {
    dialogbuttonbox-buttons-have-icons: 0;
    color: #96c5f6;
    font: 14px;
}

/* ########## SCROLL BAR ########## */

// QScrollBar:vertical {
//     background: #efefef;
//     width: 20px;
//     margin: 38px 0 20px 0;
// }
//
// QScrollBar::handle:vertical {
//     background-color: #22272e;
//     max-height: 25px;
// }
//
// QScrollBar::sub-line:vertical {
//     border: none;
//     background: none;
//     height: 20px;
//     subcontrol-position: top;
//     subcontrol-origin: margin;
// }
//
// QScrollBar::add-line:vertical {
//     border: none;
//     background: none;
//     height: 20px;
//     subcontrol-position: bottom;
//     subcontrol-origin: margin;
// }

/* ########## QLIST VIEW ########## */

QListView {
    background-color: #22272e;
    alternate-background-color: #22272e;
    color: #aaaaaa;
    font: 14px;
}

// QListView::item:alternate {
//     background-color: #22272e;
//     color: #aaaaaa;
// }
//
// QListView::item:!alternate:selected:active {
//     background-color: #22272e;
//     color: #aaaaaa;
// }
//
// QListView::item:selected:active {
//     background-color: #22272e;
//     color: #aaaaaa;
// }
//
// QListView::item:selected:!active {
//     background-color: #22272e;
//     color: #aaaaaa;
// }
//
// QListView::item:hover {
//     background-color: #22272e;
//     color: #aaaaaa;
// }
//
// QListView#listLayout::item:!alternate:selected:active {
//     background-color: #22272e;
//     color: #aaaaaa;
// }
//
// QListView#listVariant::item:!alternate:selected:active {
//     background-color: #22272e;
//     color: #aaaaaa;
// }



/* ########## QLINE EDIT ########## */

QTextEdit {
    background-color: #22272e;
    color: #aaaaaa;
    font: 14px;
}

QLineEdit {
    background-color: #22272e;
    color: #aaaaaa;
    font: 14px;
}

// QLineEdit#LE_TestKeyboard {
//     font: 14px;
// }
//
// QLineEdit#m_passphraseLineEdit, QLineEdit#vgName,
// QLineEdit#m_confirmLineEdit {
//     font: 14px;
// }
//
// QLineEdit#textBoxUserVerifiedPassword, QLineEdit#textBoxVerifiedRootPassword {
//     font: 14px;
// }
//
// QLineEdit#textBoxFullName, QLineEdit#textBoxLoginName, QLineEdit#textBoxHostName,
// QLineEdit#textBoxUserPassword, QLineEdit#textBoxRootPassword {
//     font: 14px;
// }

#textBoxFullName, #textBoxLoginName, #textBoxHostName, #textBoxUserPassword,
#textBoxRootPassword, #textBoxAutoLogin, #vgName {
    font: 14px;
}

#textBoxUserVerifiedPassword, #textBoxVerifiedRootPassword,
#LE_TestKeyboard, #m_confirmLineEdit, #m_passphraseLineEdit {
    font: 14px;
}

/* ##########PARTITION ########## */

#partitionLabel {
}

#partitionLabelsView {
}

#CreatePartitionDialog {
}

#partResizerWidget {
    font: 14px;
}

/* ########## PAGE_USERSETUP ########## */

 #labelWhatIsYourName {
    font: 14px;
}
 #textBoxFullName {
    font: 14px;
}
 #labelFullName {
    font: 14px;
}
 #labelFullNameError {
    font: 14px;
}
 #username_label_2 {
    font: 14px;
}
 #textBoxLoginName {
    font: 14px;
}
 #labelUsername {
    font: 14px;
}
 #labelUsernameError {
    font: 14px;
}
 #hostname_label_2 {
    font: 14px;
}
 #textBoxHostName {
    font: 14px;
}
 #labelHostname {
    font: 14px;
}
 #labelHostnameError {
    font: 14px;
}
 #password_label_2 {
    font: 14px;
}
 #textBoxUserPassword {
    font: 14px;
}
 #textBoxUserVerifiedPassword {
    font: 14px;
}
 #labelUserPassword {
    font: 14px;
}
 #labelUserPasswordError {
    font: 14px;
}
 #checkBoxRequireStrongPassword {
    font: 14px;
}
 #checkBoxDoAutoLogin {
    font: 14px;
}
 #checkBoxReusePassword {
    font: 14px;
}
 #labelChooseRootPassword {
    font: 14px;
}
 #textBoxRootPassword {
    font: 14px;
}
 #textBoxVerifiedRootPassword {
    font: 14px;
}
 #labelRootPassword {
    font: 14px;
}
 #labelRootPasswordError {
    font: 14px;
}

/* ########## COMBO BOX ########## */

QComboBox {
    color: #aaaaaa;
    font: 14px;
}

QComboBox::item:selected {
    background-color: #22272e;
    color: #aaaaaa;
}

#mountPointComboBox::drop-down {
    font: 14px;
}

/* ########## SPIN BOX ########## */

QSpinBox {
    color: #aaaaaa;
    font: 14px;
}

/* ########## TREE VIEW ########## */

QTreeView {
    background-color: #22272e;
    alternate-background-color: #22272e;
    color: #aaaaaa;
    font: 14px;
    show-decoration-selected: 0;
}

QTreeView::item {
    background-color: #22272e;
    padding: 2px;
}

QTreeView::item:selected {
    background-color: #22272e;
    font: bold;
}

// QTreeView::branch:has-siblings:!adjoins-item {
// }
// QTreeView::branch:has-siblings:adjoins-item {
// }
// QTreeView::branch:!has-children:!has-siblings:adjoins-item {
// }
// QTreeView::branch:has-children:!has-siblings:closed,
// QTreeView::branch:closed:has-children:has-siblings {
// }
// QTreeView::branch:open:has-children:!has-siblings,
// QTreeView::branch:open:has-children:has-siblings  {
// }

/* ########## CHECK BOX ########## */

QCheckBox {
    color: #aaaaaa;
    font: 14px;
}

// QCheckBox::indicator:unchecked {
// }
// QCheckBox::indicator:checked {
// }
// QItemSelectionModel::Select {
// }

QRadioButton {
    color: #aaaaaa;
    font: 14px;
}

/* ########## HEADER VIEW ########## */

QHeaderView::section {
    font : 14px;
}

/* ########## PROGRESS BAR ########## */

QProgressBar {
    text-align: center;
}

QProgressBar::chunk {
    background-color: #22272e;
}
