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

QWidget {
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(90, 90, 90), stop: 1 rgb(70, 70, 70));
	selection-background-color: rgb(253, 216, 134);
	selection-color: rgb(3, 3, 3);
}

QLabel {
	color: rgb(3, 3, 3);
	font-size: 100%;
	background: none;
}

QLabel:disabled {
	color: rgb(50, 50, 50);
}

QDockWidget {
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(90, 90, 90), stop: 1 rgb(70, 49, 52));
}

QFrame {
	background: none;
	border: none;
}

QFrame[frameShape="4"],   /* QFrame::HLine == 0x0004 */
QFrame[frameShape="5"] { /* QFrame::VLine == 0x0005 */
        border: 1px solid rgb(31, 31, 31);
}

QToolTip {
	color: rgb(4, 5, 9);
	font-size: 100%;
	padding: 2px;
	background: rgb(143, 143, 143);
}

*[nightMode="true"] QToolTip {
	color: rgb(4, 0, 0);
	font-size: 100%;
	padding: 2px;
	background: rgb(101, 0, 0);
}

QSizeGrip {
	width: 8px;
	height: 8px;
	background: rgb(101, 101, 101);
}

QTextEdit,
QPlainTextEdit,
QListWidget,
QTreeWidget,
QLineEdit {
	background: rgb(30, 30, 31);
	selection-background-color: rgb(253, 216, 134);
	color: rgb(170, 173, 164);
        font-size: 100%;
}

QTextEdit,
QPlainTextEdit,
QListWidget,
QLineEdit {
        border: 1px solid rgb(0, 0, 0);
        border-radius: 0;
        padding: 0 8px;
}

QTextEdit:disabled,
QListWidget:disabled,
QTreeWidget:disabled,
QLineEdit:disabled {
	background: rgb(90, 90, 90);
}

QTextBrowser {
	border: 0 solid rgb(0, 0, 0);
	background: rgb(90, 90, 90);
	color: rgb(3, 3, 3);
        font-size: 100%;
}

QGroupBox {
	padding: 15px;
	padding-top: 35px;
	margin-right: 10px;
	margin-left: 10px;
	margin-top: 10px;
	margin-bottom: 10px;
	background-color: rgba(150, 150, 150, 30%);
	border: 1px solid rgba(0, 0, 0, 10%);
	border-style: inset;
	font-weight: bold;
	border-radius: 5px;
}

QGroupBox::title {
	subcontrol-position: top left;
	subcontrol-origin: margin;
	color: rgb(0, 0, 0);
	left: 27px;
	top: 20px;
}

QTabWidget::pane {
	border: none;
	margin-top: 0;
}

QTabWidget::tab-bar {
	width: 1000px;
	/*
	 * Used as a workaround to set the background of the space between the last
	 * tab (normally the rightmost one and the end of the window. Not necessary
	 * if QTabWidget::documentMode is set to 'true', but that solution leads to
	 * a hard-coded line below the tab bar.
	*/
}

QTabBar {
	margin: 0;
	padding: 0;
	font-weight: bold;
	color: rgb(170, 173, 164);
	background-color: rgb(31, 31, 31);
	font-size: 108%;
	/*
	 * Don't put font-size in QTabBar::tab, as it causes the tab labels to be
	 * cut by the frame.
	*/
}

QListView {
	font-size: 108%;
	color: rgb(170, 173, 164);
	background: rgb(31, 31, 31);
	show-decoration-selected: 1;
	border: none;
}

QListView::item {
	padding-top: 6px;
	padding-bottom: 6px;
	padding-left: 0;
	padding-right: 0;
}

QListView::item:hover {
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(55, 55, 40), stop: 1 rgb(35, 35, 31));
}

QListView::item:selected {
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(177, 130, 43), stop: 1 rgb(210, 207, 133));
}

QProgressBar {
	border: 1px solid rgba(102, 102, 128, 50%);
	border-radius: 2px;
	background-color: rgba(38, 41, 48, 20%);
	text-align: center;
	color: rgb(111, 111, 127);
	font-size: 92%;
}

QProgressBar::chunk {
	background-color: rgba(68, 68, 109, 50%);
	width: 10px;
	margin: 0.5px;
}

QTreeView {
	background-color: rgb(76, 77, 80);
	color: rgb(238, 238, 238);
        font-size: 100%;
}

QHeaderView::section {
	background-color: rgb(31, 31, 31);
	font: bold;
	color: rgb(255, 255, 255);
        font-size: 100%;
	padding-left: 4px;
	border: 1px solid rgb(108, 108, 108);
}

QHeaderView::up-arrow {
	image: url(:/graphicGui/uieSpinup.png);
}

QHeaderView::down-arrow {
	image: url(:/graphicGui/uieSpindown.png);
}

QMenu {
	background-color: rgb(90, 90, 90); /* sets background of the menu */
	border: 1px solid rgb(0, 0, 0);
	color: rgb(222, 222, 222);
}

QMenu::item {
	/*
	sets background of menu item. set this to something non-transparent if you
	want menu color and menu item color to be different
	*/
	background-color: rgb(66, 67, 70);
}

QMenu::item:selected { /* when user selects item using mouse or keyboard */
	background-color: rgb(101, 99, 33);
}

/*
 * Windows
 */

QFrame#titleBar {
	/* Title bar on windows */
	min-width: 16px;
	min-height: 25px;
	max-height: 25px;
	margin: 0;
	background-color: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop: 0 rgb(41, 47, 50), stop:1 rgb(31, 33, 36));
}

QLabel#stelWindowTitle {
	/* Titles of windows */
	margin-left: 24px;
	font-size: 108%;
	font-weight: bold;
	color: rgb(150, 150, 150);
	background: none;
}

QFrame#viewContent {
	/*
	 * Content of windows.
	 *
	 * Includes everything inside a window apart from the stelWindowTitle
	 */
	background: rgb(0, 0, 0);
}

/*
 * Main tab bar on windows
 */

QListView#stackListWidget {
	min-height: 74px;
	max-height: 74px;
	icon-size: 50px;
	font-weight: bold;
	color: rgb(120, 120, 120);
}

QListView::item:hover#stackListWidget {
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(50, 50, 40), stop: 1 rgb(31, 31, 31));
}

QListView::item:selected#stackListWidget {
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(68, 69, 72), stop: 1 rgb(90, 90, 90));
	color: rgb(207, 207, 207);
}

QListView::item#stackListWidget {
	min-height: 74px;
	max-height: 74px;
	margin: 0;
	padding-top: 0;
	padding-bottom: 5px;
	padding-left: 8px;
	padding-right: 8px;
}

/*
 * Secondary tab bar
 */

QTabBar::tab {
	border: none;
	margin: 0;
	padding: 1ex 2ex;
	min-height: 28px;
}

QTabBar::tab:selected {
	border: none;
	margin: 0;
	color: rgb(220, 223, 214);
}

QTabBar::tab:top {
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

QTabBar::tab:top:hover {
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(50, 50, 40), stop: 1 rgb(31, 31, 31));
}

QTabBar::tab:top:selected {
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(70, 70, 70), stop: 1 rgb(90, 90, 90));
}

QTabBar::tab:bottom {
	border-bottom-left-radius: 10px;
	border-bottom-right-radius: 10px;
}

QTabBar::tab:bottom:hover {
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(31, 31, 31), stop: 1 rgb(50, 50, 40));
}

QTabBar::tab:bottom:selected {
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(70, 70, 70), stop: 1 rgb(68, 69, 72));
}

QTabBar QToolButton {
	background-color: rgb(31, 31, 31);
}

/*
 * QPushButton and QToolButton
 */

QToolButton {
	padding: 2px;
}


QPushButton {
	padding: 2px 8px;
}

QPushButton, QToolButton {
	border: 1px solid rgb(0, 0, 0);
	border-radius: 2px;
	color: rgb(31, 31, 31);
        font-size: 100%;
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(183, 184, 185), stop: 1 rgb(111, 113, 114));
	icon-size: 16px;
}

QPushButton:disabled, QToolButton:disabled {
        color: rgb(61, 61, 61);
        border: 1px solid rgb(61, 61, 61);
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(150, 150, 153), stop: 1 rgb(120, 120, 120));
}

QPushButton:flat, QToolButton:flat {
	border: none; /* no border for a flat push button */
	background: transparent;
}

QPushButton:hover, QToolButton:hover {
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(183, 184, 165), stop: 1 rgb(111, 113, 94));
}

QPushButton:pressed, QToolButton:pressed {
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(41, 41, 49), stop: 0.2 rgb(73, 74, 84), stop: 1 rgb(58, 60, 73));
}

QPushButton:checked, QToolButton:checked {
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(41, 41, 49), stop: 0.2 rgb(73, 74, 84), stop: 1 rgb(58, 60, 73));
}

QToolButton#pushButtonGotoSearchSkyObject {
	icon-size: 24px;
}

QToolButton#moveUp, QToolButton#moveDown, QToolButton#moveLeft, QToolButton#moveRight {
	icon-size: 22px;
}

QToolButton#pushButtonCustomStepsDialog, QToolButton#pushButtonNow, QToolButton#pushButtonExtraEphemerisDialog {
	icon-size: 20px;
	min-width: 22px;
	max-width: 22px;
	min-height: 22px;
	max-height: 22px;
	padding: 0;
}

ColorButton {
	min-width: 16px;
	max-width: 16px;
	min-height: 16px;
	max-height: 16px;
	padding: 0;
}

StelCloseButton, StelCloseButton:hover {
	min-width: 16px;
	max-width: 16px;
	min-height: 16px;
	max-height: 16px;
	margin: 0 1px 0 0;
	background: none;
}

/*
 * QCheckBox
 */

QCheckBox {
	color: rgb(3, 3, 3);
	background: none;
}

QCheckBox:disabled {
	color: rgb(50, 50, 50);
}

QCheckBox::indicator,
QGroupBox::indicator {
	width: 16px;
	height: 16px;
	margin: 0;
	background: none;
}

/* FIXME: these should configured the same way as QCheckBox and QGroupBox
 * indicators, but there's a problem with spacing discussed at
 * https://stackoverflow.com/q/77422984 */
QListWidget::indicator,
QTreeWidget::indicator,
QListView::indicator {
	margin: 0;
	background: none;
}

QCheckBox::indicator:checked,
QListWidget::indicator:checked,
QTreeWidget::indicator:checked,
QListView::indicator:checked,
QGroupBox::indicator:checked {
	image: url(:/graphicGui/uieCheckbox-checked.png);
}

QCheckBox::indicator:indeterminate,
QListWidget::indicator:indeterminate,
QTreeWidget::indicator:indeterminate,
QListView::indicator:indeterminate,
QGroupBox::indicator:indeterminate {
	image: url(:/graphicGui/uieCheckbox-partial.png);
}

QCheckBox::indicator:unchecked,
QListWidget::indicator:unchecked,
QTreeWidget::indicator:unchecked,
QListView::indicator:unchecked,
QGroupBox::indicator:unchecked {
	image: url(:/graphicGui/uieCheckbox-unchecked.png);
}

QCheckBox::indicator:hover:checked,
QListWidget::indicator:hover:checked,
QTreeWidget::indicator:hover:checked,
QListView::indicator:hover:checked,
QGroupBox::indicator:hover:checked {
	image: url(:/graphicGui/uieCheckbox-checked-hover.png);
}

QCheckBox::indicator:hover:indeterminate,
QListWidget::indicator:hover:indeterminate,
QTreeWidget::indicator:hover:indeterminate,
QListView::indicator:hover:indeterminate,
QGroupBox::indicator:hover:indeterminate {
	image: url(:/graphicGui/uieCheckbox-partial-hover.png);
}

QCheckBox::indicator:hover:unchecked,
QListWidget::indicator:hover:unchecked,
QTreeWidget::indicator:hover:unchecked,
QListView::indicator:hover:unchecked,
QGroupBox::indicator:hover:unchecked {
	image: url(:/graphicGui/uieCheckbox-unchecked-hover.png);
}

QCheckBox::indicator:checked:disabled,
QListWidget::indicator:checked:disabled,
QTreeWidget::indicator:checked:disabled,
QListView::indicator:checked:disabled,
QGroupBox::indicator:checked:disabled {
	image: url(:/graphicGui/uieCheckbox-checked-disabled.png);
}

QCheckBox::indicator:indeterminate:disabled,
QListWidget::indicator:indeterminate:disabled,
QTreeWidget::indicator:indeterminate:disabled,
QListView::indicator:indeterminate:disabled,
QGroupBox::indicator:indeterminate:disabled {
	image: url(:/graphicGui/uieCheckbox-partial-disabled.png);
}

QCheckBox::indicator:unchecked:disabled,
QListWidget::indicator:unchecked:disabled,
QTreeWidget::indicator:unchecked:disabled,
QListView::indicator:unchecked:disabled,
QGroupBox::indicator:unchecked:disabled {
	image: url(:/graphicGui/uieCheckbox-unchecked-disabled.png);
}

/*
 * QRadioButton
 */

QRadioButton {
	color: rgb(3, 3, 3);
	background: none;
}

QRadioButton::indicator {
	width: 16px;
	height: 16px;
	margin-left: 4px;
}

QRadioButton::indicator:checked {
	image: url(:/graphicGui/uieRadio-checked.png);
}

QRadioButton::indicator:unchecked {
	image: url(:/graphicGui/uieRadio-unchecked.png);
}

QRadioButton::indicator:checked:hover {
	image: url(:/graphicGui/uieRadio-checked-hover.png);
}

QRadioButton::indicator:unchecked:hover {
	image: url(:/graphicGui/uieRadio-unchecked-hover.png);
}

QRadioButton::indicator:checked:disabled {
	image: url(:/graphicGui/uieRadio-checked-disabled.png);
}

QRadioButton::indicator:unchecked:disabled {
	image: url(:/graphicGui/uieRadio-unchecked-disabled.png);
}

/*
 * Spinners
 */

QSpinBox,
QTimeEdit,
QDoubleSpinBox,
AngleSpinBox,
QDateTimeEdit,
QComboBox {
	padding-right: 0;
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(180, 180, 183), stop: 1 rgb(93, 95, 98));
	border: 1px solid rgb(0, 0, 0);
	color: rgb(31, 31, 31);
	min-height: 22px;
}

QSpinBox::up-button,
QTimeEdit::up-button,
QDoubleSpinBox::up-button,
AngleSpinBox::up-button,
QDateTimeEdit::up-button {
	subcontrol-origin: border;
	subcontrol-position: top right;
	width: 20px;
	border: 1px solid rgba(0, 0, 0, 0%);
	border-top: 1px solid rgb(0, 0, 0);
	border-right: 1px solid rgb(0, 0, 0);
	image: url(:/graphicGui/uieSpinup.png);
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(97, 97, 97), stop: 1 rgb(70, 70, 70));
}

QSpinBox::down-button,
QTimeEdit::down-button,
QDoubleSpinBox::down-button,
AngleSpinBox::down-button,
QDateTimeEdit::down-button {
	subcontrol-origin: border;
	subcontrol-position: bottom right;
	width: 20px;
	border: 1px solid rgba(0, 0, 0, 0%);
	border-right: 1px solid rgb(0, 0, 0);
	border-bottom: 1px solid rgb(0, 0, 0);
	image: url(:/graphicGui/uieSpindown.png);
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(70, 70, 70), stop: 1 rgb(40, 40, 40));
}

QSpinBox::up-button:hover,
QTimeEdit::up-button:hover,
QDoubleSpinBox::up-button:hover,
AngleSpinBox::up-button:hover,
QDateTimeEdit::up-button:hover {
	subcontrol-origin: border;
	subcontrol-position: top right;
	width: 20px;
	border: 1px solid rgba(0, 0, 0, 0%);
	border-top: 1px solid rgb(0, 0, 0);
	border-right: 1px solid rgb(0, 0, 0);
	image: url(:/graphicGui/uieSpinup.png);
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(87, 87, 77), stop: 1 rgb(70, 70, 70));
}

QSpinBox::down-button:hover,
QTimeEdit::down-button:hover,
QDoubleSpinBox::down-button:hover,
AngleSpinBox::down-button:hover,
QDateTimeEdit::down-button:hover {
	subcontrol-origin: border;
	subcontrol-position: bottom right;
	width: 20px;
	border: 1px solid rgba(0, 0, 0, 0%);
	border-right: 1px solid rgb(0, 0, 0);
	border-bottom: 1px solid rgb(0, 0, 0);
	image: url(:/graphicGui/uieSpindown.png);
    background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(70, 70, 70), stop: 1 rgb(30, 30, 20));
}

QSpinBox::down-button:pressed,
QTimeEdit::down-button:pressed,
QDoubleSpinBox::down-button:pressed,
AngleSpinBox::down-button:pressed {
	image: url(:/graphicGui/uieSpindown-pressed.png);
}

QSpinBox::up-button:pressed,
QTimeEdit::up-button:pressed,
QDoubleSpinBox::up-button:pressed,
AngleSpinBox::up-button:pressed {
	image: url(:/graphicGui/uieSpinup-pressed.png);
}

/*
 * QComboBox
 */

QComboBox::drop-down,
.QDateTimeEdit::drop-down {
	subcontrol-origin: padding;
	subcontrol-position: center right;
	width: 20px;
	border: none;
}

QComboBox::down-arrow,
.QDateTimeEdit::down-arrow {
	width: 20px;
	height: 22px;
	image: url(:/graphicGui/uieSpindown.png);
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(97, 97, 92), stop: 1 rgb(40, 40, 40));
}

QComboBox::down-arrow:on,
.QDateTimeEdit::down-arrow:pressed {
	image: url(:/graphicGui/uieSpindown-pressed.png);
}

QComboBox QAbstractItemView {
	color: rgb(31, 31, 31);
	border: 1px solid rgb(0, 0, 0);
	border-bottom: 1px solid rgb(0, 0, 0);
	border-top: none;
	background: rgb(93, 95, 98);
}

QComboBox {
	padding-left: 3px;
	combobox-popup: 0;
}

/*
 * Disabled QComboBox and spinners
 */

QComboBox:disabled,
QSpinBox:disabled,
QDoubleSpinBox:disabled,
AngleSpinBox:disabled,
QDateTimeEdit:disabled {
        border: 1px solid rgb(31, 31, 31);
        color: rgb(61, 61, 61);
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgba(150, 150, 153, 100%), stop: 1 rgba(120, 120, 120, 100%));
}

QComboBox:focus, QComboBox:hover,
QSpinBox:focus, QSpinBox:hover,
QDoubleSpinBox:focus, QDoubleSpinBox:hover,
AngleSpinBox:focus, AngleSpinBox:hover,
QDateTimeEdit:focus, QDateTimeEdit:hover {
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(180, 180, 163), stop: 1 rgb(93, 95, 78));
}

QSpinBox::up-button:disabled,
TimeEdit::up-button:disabled,
QDoubleSpinBox::up-button:disabled,
AngleSpinBox::up-button:disabled,
QDateTimeEdit::up-button:disabled {
	background: rgb(75, 75, 75);
        border-top: 1px solid rgb(31, 31, 31);
        border-right: 1px solid rgb(31, 31, 31);
}

QSpinBox::down-button:disabled,
QTimeEdit::down-button:disabled,
QDoubleSpinBox::down-button:disabled,
AngleSpinBox::down-button:disabled,
QDateTimeEdit::down-button:disabled {
	background: rgb(70, 70, 70);
        border-bottom: 1px solid rgb(31, 31, 31);
        border-right: 1px solid rgb(31, 31, 31);
}

/*
 * QScrollBar:vertical
 */

QScrollBar:vertical {
	border: 0 solid rgb(116, 116, 116);
	background: rgb(50, 50, 51);
	width: 16px;
	margin: 20px 0;
}

QScrollBar::handle:vertical {
	border: 0;
	background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 rgb(180, 180, 180), stop:1 rgb(143, 143, 143));
	min-height: 20px;
}

QScrollBar::add-line:vertical {
	border: 0 solid rgb(92, 92, 92);
	height: 20px;
	subcontrol-position: bottom;
	subcontrol-origin: margin;
}

QScrollBar::sub-line:vertical {
	border: 0 solid rgb(92, 92, 92);
	height: 20px;
	subcontrol-position: top;
	subcontrol-origin: margin;
}

QScrollBar::add-page:vertical,
QScrollBar::sub-page:vertical {
	background: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgb(81, 81, 81), stop:1 rgb(116, 116, 116));
}

QScrollBar::up-arrow {
	subcontrol-origin: padding;
	subcontrol-position: top; /* position at the top right corner */
	width: 16px;
	height: 20px;
	image: url(:/graphicGui/uieScrollup.png);
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(54, 54, 57), stop: 1 rgb(34, 34, 35));
}

QScrollBar::down-arrow {
	subcontrol-origin: padding;
	subcontrol-position: bottom; /* position at the bottom right corner */
	width: 16px;
	height: 20px;
	image: url(:/graphicGui/uieScrolldown.png);
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(54, 54, 57), stop: 1 rgb(34, 34, 35));
}

/*
 * QScrollBar:horizontal
 */

QScrollBar:horizontal {
	border: 0 solid rgb(116, 116, 116);
	background: rgb(50, 50, 51);
	height: 16px;
	margin: 0 20px;
}

QScrollBar::handle:horizontal {
	border: 0;
	background: qlineargradient(x1:0, y1:0, x2:1, y2:1, stop:0 rgb(180, 180, 180), stop:1 rgb(143, 143, 143));
	min-width: 20px;
}

QScrollBar::add-line:horizontal {
	border: 0 solid rgb(92, 92, 92);
	width: 20px;
	subcontrol-position: left;
	subcontrol-origin: margin;
}

QScrollBar::sub-line:horizontal {
	border: 0 solid rgb(92, 92, 92);
	width: 20px;
	subcontrol-position: right;
	subcontrol-origin: margin;
}

QScrollBar::add-page:horizontal,
QScrollBar::sub-page:horizontal {
	background: qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgb(81, 81, 81), stop:1 rgb(116, 116, 116));
}

QScrollBar::right-arrow {
	subcontrol-origin: padding;
	subcontrol-position: left; /* position at the top right corner */
	height: 16px;
	width: 20px;
	image: url(:/graphicGui/uieScrollleft.png);
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(54, 54, 57), stop: 1 rgb(34, 34, 35));
}

QScrollBar::left-arrow {
	subcontrol-origin: padding;
	subcontrol-position: right; /* position at the bottom right corner */
	height: 16px;
	width: 20px;
	image: url(:/graphicGui/uieScrollright.png);
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(54, 54, 57), stop: 1 rgb(34, 34, 35));
}

/*
 * QSlider:horizontal
 */

QSlider {
	background: none;
	height: 14px;
}

QSlider::groove:horizontal {
	border: none;
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
	                            stop: 0 rgba(0,0,0,0),
	                            stop: 0.3571 rgba(0,0,0,0),
	                            stop: 0.3572 rgb(0, 0, 0),
	                            stop: 0.6429 rgb(54, 54, 54),
	                            stop: 0.6430 rgba(0,0,0,0),
	                            stop: 1 rgba(0,0,0,0));
	margin: 0;
}

QSlider::handle:horizontal {
	border: 1px solid rgb(0, 0, 0);
	border-radius: 2px;
	width: 32px;
	margin: 0;
	color: rgb(31, 31, 31);
	background-color: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(183, 184, 185), stop: 1 rgb(111, 113, 114));
}

QSlider::handle:horizontal:hover {
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(183, 184, 165), stop: 1 rgb(111, 113, 94));
}

QSlider::groove:horizontal:disabled {
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1,
	                            stop: 0 rgba(0,0,0,0),
	                            stop: 0.3571 rgba(0,0,0,0),
	                            stop: 0.3572 rgb(61,61,61),
	                            stop: 0.6429 rgb(80,80,80),
	                            stop: 0.6430 rgba(0,0,0,0),
	                            stop: 1 rgba(0,0,0,0));
}

QSlider::handle:horizontal:disabled {
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(150, 150, 153), stop: 1 rgb(120, 120, 120));
        border: 1px solid rgb(64, 64, 64);
}

/* solution to night mode for DialogSeparate */
QWidget#NightCover{
	background: none;
	color: rgba(80, 8, 0, 0.33);
	background-color: rgba(80, 8, 0, 0.33); /* The actual filter color! */
	selection-color: rgba(80, 8, 0, 0.33);
	selection-background-color: rgba(80, 8, 0, 0.33);
	alternate-background-color: rgba(80, 8, 0, 0.33);
}

/**************************************************************************************************************
 * shortcutsDialog
 *************************************************************************************************************/

QLineEdit[collision="true"] {
	/*
	 * Shortcut collision, when a user selects the same shortcut for two
	 * functions
	 */
	color: red;
}

/**************************************************************************************************************
 * dateTimeDialog
 *************************************************************************************************************/

#dateTimeDialogForm #dateTimeTabWidget QFrame {
	background: qlineargradient(x1: 0, y1: 0, x2: 0, y2: 1, stop: 0 rgb(235, 239, 249), stop: 1 rgb(210, 214, 224));
	border: none;
}

#dateTimeDialogForm #dateTimeTabWidget QLabel {
	padding: 0;
	margin: 0;
	font-size: 24px;
	text-align: center;
	background: none;
}

#dateTimeDialogForm QSpinBox,
#dateTimeDialogForm QDoubleSpinBox {
	border: 0;
	background: rgba(0, 0, 0, 0%);
	padding-top: 16px;
	padding-bottom: 16px;
	font-size: 18px;
	text-align: center;
	padding-left: 3px;
	padding-right: 3px;
}

#dateTimeDialogForm QSpinBox::up-button,
#dateTimeDialogForm QDoubleSpinBox::up-button {
	subcontrol-origin: border;
	subcontrol-position: top center;
	margin: 0 1px 8px 0;
	width: 16px;
	border: none;
	background: none;
	image: url(:/graphicGui/uieSpinup-aboveNumber.png);
}

#dateTimeDialogForm QSpinBox::up-arrow,
#dateTimeDialogForm QDoubleSpinBox::up-arrow {
	image: none;
	subcontrol-origin: border;
	subcontrol-position: bottom center;
	padding-bottom: 20px;
}

#dateTimeDialogForm QSpinBox::down-button,
#dateTimeDialogForm QDoubleSpinBox::down-button {
	subcontrol-origin: border;
	subcontrol-position: bottom center;
	margin: 8px 1px 0 0;
	border: none;
	width: 16px;
	background: none;
	image: url(:/graphicGui/uieSpindown-aboveNumber.png);
}

#dateTimeDialogForm QSpinBox::down-arrow,
#dateTimeDialogForm QDoubleSpinBox::down-arrow {
	image: none;
	subcontrol-origin: border;
	subcontrol-position: top center;
	padding-top: 20px;
}

/**************************************************************************************************************
 * AstroCalc
 *************************************************************************************************************/

#astroCalcDialogForm QCheckBox,
#astroCalcDialogForm QLabel {
	color: rgb(238, 238, 238);
}

QLabel#monthlyElevationTimeInfo {
        color: rgb(238, 238, 238);
        font-size: 18pt;
}

QWidget#eclipseFilterWidget {
	background: transparent;
}

QChartView#hecPositionsChartView {
	background: transparent;
}
/**************************************************************************************************************
 * searchDialog
 *************************************************************************************************************/

QFrame#horizontalSearchLayout {
	background: none;
	border: none;
	padding: 20px;
	padding-bottom: 0;
}

QLineEdit#lineEditSearchSkyObject {
	background: rgb(30, 30, 31);
	margin: 0;
	padding-left: 3px;
	padding-top: 3px;
	padding-bottom: 0;
	border: 1px solid rgb(0, 0, 0);
	border-right: none;
	font-size: 123%;
	color: rgb(255, 255, 255);
}

QListView#searchListView {
	font-size: 108%;
	padding-left: 20px;
	padding-right: 15px;
	border: none;
	background: transparent;
}

QFrame#greekLettersFrame {
	font-size: 139%;
	padding: 10px 20px;
	background: transparent;
}

QFrame#j2000Frame {
	padding: 10px 20px;
}

/**************************************************************************************************************
 * script console
 *************************************************************************************************************/

#scriptConsoleForm QLabel#quickrunLabel {
	color: rgb(238, 238, 238);
}

/**************************************************************************************************************
 * search dialog
 *************************************************************************************************************/

#searchDialogForm QLabel#labelGreekLetterTitle, 
#searchDialogForm QLabel#simbadStatusLabel, 
#searchDialogForm QLabel#simbadCooStatusLabel {
	color: rgb(238, 238, 238);
}

/**************************************************************************************************************
 * shortcuts dialog
 *************************************************************************************************************/

#shortcutsDialogForm QLabel#primaryLabel, 
#shortcutsDialogForm QLabel#altLabel {
	color: rgb(238, 238, 238);
}

/**************************************************************************************************************
 * locationDialog
 *************************************************************************************************************/

QLineEdit#citySearchLineEdit {
	margin: 0 0 4px 0;
	padding: 4px;
	padding-left: 32px;
	background-image: url(:/graphicGui/uieSearchBoxBackground.png);
	background-repeat: none;
	background-position: center left;
	border: none;
}

QListView#citiesListView {
        font-size: 100%;
        min-width: 300px;
}

QListView#citiesListView::item {
	padding: 2px 0;
}

QFrame#frame_coordinates {
	min-width: 300px;
}

/**************************************************************************************************************
 * configurationDialog
 *************************************************************************************************************/

QTextBrowser#deltaTAlgorithmDescription {
	background: transparent;
	padding: 0;
	margin: 0;
	max-height: 175px;
}

QListWidget#scriptListWidget {
	min-width: 190px;
	max-width: 190px;
}

QListWidget#pluginsListWidget {
	min-width: 180px;
	max-width: 180px;
}

QCommandLinkButton#getStarsButton {
	qproperty-iconSize: 24px;
}

/**************************************************************************************************************
 * viewDialog
 *************************************************************************************************************/

QTextBrowser#projectionTextBrowser {
	background: transparent;
	padding: 0;
	margin: 0;
	min-height: 75px;
}

QListWidget#projectionListWidget {
	min-width: 180px;
	max-width: 230px;
}

QListWidget#landscapesListWidget {
	min-width: 120px;
	max-width: 220px;
}

QListWidget#culturesListWidget {
	min-width: 120px;
	max-width: 220px;
}

/* Try to make them the same size */
QPushButton#selectAllCatalogs,
QPushButton#selectStandardCatalogs,
QPushButton#selectPreferredCatalogs,
QPushButton#storePreferredCatalogs,
QPushButton#selectNoneCatalogs {
	min-width: 150px;
}

/**************************************************************************************************************
 * helpDialog
 *************************************************************************************************************/

QTextBrowser#helpBrowser,
QTextBrowser#aboutBrowser {
	padding-left: 11px;
}

/**************************************************************************************************************
 * satellitesDialog
 *************************************************************************************************************/

QListWidget#satellitesList,
QListWidget#sourceList {
	font-size: 60%;
}

#satellitesDialog QLabel#labelAutoAdd,
#satellitesDialog QLabel#labelTle,
#satellitesDialog QLabel#labelTleEpoch,
#satellitesDialog QLabel#labelTleEpochData,
#satellitesDialog QLabel#validAgeLabel { 
	color: rgb(238, 238, 238); 
}

/**************************************************************************************************************
 * TelescopeControl
 *************************************************************************************************************/

QTreeView::item:selected#treeView {
	background-color: rgb(59, 144, 235);
	color: rgb(255,255,255);
}

QTreeView::item:!enabled#treeView {
	color : rgb(58,59,62);
}

/**************************************************************************************************************
 * ocularDialog
 *************************************************************************************************************/

QPushButton#pushButtonMoveSensorUp,
QPushButton#pushButtonMoveOcularUp,
QPushButton#pushButtonMoveTelescopeUp,
QPushButton#pushButtonMoveLensUp {
	image: url(:/graphicGui/uieSpinup.png);
}

QPushButton#pushButtonMoveSensorDown,
QPushButton#pushButtonMoveOcularDown,
QPushButton#pushButtonMoveTelescopeDown,
QPushButton#pushButtonMoveLensDown {
	image: url(:/graphicGui/uieSpindown.png);
}

QLabel#lensNote {
	margin-left: 5px;
}

QMessageBox {
        font-weight: bold;
        background-color: rgb(143, 143, 143);
}

QColorDialog {
        background-color: rgb(143, 143, 143);
}

/*************************************************************************
 * AstroCalcAlmanacWidget
 *************************************************************************/

AstroCalcAlmanacWidget QFrame[frameShape="4"],   /* QFrame::HLine == 0x0004 */
AstroCalcAlmanacWidget QFrame[frameShape="5"] {  /* QFrame::VLine == 0x0005 */
	border: 1px solid rgb(238, 238, 238);
}
